2013-11-09 09:27:32 -05:00
|
|
|
MSCDIR=../..
|
|
|
|
include $(MSCDIR)/software/common.mak
|
2013-01-10 11:59:00 -05:00
|
|
|
|
|
|
|
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 \
|
2013-03-06 05:10:16 -05:00
|
|
|
floatsisf.o floatunsisf.o fixsfsi.o fixunssfsi.o adddf3.o subdf3.o muldf3.o divdf3.o floatsidf.o floatunsidf.o floatdidf.o fixdfsi.o fixunsdfsi.o \
|
2014-08-28 04:54:12 -04:00
|
|
|
clzsi2.o ctzsi2.o udivdi3.o umoddi3.o moddi3.o
|
2013-01-10 11:59:00 -05:00
|
|
|
|
|
|
|
all: libcompiler-rt.a
|
|
|
|
|
|
|
|
# pull in dependency info for *existing* .o files
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
libcompiler-rt.a: $(OBJECTS)
|
|
|
|
$(AR) clr libcompiler-rt.a $(OBJECTS)
|
|
|
|
$(RANLIB) libcompiler-rt.a
|
|
|
|
|
2014-11-06 21:00:28 -05:00
|
|
|
%.o: $(MSCDIR)/software/compiler-rt/lib/builtins/%.c
|
2013-01-10 11:59:00 -05:00
|
|
|
$(compile-dep)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2013-05-10 16:30:28 -04:00
|
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libcompiler-rt.a .*~ *~
|