summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-06-05 14:10:02 +0200
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2019-07-06 13:05:59 +0000
commit693098407fe303737f506cb5ef67e7f8209018d1 (patch)
tree213b38fb8d06c150b62456afe63e5649976235eb /src
parent522570f0911dd6e79f3378b353552d5ea97b765f (diff)
downloadsmartcardauth-693098407fe303737f506cb5ef67e7f8209018d1.tar.gz
smartcardauth-693098407fe303737f506cb5ef67e7f8209018d1.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
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