Subversion Repositories Projects

Rev

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

Rev 459 Rev 471
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
35
 
35
 
36
 
36
 
37
## Objects that must be built in order to link
37
## Objects that must be built in order to link
38
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o
38
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o config.o spi.o buttons.o
39
 
39
 
40
## Objects explicitly added by the user
40
## Objects explicitly added by the user
41
LINKONLYOBJECTS =
41
LINKONLYOBJECTS =
42
 
42
 
43
## Build
43
## Build
Line 53... Line 53...
53
max7456_software_spi.o: ../max7456_software_spi.c
53
max7456_software_spi.o: ../max7456_software_spi.c
54
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
54
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
55
 
55
 
56
osd_helpers.o: ../osd_helpers.c
56
osd_helpers.o: ../osd_helpers.c
57
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
57
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
58
	
-
 
59
config.o: ../config.c
-
 
60
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
61
 
-
 
62
spi.o: ../spi.c
-
 
63
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
64
	
-
 
65
buttons.o: ../buttons.c
-
 
66
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
58
 
67
 
59
##Link
68
##Link
60
$(TARGET): $(OBJECTS)
69
$(TARGET): $(OBJECTS)
61
	 $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET)
70
	 $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET)
62
 
71