< prev index next >

make/devkit/Makefile

Print this page




  58 cpu := x86_64
  59 #$(shell uname -p)
  60 
  61 #
  62 # This wrapper script can handle exactly these platforms
  63 #
  64 platforms := $(foreach p,x86_64 i686,$(p)-unknown-linux-gnu)
  65 #platforms := $(foreach p,x86_64,$(p)-unknown-linux-gnu)
  66 
  67 # Figure out what platform this is building on.
  68 me := $(cpu)-$(if $(findstring Linux,$(os)),unknown-linux-gnu)
  69 
  70 $(info Building on platform $(me))
  71 
  72 all compile : $(platforms)
  73 
  74 ifeq (,$(SKIP_ME))
  75   $(foreach p,$(filter-out $(me),$(platforms)),$(eval $(p) : $$(me)))
  76 endif
  77 
  78 OUTPUT_ROOT = $(abspath ../../../build/devkit)
  79 RESULT = $(OUTPUT_ROOT)/result
  80 
  81 submakevars = HOST=$@ BUILD=$(me) \
  82     RESULT=$(RESULT) PREFIX=$(RESULT)/$@ \
  83     OUTPUT_ROOT=$(OUTPUT_ROOT)
  84 $(platforms) :
  85         @echo 'Building compilers for $@'
  86         @echo 'Targets: $(platforms)'
  87         for p in $@ $(filter-out $@,$(platforms)); do \
  88           $(MAKE) -f Tools.gmk all $(submakevars) \
  89               TARGET=$$p || exit 1 ; \
  90         done
  91         @echo 'Building ccache program for $@'
  92         $(MAKE) -f Tools.gmk ccache $(submakevars) TARGET=$@
  93         @echo 'All done"'
  94 
  95 $(foreach a,i686 x86_64,$(eval $(a) : $(filter $(a)%,$(platforms))))
  96 
  97 ia32 : i686
  98 today := $(shell date +%Y%m%d)




  58 cpu := x86_64
  59 #$(shell uname -p)
  60 
  61 #
  62 # This wrapper script can handle exactly these platforms
  63 #
  64 platforms := $(foreach p,x86_64 i686,$(p)-unknown-linux-gnu)
  65 #platforms := $(foreach p,x86_64,$(p)-unknown-linux-gnu)
  66 
  67 # Figure out what platform this is building on.
  68 me := $(cpu)-$(if $(findstring Linux,$(os)),unknown-linux-gnu)
  69 
  70 $(info Building on platform $(me))
  71 
  72 all compile : $(platforms)
  73 
  74 ifeq (,$(SKIP_ME))
  75   $(foreach p,$(filter-out $(me),$(platforms)),$(eval $(p) : $$(me)))
  76 endif
  77 
  78 OUTPUT_ROOT = $(abspath ../../build/devkit)
  79 RESULT = $(OUTPUT_ROOT)/result
  80 
  81 submakevars = HOST=$@ BUILD=$(me) \
  82     RESULT=$(RESULT) PREFIX=$(RESULT)/$@ \
  83     OUTPUT_ROOT=$(OUTPUT_ROOT)
  84 $(platforms) :
  85         @echo 'Building compilers for $@'
  86         @echo 'Targets: $(platforms)'
  87         for p in $@ $(filter-out $@,$(platforms)); do \
  88           $(MAKE) -f Tools.gmk all $(submakevars) \
  89               TARGET=$$p || exit 1 ; \
  90         done
  91         @echo 'Building ccache program for $@'
  92         $(MAKE) -f Tools.gmk ccache $(submakevars) TARGET=$@
  93         @echo 'All done"'
  94 
  95 $(foreach a,i686 x86_64,$(eval $(a) : $(filter $(a)%,$(platforms))))
  96 
  97 ia32 : i686
  98 today := $(shell date +%Y%m%d)


< prev index next >