fix OS detection, libgcc detection

This commit is contained in:
bushing 2009-12-22 12:50:34 +00:00
commit d5be6f7cd4
3 changed files with 34 additions and 44 deletions

View file

@ -1,21 +1,13 @@
include common/Makefile.common
ifeq ($(DETECTED_OS),Linux)
HOST_BINARY=linux
else
HOST_BINARY=winsrc
endif
all clean: %: bootrom/% armsrc/% $(HOST_BINARY)/%
all clean: %: bootrom/% armsrc/% client/%
bootrom/%: FORCE
$(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
armsrc/%: FORCE
$(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
linux/%: FORCE
$(MAKE) -C linux $(patsubst linux/%,%,$@)
winsrc/%: FORCE
$(MAKE) -C winsrc $(patsubst winsrc/%,%,$@)
client/%: FORCE
$(MAKE) -C client $(patsubst client/%,%,$@)
FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)