aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-04 00:18:36 -0400
committerRob Austein <sra@hactrn.net>2015-07-04 00:18:36 -0400
commitea04b71ff14523ffcfc02eb43cf509e238807bef (patch)
tree186ed194cc925441d249c7a9022efbd5546cfebc /sw/Makefile
Initial version of Novean release engineering superrepository.
Not yet fully tested.
Diffstat (limited to 'sw/Makefile')
-rw-r--r--sw/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/sw/Makefile b/sw/Makefile
new file mode 100644
index 0000000..962d448
--- /dev/null
+++ b/sw/Makefile
@@ -0,0 +1,21 @@
+export CC := arm-linux-gnueabihf-gcc
+export AR := arm-linux-gnueabihf-ar
+export OBJCOPY := arm-linux-gnueabihf-objcopy
+
+# Something is messing up the CFLAGS and LDFLAGS settings to libhal.
+# Using autoconf was probably a mistake, but hack around it for now.
+
+all:
+ cd sw/libtfm; ${MAKE}
+ cd sw/libhal; ./configure CFLAGS='-g3 -Wall -fPIC -std=c99 -I$${TFMDIR}' LDFLAGS='-g3 -L$${TFMDIR} -ltfm'
+ cd sw/libhal; ${MAKE}
+ cd sw/sqlite3; ${MAKE} CROSS_COMPILE=arm-unknown-linux-gnueabi
+ cd sw/pkcs11; ${MAKE}
+
+clean distclean:
+ for d in libtfm libhal sqlite3 pkcs11; do (cd sw/$$d && ${MAKE} $@); done
+
+install: all
+ install -D sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
+ install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
+