3 $(call quiet-command
,$(CC
) $(QEMU_CFLAGS
) $(CFLAGS
) -c
-o
$@
$<," CC $(TARGET_DIR)$@")
6 $(call quiet-command
,$(CC
) $(QEMU_CFLAGS
) $(CLAGS
) -c
-o
$@
$<," AS $(TARGET_DIR)$@")
9 $(call quiet-command
,$(CC
) $(QEMU_CFLAGS
) $(CFLAGS
) -c
-o
$@
$<," OBJC $(TARGET_DIR)$@")
11 LINK
= $(call quiet-command
,$(CC
) $(LDFLAGS
) -o
$@
$(1) $(ARLIBS_BEGIN
) $(ARLIBS
) $(ARLIBS_END
) $(LIBS
)," LINK $(TARGET_DIR)$@")
17 $(call quiet-command
,rm -f
$@
&& $(AR
) rcs
$@
$^
," AR $(TARGET_DIR)$@")
19 quiet-command
= $(if
$(V
),$1,$(if
$(2),@echo
$2 && $1, @
$1))
22 # Usage: CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)
24 cc-option
= $(if
$(shell $(CC
) $1 $2 -S
-o
/dev
/null
-xc
/dev
/null \
25 >/dev
/null
2>&1 && echo OK
), $2, $3)