From f3f25a1cec7d2a034aa544569cfd23bea1a996c5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 12 Apr 2009 23:53:55 -0700 Subject: Add beep/led support. Support our P2_0 connected buzzer, and formalize LED output support. Signed-off-by: Keith Packard --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 543f8e37..6bd552e6 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ INC = \ SRC = \ ao_adc.c \ + ao_beep.c \ + ao_led.c \ ao_task.c \ ao_timer.c \ ao_panic.c \ @@ -35,7 +37,7 @@ REL=$(SRC:.c=.rel) RST=$(SRC:.c=.rst) SYM=$(SRC:.c=.sym) -PROGS=$(PROG)-flash.ihx $(PROG)-ram.ihx +PROGS=$(PROG).ihx PCDB=$(PROGS:.ihx=.cdb) PLNK=$(PROGS:.ihx=.lnk) PMAP=$(PROGS:.ihx=.map) @@ -47,12 +49,9 @@ PAOM=$(PROGS:.ihx=) all: $(PROGS) -$(PROG)-ram.ihx: $(REL) Makefile - $(CC) $(LDFLAGS_RAM) $(CFLAGS) -o $(PROG)-ram.ihx $(REL) - $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG)-flash.ihx $(REL) - sh check-stack ao.h $(PROG)-flash.mem - -$(PROG)-flash.ihx: $(PROG)-ram.ihx +$(PROG).ihx: $(REL) Makefile + $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG).ihx $(REL) + sh check-stack ao.h $(PROG).mem clean: rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM) -- cgit v1.2.3