Subversion Repositories HomeAutomation

Rev

Rev 73 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 73 Rev 142
Line 64... Line 64...
64
 
64
 
65
 
65
 
66
# List C source files here. (C dependencies are automatically generated.)
66
# List C source files here. (C dependencies are automatically generated.)
67
SRC =	$(TARGET).c\
67
SRC =	$(TARGET).c\
68
		protocol.c\
68
		protocol.c\
-
 
69
		$(LIBDIR)mcu/mcu.c\
69
		$(LIBDIR)mcu/uart.c\
70
		$(LIBDIR)mcu/uart.c\
70
		$(LIBDIR)mcu/timebase.c\
71
		$(LIBDIR)mcu/timebase.c\
71
		$(LIBDIR)can/can.c\
72
		$(LIBDIR)can/can.c\
72
		$(LIBDIR)can/mcp2515/mcp2515.c
73
		$(LIBDIR)can/mcp2515/mcp2515.c
73
 
74
 
Line 116... Line 117...
116
#  -O*:          optimization level
117
#  -O*:          optimization level
117
#  -f...:        tuning, see GCC manual and avr-libc documentation
118
#  -f...:        tuning, see GCC manual and avr-libc documentation
118
#  -Wall...:     warning level
119
#  -Wall...:     warning level
119
#  -Wa,...:      tell GCC to pass this to the assembler.
120
#  -Wa,...:      tell GCC to pass this to the assembler.
120
#    -adhlns...: create assembler listing
121
#    -adhlns...: create assembler listing
-
 
122
CFLAGS = 
121
CFLAGS = -g$(DEBUG)
123
#CFLAGS += -g$(DEBUG)
122
CFLAGS += $(CDEFS) $(CINCS)
124
CFLAGS += $(CDEFS) $(CINCS)
123
CFLAGS += -O$(OPT)
125
CFLAGS += -O$(OPT)
124
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
126
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
125
CFLAGS += -Wall -Wstrict-prototypes
127
CFLAGS += -Wall -Wstrict-prototypes
126
CFLAGS += -Wa,-adhlns=$(<:.c=.lst)
128
CFLAGS += -Wa,-adhlns=$(<:.c=.lst)
Line 148... Line 150...
148
PRINTF_LIB_MIN = -Wl,-u,vfprintf -lprintf_min
150
PRINTF_LIB_MIN = -Wl,-u,vfprintf -lprintf_min
149
 
151
 
150
# Floating point printf version (requires MATH_LIB = -lm below)
152
# Floating point printf version (requires MATH_LIB = -lm below)
151
PRINTF_LIB_FLOAT = -Wl,-u,vfprintf -lprintf_flt
153
PRINTF_LIB_FLOAT = -Wl,-u,vfprintf -lprintf_flt
152
 
154
 
153
PRINTF_LIB = 
155
PRINTF_LIB = $(PRINTF_LIB_MIN)
154
 
156
 
155
# Minimalistic scanf version
157
# Minimalistic scanf version
156
SCANF_LIB_MIN = -Wl,-u,vfscanf -lscanf_min
158
SCANF_LIB_MIN = -Wl,-u,vfscanf -lscanf_min
157
 
159
 
158
# Floating point + %[ scanf version (requires MATH_LIB = -lm below)
160
# Floating point + %[ scanf version (requires MATH_LIB = -lm below)