Subversion Repositories Projects

Rev

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

Rev 477 Rev 497
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 config.o spi.o buttons.o ppm.o
38
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o config.o spi.o buttons.o ppm.o osd_ncmode_default.o osd_ncmode_minimal.o osd_fcmode_default.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 65... Line 65...
65
buttons.o: ../buttons.c
65
buttons.o: ../buttons.c
66
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
66
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
67
 
67
 
68
ppm.o: ../ppm.c
68
ppm.o: ../ppm.c
69
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
69
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
70
	
-
 
71
osd_ncmode_default.o: ../osd_ncmode_default.c
-
 
72
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
73
	
-
 
74
osd_ncmode_minimal.o: ../osd_ncmode_minimal.c
-
 
75
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
-
 
76
 
-
 
77
osd_fcmode_default.o: ../osd_fcmode_default.c
-
 
78
	$(CC) $(INCLUDES) $(CFLAGS) -c  $<
70
 
79
 
71
##Link
80
##Link
72
$(TARGET): $(OBJECTS)
81
$(TARGET): $(OBJECTS)
73
	 $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET)
82
	 $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET)
74
 
83