litex/misoc/software/libbase/Makefile

31 lines
879 B
Makefile
Raw Normal View History

include ../include/generated/variables.mak
include $(MISOC_DIRECTORY)/software/common.mak
2015-07-30 19:35:30 -04: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
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)
libbase.a: $(OBJECTS) vsnprintf.o
$(AR) crs libbase.a $(OBJECTS) vsnprintf.o
libbase-nofloat.a: $(OBJECTS) vsnprintf-nofloat.o
$(AR) crs libbase-nofloat.a $(OBJECTS) vsnprintf-nofloat.o
vsnprintf-nofloat.o: $(LIBBASE_DIRECTORY)/vsnprintf.c
$(call compile-dep,-DNO_FLOAT)
%.o: $(LIBBASE_DIRECTORY)/%.c
$(compile-dep)
%.o: $(LIBBASE_DIRECTORY)/%.S
$(assemble)
.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
$(RM) libbase.a libbase-nofloat.a .*~ *~