aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-11 15:22:02 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-11 15:22:02 +0200
commit928ba58c880a3842abdff3c446bfe956c8dc48ae (patch)
tree8376d9297aecdcfdcae5695f3ff21627cf502263 /Makefile
Genesis commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7473a93
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC = cc
+CFLAGS = -g
+LDLIBS = -luriparser -lssl -lcrypto
+
+all: totp
+totp: main.o b32.o
+ ${CC} ${LDLIBS} -o $@ main.o b32.o
+
+main.o: main.c b32.h
+ ${CC} ${CFLAGS} -c main.c
+
+b32.o: b32.c b32.h
+ ${CC} ${CFLAGS} -c b32.c
+
+clean:
+ rm -f totp *.o