summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt20
-rw-r--r--src/Makefile6
2 files changed, 24 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..9253d56
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,20 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+
+##### cardpincheck (executable)
+
+tde_add_executable( cardpincheck
+
+ SOURCES
+ cardpincheck.c
+ LINK
+ ${SSL_LIBRARIES}
+ ${GNUTLS_LIBRARIES}
+ ${LIBPKCS11-HELPER_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/Makefile b/src/Makefile
index f0dac07..70d8383 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,10 +1,12 @@
+LDFLAGS=-ldl -lpthread -lgnutls -lcrypto -lpkcs11-helper
+
all: cardpincheck.o cardpincheck
cardpincheck.o: cardpincheck.c
- gcc cardpincheck.c -c
+ $(CC) cardpincheck.c -c
cardpincheck: cardpincheck.o
- gcc cardpincheck.o -o cardpincheck -ldl -lpthread -lgnutls -lcrypto -lpkcs11-helper
+ $(CC) cardpincheck.o -o cardpincheck $(LDFLAGS)
clean:
rm -f cardpincheck.o cardpincheck