2012-02-05 14:01:28 -05:00
|
|
|
M2DIR=../..
|
2012-05-24 13:02:59 -04:00
|
|
|
include $(M2DIR)/software/common.mak
|
2012-02-03 06:08:17 -05:00
|
|
|
|
2012-06-04 13:45:13 -04:00
|
|
|
OBJECTS=setjmp.o libc.o errno.o crc16.o crc32.o console.o timer.o system.o board.o uart.o vsnprintf.o strtod.o qsort.o
|
2012-02-03 06:08:17 -05:00
|
|
|
|
2012-02-05 14:01:28 -05:00
|
|
|
all: libbase.a
|
|
|
|
|
2012-02-03 06:25:55 -05:00
|
|
|
# pull in dependency info for *existing* .o files
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
2012-02-03 06:08:17 -05:00
|
|
|
libbase.a: $(OBJECTS)
|
|
|
|
$(AR) clr libbase.a $(OBJECTS)
|
|
|
|
$(RANLIB) libbase.a
|
|
|
|
|
2012-05-31 14:17:33 -04:00
|
|
|
%.o: %.c
|
|
|
|
$(compile-dep)
|
|
|
|
|
2012-02-03 06:08:17 -05:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2012-02-05 14:01:28 -05:00
|
|
|
rm -f $(OBJECTS) $(OBJECTS:.o=.d) libbase.a .*~ *~
|