diff options
author | tmk <nobody@nowhere> | 2012-06-11 10:53:02 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-06-11 10:53:02 +0900 |
commit | 62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26 (patch) | |
tree | 6b10864a310f611187e1b61102da7da1db1d2e29 /rules.mk | |
parent | 225de7a847a511d004bf909b1334e19497cf2f9d (diff) | |
parent | 81706d1130fdc3c0d6d110f4d8665c47ffd7fb59 (diff) |
Merge branch 'newdir'
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -121,7 +121,9 @@ CFLAGS += -Wstrict-prototypes CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(CSTANDARD) -CFLAGS += -include $(CONFIG_H) +ifdef CONFIG_H + CFLAGS += -include $(CONFIG_H) +endif #---------------- Compiler Options C++ ---------------- @@ -149,7 +151,9 @@ CPPFLAGS += -Wundef CPPFLAGS += -Wa,-adhlns=$(@:%.o=%.lst) CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) #CPPFLAGS += $(CSTANDARD) -CPPFLAGS += -include $(CONFIG_H) +ifdef CONFIG_H + CPPFLAGS += -include $(CONFIG_H) +endif #---------------- Assembler Options ---------------- @@ -162,7 +166,9 @@ CPPFLAGS += -include $(CONFIG_H) # -listing-cont-lines: Sets the maximum number of continuation lines of hex # dump that will be displayed for a given single line of source input. ASFLAGS = $(ADEFS) -Wa,-adhlns=$(@:%.o=%.lst),-gstabs,--listing-cont-lines=100 -ASFLAGS += -include $(CONFIG_H) +ifdef CONFIG_H + ASFLAGS += -include $(CONFIG_H) +endif #---------------- Library Options ---------------- |