summaryrefslogtreecommitdiffstats
path: root/host/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'host/Makefile')
-rw-r--r--host/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/Makefile b/host/Makefile
new file mode 100644
index 0000000..667d094
--- /dev/null
+++ b/host/Makefile
@@ -0,0 +1,17 @@
+INCLUDES=$(shell pkg-config --cflags libusb-1.0)
+LIBS=$(shell pkg-config --libs libusb-1.0)
+
+PROG=cryptopad
+CSRCS=main.c hexdump.c
+
+OBJS=${CSRCS:%.c=%.o}
+
+CFLAGS=${OPT}
+CPPFLAGS=${INCLUDES} ${DEFINES}
+
+${PROG}:${OBJS}
+ ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
+
+clean:
+ /bin/rm -f *~ *.d ${PROG} ${OBJS}
+