summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-12 23:53:55 -0700
committerKeith Packard <keithp@keithp.com>2009-04-12 23:53:55 -0700
commitf3f25a1cec7d2a034aa544569cfd23bea1a996c5 (patch)
tree4b39836787404bdd331f9192c5256fc8031f67cf /Makefile
parente14f07bfdb8824fc7ed6df1129c66ee39ffd6d54 (diff)
Add beep/led support.
Support our P2_0 connected buzzer, and formalize LED output support. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
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)