summaryrefslogtreecommitdiffstats
path: root/host/Makefile
blob: 2013f896489921be4a6b7a96369ff7d1b04ace19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INCLUDES=$(shell pkg-config --cflags libusb-1.0)
LIBS=-Bstatic $(shell pkg-config --libs libusb-1.0) -lpthread -Bdynamic -ludev

LDFLAGS=-s
PROG=cryptopad
SRCS=hexdump.c cryptopad.c

OBJS=${SRCS:%.c=%.o}

CFLAGS=${OPT} 
CPPFLAGS=${INCLUDES} ${DEFINES}

default:${PROG} 


${PROG}:${OBJS}
	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

install: ${PROG}
	install -c -m 755 ${PROG} /sbin/${PROG}
clean:
	/bin/rm -f *~ *.d ${PROG} ${OBJS}