]> 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 59bf33cfb07f4dc25948ca6a9f92466a1be851b4..3325a89f5b026de9a160f90d68e72b97fbdd92c0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,19 @@
-xilinx.so: xilinx.c xilinx.h
-       gcc $< -o $@ -ldl -shared
+CFLAGS=-Wall -fPIC
+
+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