X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/blobdiff_plain/cdc711dc0a482c5cd0bc6dee34c930403c75cee1..1f62c14e4f95d8a27377b558676d78ccb9d522c3:/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