Subversion Repositories Projects

Rev

Rev 389 | Rev 459 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 389 Rev 456
Line 10... Line 10...
10
 
10
 
11
## Options common to compile, link and assembly rules
11
## Options common to compile, link and assembly rules
12
COMMON = -mmcu=$(MCU)
12
COMMON = -mmcu=$(MCU)
13
 
13
 
14
## Compile options common for all C compilation units.
14
## Compile options common for all C compilation units.
15
CFLAGS = $(COMMON)
15
CFLAGS += $(COMMON)
16
CFLAGS += -Wall -gdwarf-2 -std=gnu99        -DF_CPU=16000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
16
CFLAGS += -Wall -gdwarf-2 -std=gnu99        -DF_CPU=16000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
17
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
17
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
18
 
18
 
19
## Assembly specific flags
19
## Assembly specific flags
20
ASMFLAGS = $(COMMON)
20
ASMFLAGS = $(COMMON)
Line 78... Line 78...
78
clean:
78
clean:
79
	-rm -rf $(OBJECTS) C-OSD.elf dep/* C-OSD.hex C-OSD.eep C-OSD.lss C-OSD.map
79
	-rm -rf $(OBJECTS) C-OSD.elf dep/* C-OSD.hex C-OSD.eep C-OSD.lss C-OSD.map
80
 
80
 
81
 
81
 
82
## Other dependencies
82
## Other dependencies
83
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*)
-
 
84
83
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*)
-
 
84