software: do not build libdyld and libunwind for lm32. Closes #22

This commit is contained in:
Sebastien Bourdeauducq 2015-10-19 11:33:21 +08:00
parent 884faedc00
commit e6452166c2
2 changed files with 16 additions and 2 deletions

View File

@ -1,11 +1,18 @@
include ../include/generated/variables.mak include ../include/generated/variables.mak
include $(MISOC_DIRECTORY)/software/common.mak include $(MISOC_DIRECTORY)/software/common.mak
# lm32 is not supported
ifeq ($(CPU),lm32)
ALL_TARGET=
else
ALL_TARGET=libdyld.a
endif
COMMONFLAGS += -I$(MISOC_DIRECTORY)/software/include/dyld COMMONFLAGS += -I$(MISOC_DIRECTORY)/software/include/dyld
OBJECTS=dyld.o OBJECTS=dyld.o
all: libdyld.a all: $(ALL_TARGET)
# pull in dependency info for *existing* .o files # pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d) -include $(OBJECTS:.o=.d)

View File

@ -1,6 +1,13 @@
include ../include/generated/variables.mak include ../include/generated/variables.mak
include $(MISOC_DIRECTORY)/software/common.mak include $(MISOC_DIRECTORY)/software/common.mak
# lm32 is not supported
ifeq ($(CPU),lm32)
ALL_TARGET=
else
ALL_TARGET=libunwind.a
endif
COMMONFLAGS+=-integrated-as \ COMMONFLAGS+=-integrated-as \
-I. -I$(MISOC_DIRECTORY)/software/include/dyld/ -I$(MISOC_DIRECTORY)/software/unwinder/include/ \ -I. -I$(MISOC_DIRECTORY)/software/include/dyld/ -I$(MISOC_DIRECTORY)/software/unwinder/include/ \
-I$(LIBUNWIND_DIRECTORY) \ -I$(LIBUNWIND_DIRECTORY) \
@ -8,7 +15,7 @@ COMMONFLAGS+=-integrated-as \
OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o
all: libunwind.a all: $(ALL_TARGET)
# pull in dependency info for *existing* .o files # pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d) -include $(OBJECTS:.o=.d)