Lines Matching +full:- +full:- +full:cc
2 SRC_DIR := $(TOPSRC_DIR)/pc-bios/optionrom
9 CFLAGS = -O2 -g
15 quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && ))
16 quiet-command = $(call quiet-@,$2 $@)$1
19 override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d
21 override CFLAGS += -march=i486 -Wall $(EXTRA_CFLAGS) -m16
22 override CFLAGS += -ffreestanding -I$(TOPSRC_DIR)/include
24 cc-test = $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>/dev/null
25 cc-option = if $(call cc-test, $1); then \
29 # If -fcf-protection is enabled in flags or compiler defaults that will
30 # conflict with -march=i486
31 config-cc.mak: Makefile
32 $(quiet-@)($(call cc-option,-fcf-protection=none); \
33 $(call cc-option,-fno-pie); \
34 $(call cc-option,-no-pie); \
35 $(call cc-option,-fno-stack-protector); \
36 $(call cc-option,-Wno-array-bounds)) 3> config-cc.mak
37 -include config-cc.mak
39 override LDFLAGS = -nostdlib -Wl,--build-id=none,-T,$(SRC_DIR)/flat.lds
44 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,Assembling)
47 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@,Compiling)
50 $(call quiet-command,$(CC) $(CFLAGS) $(LDFLAGS) -s -o $@ $^,Linking)
53 $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,Extracting raw object)
56 $(call quiet-command,$(PYTHON) $(TOPSRC_DIR)/scripts/signrom.py $< $@,Computing checksum into)
61 rm -f *.o *.d *.raw *.img *.bin *~
64 rm -f config-cc.mak
66 # suppress auto-removal of intermediate files