|
|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
# Definitions.
|
|
|
|
|
CC = avr-gcc
|
|
|
|
|
CFLAGS = -mmcu=atmega32u2 -Os -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../fonts -I../../drivers/avr -I../../utils
|
|
|
|
|
CFLAGS = -mmcu=atmega32u2 -Os -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../drivers/avr -I../../utils
|
|
|
|
|
OBJCOPY = avr-objcopy
|
|
|
|
|
SIZE = avr-size
|
|
|
|
|
DEL = rm
|
|
|
|
|
@ -16,7 +16,7 @@ all: scribble1.out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compile: create object files from C source files.
|
|
|
|
|
scribble1.o: scribble1.c ../../drivers/avr/system.h ../../drivers/button.h ../../drivers/display.h ../../drivers/led.h ../../drivers/navswitch.h ../../fonts/font5x7_1.h ../../utils/font.h ../../utils/pacer.h ../../utils/tinygl.h
|
|
|
|
|
scribble1.o: scribble1.c ../../drivers/avr/system.h ../../drivers/button.h ../../drivers/display.h ../../drivers/led.h ../../drivers/navswitch.h ../../utils/font.h ../../utils/pacer.h ../../utils/tinygl.h
|
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
|
|
pio.o: ../../drivers/avr/pio.c ../../drivers/avr/pio.h ../../drivers/avr/system.h
|
|
|
|
|
@ -54,7 +54,8 @@ tinygl.o: ../../utils/tinygl.c ../../drivers/avr/system.h ../../drivers/display.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Link: create ELF output file from object files.
|
|
|
|
|
|
|
|
|
|
# Link: create output file (executable) from object files.
|
|
|
|
|
scribble1.out: scribble1.o pio.o system.o timer.o button.o display.o led.o ledmat.o navswitch.o font.o pacer.o tinygl.o
|
|
|
|
|
$(CC) $(CFLAGS) $^ -o $@ -lm
|
|
|
|
|
$(SIZE) $@
|
|
|
|
|
|