projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Build pdclib locally if necessary
[fw/altos]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index bdd3307a1a9df579dbf3144e685f53be62dd629f..2ba59d9454914459f5cc573191b9c8f5a4446d84 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-42,6
+42,10
@@
AVRDIRS=\
SUBDIRS=
SUBDIRS=
+ifeq ($(strip $(HAVE_PDCLIB)),yes)
+PDCLIB=pdclib
+endif
+
ifeq ($(strip $(HAVE_SDCC)),yes)
SUBDIRS+=$(SDCCDIRS)
endif
ifeq ($(strip $(HAVE_SDCC)),yes)
SUBDIRS+=$(SDCCDIRS)
endif
@@
-92,7
+96,7
@@
uninstall:
all-recursive: all-local
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 $< > $@
altitude.h: make-altitude
nickle $< > $@
@@
-108,3
+112,6
@@
ao_whiten.h: make-whiten
clean-local:
rm -f altitude.h ao_kalman.h
clean-local:
rm -f altitude.h ao_kalman.h
+
+pdclib:
+ cd ../pdclib && make && make prefix=`pwd`/opt install