aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index da612e7..aa95233 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -36,10 +36,11 @@ ifndef ENABLE_THREADS
endif
LIBHAL_DIR = ../libhal
-LIBTFM_DIR = ../libtfm
-SQLITE3_DIR = ../sqlite3
+LIBTFM_DIR = ../thirdparty/libtfm
+SQLITE3_DIR = ../thirdparty/sqlite3
-CFLAGS += -g3 -fPIC -Wall -std=c99 -I${LIBHAL_DIR} -I${SQLITE3_DIR}
+CFLAGS := -g3 -fPIC -Wall -std=c99 -I${LIBHAL_DIR} -I${SQLITE3_DIR}
+SOFLAGS := -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack
LIBS := ${LIBHAL_DIR}/libhal.a ${LIBTFM_DIR}/libtfm.a ${SQLITE3_DIR}/libsqlite3.a
ifeq "${ENABLE_THREADS}" "yes"
@@ -70,7 +71,7 @@ pkcs11.o: pkcs11.c sql_common.h schema.h attributes.h
${CC} ${CFLAGS} -c $<
pkcs11.so: pkcs11.o ${LIBS}
- ${CC} ${CFLAGS} -shared -o $@ -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack -g $^
+ ${CC} ${CFLAGS} -shared -o $@ ${SOFLAGS} $^
libpkcs11.so: pkcs11.so
${OBJCOPY} -w -G 'C_*' $< $@
@@ -79,7 +80,7 @@ p11util.o: p11util.c sql_common.h schema.h
${CC} ${CFLAGS} -c $<
p11util: p11util.o ${LIBS}
- ${CC} ${CFLAGS} -o $@ -g $^
+ ${CC} ${CFLAGS} -o $@ $^
tags: TAGS