]> git.zerfleddert.de Git - usb-driver/blobdiff - Makefile
Add hack to force the detection of a parallel cable by Stefan Ziegenbalg.
[usb-driver] / Makefile
index 8456d8da3da006d87a70d8914d97bfded5fa4d3b..3325a89f5b026de9a160f90d68e72b97fbdd92c0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,19 @@
-CFLAGS=-Wall
+CFLAGS=-Wall -fPIC
 
-xilinx.so: xilinx.c xilinx.h
+SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so libusb-driver-trenz.so
+
+all: $(SOBJECTS)
+
+libusb-driver.so: usb-driver.c usb-driver.h
        gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
 
+libusb-driver-trenz.so: usb-driver.c usb-driver.h
+       gcc -DTRENZ $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+
+libusb-driver-DEBUG.so: usb-driver.c usb-driver.h
+       gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+
 clean:
-       rm -f xilinx.so
+       rm -f $(SOBJECTS)
+
+.PHONY: clean all
Impressum, Datenschutz