Revert change to assembly file comment syntax; this apparently breaks on the current...
[pub/USBasp.git] / BuildTests / ModuleTest / makefile.test
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2012.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8 # --------------------------------------
9 # LUFA Project Makefile.
10 # --------------------------------------
11
12 MCU =
13 ARCH =
14 BOARD = NONE
15 F_CPU = $(F_USB)
16 OPTIMIZATION = 1
17 TARGET = Test
18 SRC = $(TARGET)_C.c $(TARGET)_CPP.cpp Dummy.S $(LUFA_SRC_USB)
19 LUFA_PATH = ../../LUFA/
20
21 ifeq ($(ARCH), AVR8)
22 F_USB = 8000000
23 else ifeq ($(ARCH), XMEGA)
24 F_USB = 48000000
25 else ifeq ($(ARCH), UC3)
26 F_USB = 48000000
27 endif
28
29 # Generic C/C++ compiler flags
30 CC_FLAGS = -Wextra
31 CC_FLAGS += -Werror
32 CC_FLAGS += -Wformat=2
33 CC_FLAGS += -Winit-self
34 CC_FLAGS += -Wswitch-enum
35 CC_FLAGS += -Wunused
36 CC_FLAGS += -Wundef
37 CC_FLAGS += -Wpointer-arith
38 CC_FLAGS += -Wcast-align
39 CC_FLAGS += -Wwrite-strings
40 CC_FLAGS += -Wlogical-op
41 CC_FLAGS += -Wmissing-declarations
42 CC_FLAGS += -Wmissing-field-initializers
43 CC_FLAGS += -Wmissing-format-attribute
44 CC_FLAGS += -Woverlength-strings
45
46 # Only enable rendundant declaration warnings for AVR8 target (FIXME)
47 ifeq ($(ARCH), AVR8)
48 CC_FLAGS += -Wredundant-decls
49 endif
50
51 # C compiler only flags
52 C_FLAGS += -Wmissing-parameter-type
53 C_FLAGS += -Wnested-externs
54
55 # Potential additional warnings to enable in the future (FIXME)
56 #CC_FLAGS += -Wswitch-default
57 #CC_FLAGS += -Wc++-compat
58 #CC_FLAGS += -Wcast-qual
59 #CC_FLAGS += -Wconversion
60 #CC_FLAGS += -Wjump-misses-init
61 #CC_FLAGS += -pedantic
62
63 # Include LUFA build script makefiles
64 include $(LUFA_PATH)/Build/lufa.sources.in
65 include $(LUFA_PATH)/Build/lufa.build.in