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 LIBOBJS=${LIBSRCS:%.c=%.o} CFLAGS=${OPT} CPPFLAGS=${INCLUDES} ${DEFINES} 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 ${PROGS} ${OBJS}