diff options
Diffstat (limited to 'ao-bringup-avr/Makefile')
| -rw-r--r-- | ao-bringup-avr/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ao-bringup-avr/Makefile b/ao-bringup-avr/Makefile index a110b50a..53da4394 100644 --- a/ao-bringup-avr/Makefile +++ b/ao-bringup-avr/Makefile @@ -8,6 +8,8 @@ CC=avr-gcc OBJCOPY=avr-objcopy CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues +OBJS = ao-blink.o ao-switch.o ao-uart.o ao-bringup.o + all: ao-blink.hex ao-switch.hex ao-uart.hex ao-blink.hex: ao-blink @@ -31,12 +33,14 @@ ao-uart.hex: ao-uart avr-size ao-uart $(OBJCOPY) -R .eeprom -O ihex ao-uart $@ -ao-uart: ao-uart.o - $(CC) $(CFLAGS) -o $@ ao-uart.o +ao-uart: ao-uart.o ao-bringup.o + $(CC) $(CFLAGS) -o $@ ao-uart.o ao-bringup.o ao-uart.s: ao-uart.c $(CC) $(CFLAGS) -S -o $@ ao-uart.c +$(OBJS): ao-bringup.h + load-blink: ao-blink.hex $(LOADCMD) $(LOADARG)ao-blink.hex |
