summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-18 10:01:29 -0800
committerKeith Packard <keithp@keithp.com>2013-12-18 10:01:29 -0800
commit9c200c3bc742b4dd1a7e28bfce9d5b27e833aae5 (patch)
treee623e349673fc78f2ada6d3b49108f93fcac2731 /src/Makefile
parentfbde0c3e4bdb419d6bd4dbcc96b0e01c59e9fa13 (diff)
altos: Build pdclib locally if necessary
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index bdd3307a..2ba59d94 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,6 +42,10 @@ AVRDIRS=\
SUBDIRS=
+ifeq ($(strip $(HAVE_PDCLIB)),yes)
+PDCLIB=pdclib
+endif
+
ifeq ($(strip $(HAVE_SDCC)),yes)
SUBDIRS+=$(SDCCDIRS)
endif
@@ -92,7 +96,7 @@ uninstall:
all-recursive: all-local
-all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h
+all-local: altitude.h altitude-pa.h ao_kalman.h ao_whiten.h $(PDCLIB)
altitude.h: make-altitude
nickle $< > $@
@@ -108,3 +112,6 @@ ao_whiten.h: make-whiten
clean-local:
rm -f altitude.h ao_kalman.h
+
+pdclib:
+ cd ../pdclib && make && make prefix=`pwd`/opt install