Rev 321 | Rev 349 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 321 | Rev 346 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | COMMON = -mmcu=$(MCU) |
12 | COMMON = -mmcu=$(MCU) |
Line 13... | Line 13... | ||
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 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
16 | CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=16000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
Line 17... | Line 17... | ||
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 33... | Line 33... | ||
33 | HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" |
33 | HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" |
34 | HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings |
34 | HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 --no-change-warnings |
Line 35... | Line 35... | ||
35 | 35 | ||
36 | 36 | ||
Line 37... | Line 37... | ||
37 | ## Objects that must be built in order to link |
37 | ## Objects that must be built in order to link |
38 | OBJECTS = main.o |
38 | OBJECTS = main.o usart1.o max7456_software_spi.o |
Line 39... | Line 39... | ||
39 | 39 | ||
40 | ## Objects explicitly added by the user |
40 | ## Objects explicitly added by the user |
Line 41... | Line 41... | ||
41 | LINKONLYOBJECTS = |
41 | LINKONLYOBJECTS = |
42 | 42 | ||
43 | ## Build |
43 | ## Build |
Line -... | Line 44... | ||
- | 44 | all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size |
|
- | 45 | ||
- | 46 | ## Compile |
|
- | 47 | main.o: ../main.c |
|
- | 48 | $(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
- | 49 | ||
44 | all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size |
50 | usart1.o: ../usart1.c |
45 | 51 | $(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
46 | ## Compile |
52 | |
Line 47... | Line 53... | ||
47 | main.o: ../main.c |
53 | max7456_software_spi.o: ../max7456_software_spi.c |
Line 70... | Line 76... | ||
70 | -rm -rf $(OBJECTS) C-OSD.elf dep/* C-OSD.hex C-OSD.eep C-OSD.lss C-OSD.map |
76 | -rm -rf $(OBJECTS) C-OSD.elf dep/* C-OSD.hex C-OSD.eep C-OSD.lss C-OSD.map |
Line 71... | Line 77... | ||
71 | 77 | ||
72 | 78 | ||
73 | ## Other dependencies |
- |