diff options
Diffstat (limited to 'host/Makefile')
-rw-r--r-- | host/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/host/Makefile b/host/Makefile index 317bc59..2013f89 100644 --- a/host/Makefile +++ b/host/Makefile @@ -2,23 +2,22 @@ INCLUDES=$(shell pkg-config --cflags libusb-1.0) LIBS=-Bstatic $(shell pkg-config --libs libusb-1.0) -lpthread -Bdynamic -ludev LDFLAGS=-s -PROGS=main set get -LIBSRCS=hexdump.c +PROG=cryptopad +SRCS=hexdump.c cryptopad.c -LIBOBJS=${LIBSRCS:%.c=%.o} +OBJS=${SRCS:%.c=%.o} CFLAGS=${OPT} CPPFLAGS=${INCLUDES} ${DEFINES} -default:${PROGS} +default:${PROG} -${PROGS}: %:%.o ${LIBOBJS} - ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ $@.o ${OBJS} ${LIBS} - -#${PROG}:${OBJS} -# ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} +${PROG}:${OBJS} + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} +install: ${PROG} + install -c -m 755 ${PROG} /sbin/${PROG} clean: - /bin/rm -f *~ *.d ${PROGS} ${OBJS} + /bin/rm -f *~ *.d ${PROG} ${OBJS} |