8 %.d:
9 %.h:
10 %.c:
11 %.m:
12 %.mak:
13
14 # Flags for dependency generation
15 QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
16
17 %.o: %.c
18 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
19
20 %.o: %.S
21 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
22
23 %.o: %.m
24 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
25
26 LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(1) $(LIBS)," LINK $(TARGET_DIR)$@")
27
28 CTFMERGE = $(call quiet-command, $$(which ctfmerge) -L VERSION -o $@ $(1)," CTFMERGE $(TARGET_DIR)$@")
29
30 ifeq ($(TRACE_BACKEND),dtrace)
31 ifneq ($(strip $(CONFIG_SOLARIS)),)
32 %$(EXESUF): %.o
33 $(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o trace-dtrace.o -s trace-dtrace.dtrace -G $^," LINK $(TARGET_DIR)$@.dtrace")
34 $(call LINK,$^ trace-dtrace.o)
35 else
36 %$(EXESUF): %.o
37 $(call LINK,$^)
38 endif
39 else
40 %$(EXESUF): %.o
41 $(call LINK,$^)
42 endif
43
44 %.a:
45 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
46
47 quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
48
|
8 %.d:
9 %.h:
10 %.c:
11 %.m:
12 %.mak:
13
14 # Flags for dependency generation
15 QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
16
17 %.o: %.c
18 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
19
20 %.o: %.S
21 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
22
23 %.o: %.m
24 $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
25
26 LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(1) $(LIBS)," LINK $(TARGET_DIR)$@")
27
28 CTFMERGE_CMD = $(call quiet-command, $(CTFMERGE) -L VERSION -o $@ $(1)," CTFMERGE $(TARGET_DIR)$@")
29
30 CTFCONVERT_CMD = $(call quiet-command, CTFCONVERT=$(CTFCONVERT) find ../ -type f -name '*.o' -exec ../ctf.sh '{}' \;)
31
32 ifeq ($(TRACE_BACKEND),dtrace)
33 ifneq ($(strip $(CONFIG_SOLARIS)),)
34 %$(EXESUF): %.o
35 $(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o trace-dtrace.o -s trace-dtrace.dtrace -G $^," LINK $(TARGET_DIR)$@.dtrace")
36 $(call LINK,$^ trace-dtrace.o)
37 else
38 %$(EXESUF): %.o
39 $(call LINK,$^)
40 endif
41 else
42 %$(EXESUF): %.o
43 $(call LINK,$^)
44 endif
45
46 %.a:
47 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
48
49 quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
50
|