aboutsummaryrefslogtreecommitdiff
path: root/sw/Makefile
blob: 962d448e79fdbba1724c560419421383a3ba37c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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