aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build/lufa.build.in
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-02 10:46:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-02 10:46:25 +0000
commit2b332d3231d54236e093dd6bfde5421ce26f7304 (patch)
treeafdaa656eee10b8c064b8a3ea69d100d60ddaeb1 /LUFA/Build/lufa.build.in
parent26cc2e9fa80c04ece990349383adc0206613f8ab (diff)
downloadlufa-2b332d3231d54236e093dd6bfde5421ce26f7304.tar.gz
lufa-2b332d3231d54236e093dd6bfde5421ce26f7304.tar.bz2
lufa-2b332d3231d54236e093dd6bfde5421ce26f7304.zip
Replace architecture specific makefiles in the BuildTests with the new common build system makefiles.
Diffstat (limited to 'LUFA/Build/lufa.build.in')
-rw-r--r--LUFA/Build/lufa.build.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/LUFA/Build/lufa.build.in b/LUFA/Build/lufa.build.in
index 3f9d446e3..158eb24c0 100644
--- a/LUFA/Build/lufa.build.in
+++ b/LUFA/Build/lufa.build.in
@@ -81,8 +81,8 @@ endif
BOARD ?= NONE
OPTIMIZATION ?= s
F_CPU ?=
-C_STANDARD ?= c99
-CPP_STANDARD ?= c++98
+C_STANDARD ?= gnu99
+CPP_STANDARD ?= gnu++98
# Convert input source file list to differentiate them by type
C_SOURCE = $(filter %.c, $(SRC))
@@ -103,10 +103,9 @@ else ifeq ($(ARCH),UC3)
CC_FLAGS += -mpart=$(MCU) -g3 -masm-addr-pseudos
CROSS = avr32-
endif
-
CC_FLAGS += -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections
CC_FLAGS += -Wall -Wstrict-prototypes
-CC_FLAGS += -I. -I$(LUFA_PATH)/.. -pipe
+CC_FLAGS += -I. -I$(LUFA_PATH)/..
CC_FLAGS += -DARCH=ARCH_$(ARCH) -DBOARD=BOARD_$(BOARD) -DF_USB=$(F_USB)UL
ifneq ($(F_CPU),)
CC_FLAGS += -DF_CPU=$(F_CPU)UL
@@ -158,11 +157,11 @@ lss: $(TARGET).lss
%.o: %.c
@echo $(MSG_COMPILE_CMD) Compiling C file \"$^\"
- $(CROSS)gcc -c $(CC_FLAGS) -O$(OPTIMIZATION) --std=$(C_STANDARD) $< -o $@
+ $(CROSS)gcc -c $(CC_FLAGS) -O$(OPTIMIZATION) -std=$(C_STANDARD) $< -o $@
%.o: %.cpp
@echo $(MSG_COMPILE_CMD) Compiling C++ file \"$^\"
- $(CROSS)gcc -c $(CC_FLAGS) -O$(OPTIMIZATION) --std=$(CPP_STANDARD) -x c++ $< -o $@
+ $(CROSS)gcc -c $(CC_FLAGS) -O$(OPTIMIZATION) -std=$(CPP_STANDARD) -x c++ $< -o $@
%.o: %.S
@echo $(MSG_COMPILE_CMD) Assembling \"$^\"