Revision cec7d0b6 Makefile

b/Makefile
26 26

  
27 27
all: $(TOOLS) $(DOCS) recurse-all 
28 28

  
29
subdir-%: dyngen$(EXESUF) libqemu_common.a
29
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
30

  
31
subdir-%: dyngen$(EXESUF)
30 32
	$(MAKE) -C $(subst subdir-,,$@) all
31 33

  
32
recurse-all: $(patsubst %,subdir-%, $(TARGET_DIRS))
34
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
35
$(filter %-user,$(SUBDIR_RULES)): libqemu_user.a
36

  
37
recurse-all: $(SUBDIR_RULES)
33 38

  
34 39
#######################################################################
35 40
# BLOCK_OBJS is code used by both qemu system emulation and qemu-img
......
141 146
	rm -f $@ 
142 147
	$(AR) rcs $@ $(OBJS)
143 148

  
149
#######################################################################
150
# USER_OBJS is code used by qemu userspace emulation
151
USER_OBJS=cutils.o
152

  
153
libqemu_user.a: $(USER_OBJS)
154
	rm -f $@ 
155
	$(AR) rcs $@ $(USER_OBJS)
156

  
144 157
QEMU_IMG_BLOCK_OBJS = $(BLOCK_OBJS)
145 158
ifdef CONFIG_WIN32
146 159
QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-win32.o

Also available in: Unified diff