summaryrefslogtreecommitdiff
path: root/src/telegps-v1.0/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-21 14:38:00 -0700
committerKeith Packard <keithp@keithp.com>2014-05-30 17:32:53 -0700
commita339a91d64d011add2dfeccd5402af57d932b41a (patch)
tree976e1aa0f7af37b9453672b1f83bbf91588f9dc7 /src/telegps-v1.0/Makefile
parent177d3c0333fd4218f01e05c78cbc5f186c8e32c0 (diff)
altos: Hacks to get telegps v1.0 running
Mine is busted, and there are a lot of cc115l kludges in here Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telegps-v1.0/Makefile')
-rw-r--r--src/telegps-v1.0/Makefile90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/telegps-v1.0/Makefile b/src/telegps-v1.0/Makefile
new file mode 100644
index 00000000..507ff650
--- /dev/null
+++ b/src/telegps-v1.0/Makefile
@@ -0,0 +1,90 @@
+#
+# AltOS build
+#
+#
+
+include ../lpc/Makefile.defs
+
+INC = \
+ ao.h \
+ ao_arch.h \
+ ao_arch_funcs.h \
+ ao_pins.h \
+ ao_product.h \
+ ao_task.h \
+ ao_whiten.h \
+ ao_cc115l.h \
+ ao_fec.h \
+ lpc.h \
+ Makefile
+
+
+ALTOS_SRC = \
+ ao_interrupt.c \
+ ao_boot_chain.c \
+ ao_product.c \
+ ao_romconfig.c \
+ ao_cmd.c \
+ ao_config.c \
+ ao_task.c \
+ ao_stdio.c \
+ ao_panic.c \
+ ao_timer_lpc.c \
+ ao_data.c \
+ ao_convert_volt.c \
+ ao_mutex.c \
+ ao_freq.c \
+ ao_spi_lpc.c \
+ ao_usb_lpc.c \
+ ao_exti_lpc.c \
+ ao_serial_lpc.c \
+ ao_gps_ublox.c \
+ ao_gps_show.c \
+ ao_cc115l.c \
+ ao_fec_tx.c \
+ ao_aprs.c \
+ ao_adc_lpc.c \
+ ao_tracker.c \
+ ao_telemetry.c \
+ ao_storage.c \
+ ao_m25.c \
+ ao_log.c \
+ ao_log_mega.c \
+ ao_gps_report_mega.c \
+ ao_distance.c \
+ ao_sqrt.c \
+ $(SAMPLE_PROFILE)
+
+PRODUCT=TeleGPS-v1.0
+PRODUCT_DEF=-DTELEGPS
+IDPRODUCT=0x0025
+
+CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) $(PROFILE_DEF) -Os -g
+
+PROGNAME=telegps-v1.0
+PROG=$(PROGNAME)-$(VERSION).elf
+
+SRC=$(ALTOS_SRC) ao_telegps.c
+OBJ=$(SRC:.c=.o)
+
+all: $(PROG)
+
+LDFLAGS=-L../lpc -Wl,-Taltos.ld
+
+$(PROG): Makefile $(OBJ) altos.ld
+ $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
+
+$(OBJ): $(INC)
+
+ao_product.h: ao-make-product.5c ../Version
+ $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
+
+distclean: clean
+
+clean:
+ rm -f *.o ao_serial_lpc.h $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
+ rm -f ao_product.h
+
+install:
+
+uninstall: