Revision f527c579

b/Makefile
1 1
# Makefile for QEMU.
2 2

  
3
# This needs to be defined before rules.mak
4
GENERATED_HEADERS = config-host.h config-all-devices.h
5

  
3 6
ifneq ($(wildcard config-host.mak),)
4 7
# Put the all: rule here so that config-host.mak can contain dependencies.
5 8
all: build-all
......
40 43

  
41 44
-include config-all-devices.mak
42 45

  
43
build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS)
44
	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,)
46
build-all: $(DOCS) $(TOOLS) recurse-all
45 47

  
46 48
config-host.h: config-host.h-timestamp
47 49
config-host.h-timestamp: config-host.mak
......
51 53

  
52 54
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
53 55

  
54
subdir-%: config-host.h config-all-devices.h
56
subdir-%: $(GENERATED_HEADERS)
55 57
	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
56 58

  
57 59
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
b/Makefile.target
1 1
# -*- Mode: makefile -*-
2 2

  
3
# This needs to be defined before rules.mak
4
GENERATED_HEADERS = config-target.h config-devices.h
5

  
3 6
include ../config-host.mak
4 7
include config-devices.mak
5 8
include config-target.mak
......
33 36
config-devices.h: config-devices.h-timestamp
34 37
config-devices.h-timestamp: config-devices.mak
35 38

  
36
all: config-target.h config-devices.h
37
	$(call quiet-command, $(MAKE) $(PROGS),)
39
all: $(PROGS)
38 40

  
39 41
# Dummy command so that make thinks it has done something
40 42
	@true
b/rules.mak
13 13

  
14 14
QEMU_CFLAGS += -MMD -MP -MT $@
15 15

  
16
%.o: %.c
16
%.o: %.c $(GENERATED_HEADERS)
17 17
	$(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
18 18

  
19 19
%.o: %.S

Also available in: Unified diff