X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/blobdiff_plain/cdc711dc0a482c5cd0bc6dee34c930403c75cee1..ac9e3f59d8073109e43c84738e2776b95d90a403:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 784b1ac..4ef6aba 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,14 @@ -xilinx.so: xilinx.c - gcc $< -o $@ -ldl -shared +CFLAGS=-Wall + +all: libusb-driver.so libusb-driver-DEBUG.so + +libusb-driver.so: usb-driver.c usb-driver.h + gcc -fPIC $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared + +libusb-driver-DEBUG.so: usb-driver.c usb-driver.h + gcc -fPIC -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared clean: - rm -f xilinx.so + rm -f libusb-driver.so libusb-driver-DEBUG.so + +.PHONY: clean all