summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/lib
diff options
context:
space:
mode:
authorIngo Albrecht <prom@berlin.ccc.de>2010-03-07 01:41:32 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 11:47:09 +0100
commit41abd7e50055e69993d5e9c8acd9852aee51da1f (patch)
tree4f65fbe8f2f7be78262cf664be4a09933b8e19b3 /src/target/firmware/lib
parent60bbc89c30cb0cfd88ad46640f50e35d197a0053 (diff)
New build system.
Diffstat (limited to 'src/target/firmware/lib')
-rw-r--r--src/target/firmware/lib/Makefile27
1 files changed, 4 insertions, 23 deletions
diff --git a/src/target/firmware/lib/Makefile b/src/target/firmware/lib/Makefile
index 4056e91b..85427439 100644
--- a/src/target/firmware/lib/Makefile
+++ b/src/target/firmware/lib/Makefile
@@ -1,26 +1,7 @@
-INCLUDES=-I../include/
--include ../Makefile.inc
-LIBNAME=mini
-CSRCS=vsprintf.c string.c ctype.c printf.c console.c
-SSRCS=changebit.S clearbit.S div64.S lib1funcs.S memcpy.S memset.S setbit.S testchangebit.S testclearbit.S testsetbit.S
+LIBRARIES+=mini
+mini_DIR=lib
+mini_SRCS=vsprintf.c string.c ctype.c printf.c console.c \
+ changebit.S clearbit.S div64.S lib1funcs.S memcpy.S memset.S setbit.S testchangebit.S testclearbit.S testsetbit.S
-COBJS=$(CSRCS:.c=.o)
-SOBJS=$(SSRCS:.S=.o)
-OBJS=$(COBJS) $(SOBJS)
-LST=$(OBJS:.o=.lst)
-
-all: lib$(LIBNAME).a
-
-$(COBJS): %.o : %.c
- $(CROSS_COMPILE)$(CC) $(CFLAGS) -c -o $@ $^
-
-$(SOBJS): %.o : %.S
- $(CROSS_COMPILE)$(CC) $(ASFLAGS) -c -o $@ $^
-
-lib$(LIBNAME).a: $(OBJS)
- $(CROSS_COMPILE)$(AR) cru $@ $^
-
-clean:
- rm -f *.a $(OBJS) $(LST)