]> 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 4ef6abaddc493bf1a81fda7b43ae5c2a82368458..3325a89f5b026de9a160f90d68e72b97fbdd92c0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,19 @@
-CFLAGS=-Wall
+CFLAGS=-Wall -fPIC
 
-all: libusb-driver.so libusb-driver-DEBUG.so
+SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so libusb-driver-trenz.so
+
+all: $(SOBJECTS)
 
 libusb-driver.so: usb-driver.c usb-driver.h
-       gcc -fPIC $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+       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 -fPIC -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+       gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
 
 clean:
-       rm -f libusb-driver.so libusb-driver-DEBUG.so
+       rm -f $(SOBJECTS)
 
 .PHONY: clean all
Impressum, Datenschutz