]> xenbits.xensource.com Git - xen.git/commitdiff
tools build: Fix build after subdir rules cleanups.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 25 Mar 2008 10:17:22 +0000 (10:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 25 Mar 2008 10:17:22 +0000 (10:17 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Config.mk
tools/Rules.mk
tools/firmware/hvmloader/Makefile
tools/firmware/rombios/32bit/Makefile
tools/firmware/rombios/Makefile
tools/libfsimage/Makefile

index 5715debf9b8b8d1e18c48ba1905bd65d65fe97cb..077bfa4d5cdce166856cf97029a1591005f52c97 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -25,6 +25,9 @@ HOSTCFLAGS += -fno-strict-aliasing
 DISTDIR     ?= $(XEN_ROOT)/dist
 DESTDIR     ?= /
 
+# Allow phony attribute to be listed as dependency rather than fake target
+.PHONY: .phony
+
 include $(XEN_ROOT)/config/$(XEN_OS).mk
 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
 
index 58f6fbf48747defb497f37797d94ac8318cba706..29639a341d931253062e53d0b1832fddc0c4fa41 100644 (file)
@@ -49,13 +49,11 @@ $(eval $(check-y))
 %.o: %.cc
        $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
 
-.PHONY: subdirs-all subdirs-clean subdirs-install
-.NOTPARALLEL: subdirs-all subdirs-clean subdirs-install
-subdirs-all subdirs-clean subdirs-install:
+subdirs-all subdirs-clean subdirs-install: .phony
        @set -e; for subdir in $(SUBDIRS) $(SUBDIRS-y); do \
                $(MAKE) subdir-$(patsubst subdirs-%,%,$@)-$$subdir; \
        done
 
-subdir-all-% subdir-clean-% subdir-install-%:
+subdir-all-% subdir-clean-% subdir-install-%: .phony
        $(MAKE) -C $* $(patsubst subdir-%-$*,%,$@)
 
index 533fa81e7234167dbe464af9d7d79a3e6b5ff5d5..0defed1264496d23ecbe6d090ac957adb71946a8 100644 (file)
@@ -40,9 +40,9 @@ SRCS = hvmloader.c mp_tables.c util.c smbios.c 32bitbios_support.c
 OBJS = $(patsubst %.c,%.o,$(SRCS))
 
 .PHONY: all
-all: subdirs-all hvmloader
+all: hvmloader
 
-hvmloader: roms.h acpi/acpi.a $(SRCS)
+hvmloader: roms.h subdirs-all $(SRCS)
        $(CC) $(CFLAGS) -c $(SRCS)
        $(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) -o hvmloader.tmp $(OBJS) acpi/acpi.a
        $(OBJCOPY) hvmloader.tmp hvmloader
index 553fe8d1b26e2e9c6a1ca3b454dddfe7110b08df..90d86db0a97f9e814311c600b01ee9c731ba8c31 100644 (file)
@@ -16,14 +16,14 @@ SUBDIRS = tcgbios
 
 MODULES = tcgbios/tcgbiosext.o
 
-.PHONY: all subdirs clean
-
-all: subdirs-all $(TARGET)
+.PHONY: all
+all: $(TARGET)
 
+.PHONY: clean
 clean: subdirs-clean
        rm -rf *.o $(TARGET)
 
-$(TARGET): 32bitbios.o util.o
+$(TARGET): subdirs-all 32bitbios.o util.o
        $(LD) $(LDFLAGS_DIRECT) -s -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
        @nm 32bitbios_all.o |                                \
          egrep '^ +U ' >/dev/null && {                      \
index dcf2143c6cf8453f3409d8c3894c638b40dde67c..be2fef672a62110afe00a3340ee246c8827a3b6b 100644 (file)
@@ -4,10 +4,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 SUBDIRS := 32bit
 
 .PHONY: all
-all: subdirs-all bios
-
-.PHONY: bios
-bios: biossums BIOS-bochs-latest
+all: subdirs-all BIOS-bochs-latest
 
 .PHONY: clean
 clean: subdirs-clean
index 6e97308c8bb1fd9e7e38491ee0ed6002c0d7a596..7dd3c4f0fb04f5d754b6c4ade76ef09b98cc4a16 100644 (file)
@@ -4,7 +4,8 @@ include $(XEN_ROOT)/tools/Rules.mk
 SUBDIRS-y = common ufs reiserfs iso9660 fat
 SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs)
 
-.PHONE: all clean install
+.PHONY: all clean install
 all clean install: %: subdirs-%
 
+.PHONY: distclean
 distclean: clean