diff options
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} |