summaryrefslogtreecommitdiffstats
path: root/host/Makefile
diff options
context:
space:
mode:
authorroot <root@new-selene.erebei.org>2015-12-01 02:10:53 +0000
committerroot <root@new-selene.erebei.org>2015-12-01 02:10:53 +0000
commitb55240eb43a92c552003b8b324a385e041f84f12 (patch)
treeab932136ecfaa42e1e417e0253aebcc5b5f178aa /host/Makefile
parent061430973e82995368d27ff9081391f9475da3c7 (diff)
downloadcandlestick-b55240eb43a92c552003b8b324a385e041f84f12.tar.gz
candlestick-b55240eb43a92c552003b8b324a385e041f84f12.tar.bz2
candlestick-b55240eb43a92c552003b8b324a385e041f84f12.zip
fish
Diffstat (limited to 'host/Makefile')
-rw-r--r--host/Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/host/Makefile b/host/Makefile
index 667d094..317bc59 100644
--- a/host/Makefile
+++ b/host/Makefile
@@ -1,17 +1,24 @@
INCLUDES=$(shell pkg-config --cflags libusb-1.0)
-LIBS=$(shell pkg-config --libs libusb-1.0)
+LIBS=-Bstatic $(shell pkg-config --libs libusb-1.0) -lpthread -Bdynamic -ludev
-PROG=cryptopad
-CSRCS=main.c hexdump.c
+LDFLAGS=-s
+PROGS=main set get
+LIBSRCS=hexdump.c
-OBJS=${CSRCS:%.c=%.o}
+LIBOBJS=${LIBSRCS:%.c=%.o}
CFLAGS=${OPT}
CPPFLAGS=${INCLUDES} ${DEFINES}
-${PROG}:${OBJS}
- ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
+default:${PROGS}
+
+
+${PROGS}: %:%.o ${LIBOBJS}
+ ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${OBJS} ${LIBS}
+
+#${PROG}:${OBJS}
+# ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
clean:
- /bin/rm -f *~ *.d ${PROG} ${OBJS}
+ /bin/rm -f *~ *.d ${PROGS} ${OBJS}