CFLAGS=--model-small --debug --opt-code-speed
LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size 0x8000 \
- --xram-loc 0xf000 --xram-size 0xf00 --iram-size 0xff
+ --xram-loc 0xf000 --xram-size 0xda2 --iram-size 0xff
INC = \
ao.h \
#
TM_DRIVER_SRC = \
ao_adc.c \
- ao_ee.c
+ ao_ee.c \
+ ao_ignite.c
#
# Tasks run on TeleMetrum
RST=$(SRC:.c=.rst)
SYM=$(SRC:.c=.sym)
-PROGS=telemetrum.ihx tidongle.ihx teleterra.ihx teledongle.ihx ao_flight_test
+PROGS=telemetrum.ihx tidongle.ihx teleterra.ihx teledongle.ihx
+
+HOST_PROGS=ao_flight_test
PCDB=$(PROGS:.ihx=.cdb)
PLNK=$(PROGS:.ihx=.lnk)
%.rel : %.c $(INC)
$(CC) -c $(CFLAGS) -o$*.rel $*.c
-all: $(PROGS)
+all: $(PROGS) $(HOST_PROGS)
telemetrum.ihx: $(TM_REL) Makefile
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TM_REL)
rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
install:
+
+ao_flight_test: ao_flight.c ao_flight_test.c
+ cc -g -o $@ ao_flight_test.c