blob: 593158979f4b19ec81b65f4949342dc5ec05add3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Makefile for uClibc
#
# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the GNU Library General Public License version 2 or later.
# See the COPYING.LIB file in the toplevel for more information.
TOPDIR=../../../
include $(TOPDIR)Rules.mak
CSRC := $(wildcard *.c)
COBJ := $(patsubst %.c,%.o,$(CSRC))
SSRC := $(wildcard *.S)
SOBJ := $(patsubst %.S,%.o,$(SSRC))
OBJS := $(COBJ) $(SOBJ)
OBJ_LIST := ../../obj.string.$(TARGET_ARCH)
all: $(OBJ_LIST)
$(OBJ_LIST): $(OBJS)
$(STRIPTOOL) -x -R .note -R .comment $^
echo $(patsubst %, string/$(TARGET_ARCH)/%, $^) > $@
$(COBJ): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(SOBJ): %.o : %.S
$(CC) $(ASFLAGS) -c $< -o $@
clean:
$(RM) *.o *~ core
|