X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=Makefile;h=186ef51f25ef6224d0640ca7895d956282c80a39;hb=231f710715a7f6ddf1626fda38ebdb511b5d55dc;hp=eebc4d1507aba3deea5f7b4ff5ca9c1008faf06c;hpb=d99908e5114d428a6b142d1f222a8d0a3fd9cfe9;p=seabios.git diff --git a/Makefile b/Makefile index eebc4d1..186ef51 100644 --- a/Makefile +++ b/Makefile @@ -54,10 +54,14 @@ vpath %.S src ################ Build rules +ifndef AVOIDCOMBINE +AVOIDCOMBINE=$(shell CC=$(CC) tools/test-combine.sh) +endif + # Do a whole file compile - two methods are supported. The first # involves including all the content textually via #include # directives. The second method uses gcc's "-combine" option. -ifdef AVOIDCOMBINE +ifeq "$(AVOIDCOMBINE)" "1" define whole-compile @echo " Compiling whole program $3" $(Q)printf '$(foreach i,$2,#include "../$i"\n)' > $3.tmp.c