litex/software/libbase/Makefile

33 lines
790 B
Makefile
Raw Normal View History

2012-02-05 14:01:28 -05:00
M2DIR=../..
2012-05-24 13:02:59 -04:00
include $(M2DIR)/software/common.mak
2013-07-11 13:00:48 -04:00
OBJECTS=setjmp.o libc.o errno.o crc16.o crc32.o console.o system.o id.o uart.o time.o qsort.o strtod.o
2013-07-11 12:36:26 -04:00
all: crt0.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)
libbase.a: $(OBJECTS) vsnprintf.o
$(AR) clr libbase.a $(OBJECTS) vsnprintf.o
$(RANLIB) libbase.a
libbase-nofloat.a: $(OBJECTS) vsnprintf-nofloat.o
$(AR) clr libbase-nofloat.a $(OBJECTS) vsnprintf-nofloat.o
$(RANLIB) libbase-nofloat.a
vsnprintf-nofloat.o: vsnprintf.c
$(call compile-dep,-DNO_FLOAT)
%.o: %.c
$(compile-dep)
%.o: %.S
$(assemble)
.PHONY: clean
clean:
$(RM) $(OBJECTS) $(OBJECTS:.o=.d) vsnprintf.o vsnprintf.d vsnprintf-nofloat.o vsnprintf-nofloat.d
$(RM) libbase.a libbase-nofloat.a .*~ *~