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.
24 lines
844 B
Makefile
24 lines
844 B
Makefile
MSCDIR=../..
|
|
include $(MSCDIR)/software/common.mak
|
|
|
|
CFLAGS+=-D_YUGA_LITTLE_ENDIAN=0 -D_YUGA_BIG_ENDIAN=1 -Wno-missing-prototypes
|
|
|
|
OBJECTS=divsi3.o modsi3.o comparedf2.o negsf2.o negdf2.o addsf3.o subsf3.o mulsf3.o divsf3.o lshrdi3.o muldi3.o divdi3.o ashldi3.o ashrdi3.o udivmoddi4.o \
|
|
floatsisf.o floatunsisf.o fixsfsi.o fixdfdi.o fixunssfsi.o adddf3.o subdf3.o muldf3.o divdf3.o floatsidf.o floatunsidf.o floatdidf.o fixdfsi.o fixunsdfsi.o \
|
|
clzsi2.o ctzsi2.o udivdi3.o umoddi3.o moddi3.o ucmpdi2.o
|
|
|
|
all: libcompiler-rt.a
|
|
|
|
# pull in dependency info for *existing* .o files
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
libcompiler-rt.a: $(OBJECTS)
|
|
$(AR) crs libcompiler-rt.a $(OBJECTS)
|
|
|
|
%.o: $(MSCDIR)/software/compiler-rt/lib/builtins/%.c
|
|
$(compile-dep)
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libcompiler-rt.a .*~ *~
|