Break out font stuff into new module
This commit is contained in:
@@ -37,6 +37,9 @@ ledmat.o: ../../drivers/ledmat.c ../../drivers/avr/pio.h ../../drivers/avr/syste
|
||||
navswitch.o: ../../drivers/navswitch.c ../../drivers/avr/delay.h ../../drivers/avr/pio.h ../../drivers/avr/system.h ../../drivers/navswitch.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
font.o: ../../utils/font.c ../../drivers/avr/system.h ../../utils/font.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
pacer.o: ../../utils/pacer.c ../../drivers/avr/system.h ../../drivers/avr/timer.h ../../utils/pacer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
@@ -46,7 +49,7 @@ tinygl.o: ../../utils/tinygl.c ../../drivers/avr/system.h ../../drivers/display.
|
||||
|
||||
|
||||
# Link: create ELF output file from object files.
|
||||
snake1.out: snake1.o pio.o system.o timer.o display.o ledmat.o navswitch.o pacer.o tinygl.o
|
||||
snake1.out: snake1.o pio.o system.o timer.o display.o ledmat.o navswitch.o font.o pacer.o tinygl.o
|
||||
$(CC) $(CFLAGS) $^ -o $@ -lm
|
||||
$(SIZE) $@
|
||||
|
||||
|
||||
@@ -38,6 +38,9 @@ system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../dr
|
||||
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
font-test.o: ../../utils/font.c ../../drivers/test/system.h ../../utils/font.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
pacer-test.o: ../../utils/pacer.c ../../drivers/test/system.h ../../drivers/test/timer.h ../../utils/pacer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
@@ -48,14 +51,14 @@ tinygl-test.o: ../../utils/tinygl.c ../../drivers/display.h ../../drivers/test/s
|
||||
|
||||
|
||||
# Link: create executable file from object files.
|
||||
snake1: snake1-test.o display-test.o ledmat-test.o navswitch-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o pacer-test.o tinygl-test.o
|
||||
snake1: snake1-test.o display-test.o ledmat-test.o navswitch-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o font-test.o pacer-test.o tinygl-test.o
|
||||
$(CC) $(CFLAGS) $^ -o $@ -lrt
|
||||
|
||||
|
||||
# Clean: delete derived files.
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-$(DEL) snake1 snake1-test.o display-test.o ledmat-test.o navswitch-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o pacer-test.o tinygl-test.o
|
||||
-$(DEL) snake1 snake1-test.o display-test.o ledmat-test.o navswitch-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o font-test.o pacer-test.o tinygl-test.o
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user