summaryrefslogtreecommitdiff
path: root/src/telescience-v0.1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-12 14:51:07 -0700
committerKeith Packard <keithp@keithp.com>2012-04-14 14:04:29 -0700
commit040a6eb119451026e1ec7c3a6a8e76b439c632d5 (patch)
treec334b0f83d8202626c544238b53def46339042b0 /src/telescience-v0.1
parentf952f9c285e2718a433c8c720c9b5d9c369e7036 (diff)
altos: Massive product config cleanup
Support multiple serial ports more cleanly Split out parts of ao.h into separate feature header files Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telescience-v0.1')
-rw-r--r--src/telescience-v0.1/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/telescience-v0.1/Makefile b/src/telescience-v0.1/Makefile
index be99f10d..10e4a2a3 100644
--- a/src/telescience-v0.1/Makefile
+++ b/src/telescience-v0.1/Makefile
@@ -22,7 +22,8 @@ INC = \
ao.h \
ao_arch.h \
ao_usb.h \
- ao_pins.h
+ ao_pins.h \
+ ao_product.h
#
# Common AltOS sources
@@ -96,8 +97,10 @@ load: $(PROG).hex
ao_product.h: ao-make-product.5c ../Version
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
-ao_product.rel: ao_product.c ao_product.h
- $(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<
+ao_product.o: ao_product.c ao_product.h
+
+%.o : %.c $(INC)
+ $(call quiet,CC) -c $(CFLAGS) $<
distclean: clean