2015-07-26 05:59:18 -04:00
|
|
|
MSCDIR=../..
|
|
|
|
include $(MSCDIR)/software/common.mak
|
|
|
|
|
|
|
|
COMMONFLAGS+=-integrated-as \
|
|
|
|
-I. -I$(MSCDIR)/software/include/dyld/ -I$(MSCDIR)/software/unwinder/include/ \
|
2015-08-01 23:25:40 -04:00
|
|
|
-D__ELF__ -D__linux__ -D_LIBUNWIND_NO_HEAP -DNDEBUG
|
2015-07-26 05:59:18 -04:00
|
|
|
|
|
|
|
OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o
|
|
|
|
|
|
|
|
all: libunwind.a
|
|
|
|
|
|
|
|
# pull in dependency info for *existing* .o files
|
|
|
|
-include $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
libunwind.a: $(OBJECTS)
|
|
|
|
$(AR) crs libunwind.a $(OBJECTS)
|
|
|
|
|
|
|
|
%.o: $(MSCDIR)/software/unwinder/src/%.cpp
|
|
|
|
$(compilexx-dep)
|
|
|
|
|
|
|
|
%.o: $(MSCDIR)/software/unwinder/src/%.c
|
|
|
|
$(compile-dep)
|
|
|
|
|
|
|
|
%.o: $(MSCDIR)/software/unwinder/src/%.S
|
|
|
|
$(assemble)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libuwind.a .*~ *~
|