2013-11-09 09:27:32 -05:00
|
|
|
MSCDIR=../..
|
|
|
|
include $(MSCDIR)/software/common.mak
|
2012-02-03 06:08:17 -05:00
|
|
|
|
2014-11-27 10:10:24 -05:00
|
|
|
OBJECTS=exception.o libc.o errno.o crc16.o crc32.o console.o system.o id.o uart.o time.o qsort.o strtod.o spiflash.o
|
2012-02-03 06:08:17 -05:00
|
|
|
|
2014-05-14 04:24:56 -04:00
|
|
|
all: crt0-$(CPU).o libbase.a libbase-nofloat.a
|
2012-02-05 14:01:28 -05:00
|
|
|
|
2012-02-03 06:25:55 -05:00
|
|
|
# pull in dependency info for *existing* .o files
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
2013-05-19 06:41:40 -04:00
|
|
|
libbase.a: $(OBJECTS) vsnprintf.o
|
2015-07-25 20:20:23 -04:00
|
|
|
$(AR) crs libbase.a $(OBJECTS) vsnprintf.o
|
2012-02-03 06:08:17 -05:00
|
|
|
|
2013-05-19 06:41:40 -04:00
|
|
|
libbase-nofloat.a: $(OBJECTS) vsnprintf-nofloat.o
|
2015-07-25 20:20:23 -04:00
|
|
|
$(AR) crs libbase-nofloat.a $(OBJECTS) vsnprintf-nofloat.o
|
2013-05-19 06:41:40 -04:00
|
|
|
|
|
|
|
vsnprintf-nofloat.o: vsnprintf.c
|
|
|
|
$(call compile-dep,-DNO_FLOAT)
|
|
|
|
|
2012-05-31 14:17:33 -04:00
|
|
|
%.o: %.c
|
|
|
|
$(compile-dep)
|
|
|
|
|
2013-01-10 11:20:31 -05:00
|
|
|
%.o: %.S
|
|
|
|
$(assemble)
|
|
|
|
|
2012-02-03 06:08:17 -05:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2014-06-01 17:17:43 -04:00
|
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.d) crt0-$(CPU).o vsnprintf.o vsnprintf.d vsnprintf-nofloat.o vsnprintf-nofloat.d
|
2013-05-19 06:41:40 -04:00
|
|
|
$(RM) libbase.a libbase-nofloat.a .*~ *~
|