Basic qdev infrastructure.
[qemu/aliguori-queue.git] / rules.mak
blob8471d4007b6d8890837967cd3365020e8e6b0dd4
2 %.o: %.c
3 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
5 %.o: %.S
6 $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
8 %.o: %.m
9 $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
11 WAS=-Wl,--whole-archive
12 WAE=-Wl,--no-whole-archive
14 LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(LIBS) $(WAS) $(ARLIBS) $(WAE)," LINK $(TARGET_DIR)$@")
16 %$(EXESUF): %.o
17 $(call LINK,$^)
19 %.a:
20 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
22 quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))