35,7 → 35,7 |
|
|
## Objects that must be built in order to link |
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o |
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o config.o spi.o buttons.o |
|
## Objects explicitly added by the user |
LINKONLYOBJECTS = |
55,7 → 55,16 |
|
osd_helpers.o: ../osd_helpers.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
config.o: ../config.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
spi.o: ../spi.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
buttons.o: ../buttons.c |
$(CC) $(INCLUDES) $(CFLAGS) -c $< |
|
##Link |
$(TARGET): $(OBJECTS) |
$(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET) |