diff options
author | James McKenzie <git@madingley.org> | 2014-12-15 12:05:41 +0000 |
---|---|---|
committer | James McKenzie <git@madingley.org> | 2014-12-15 12:05:41 +0000 |
commit | 373bb32332b117236720af0ff971769fc5930ba6 (patch) | |
tree | c1a1e58218a9ce1fed33b7e5330069f856c209cc /userland/Makefile | |
download | valve-373bb32332b117236720af0ff971769fc5930ba6.tar.gz valve-373bb32332b117236720af0ff971769fc5930ba6.tar.bz2 valve-373bb32332b117236720af0ff971769fc5930ba6.zip |
Diffstat (limited to 'userland/Makefile')
-rw-r--r-- | userland/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/userland/Makefile b/userland/Makefile new file mode 100644 index 0000000..d45447c --- /dev/null +++ b/userland/Makefile @@ -0,0 +1,20 @@ + +PROGS=radiator program_radiator +CSRCS=libradiator.c cp210x.c + +USBINC=$(shell pkg-config --cflags libusb-1.0) +USBLIB=$(shell pkg-config --libs libusb-1.0) + +CFLAGS=${USBINC} -g -Wall -Wno-unused +LIBS=${USBLIB} -g + +OBJS=${CSRCS:%.c=%.o} + +default:${PROGS} + +${PROGS}: %:%.o ${OBJS} + ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} $@.o ${LIBS} + + +clean: + /bin/rm -f core ${OBJS} ${PROGS} ${PROGS:%=%.o} |