mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
0f47876d2e
`ranlib` is not necessary on any system we can possibly build for, as it is superseded by `ar s` for the last ten years or so (at least). Thus, change ar invocations to `ar crs`, also removing a `l` flag that is ignored by binutils.
30 lines
777 B
Makefile
30 lines
777 B
Makefile
MSCDIR=../..
|
|
include $(MSCDIR)/software/common.mak
|
|
|
|
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
|
|
|
|
# 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: vsnprintf.c
|
|
$(call compile-dep,-DNO_FLOAT)
|
|
|
|
%.o: %.c
|
|
$(compile-dep)
|
|
|
|
%.o: %.S
|
|
$(assemble)
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.d) crt0-$(CPU).o vsnprintf.o vsnprintf.d vsnprintf-nofloat.o vsnprintf-nofloat.d
|
|
$(RM) libbase.a libbase-nofloat.a .*~ *~
|