]> git.zerfleddert.de Git - usb-driver/blobdiff - Makefile
fix 64bit and add DEBUG shared object
[usb-driver] / Makefile
index 250e2f671e55f40ac4eeeaddc6d8e773af621edf..4ef6abaddc493bf1a81fda7b43ae5c2a82368458 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
 CFLAGS=-Wall
 
+all: libusb-driver.so libusb-driver-DEBUG.so
+
 libusb-driver.so: usb-driver.c usb-driver.h
-       gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+       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 libusb-driver.so
+       rm -f libusb-driver.so libusb-driver-DEBUG.so
 
-.PHONY: clean
+.PHONY: clean all
Impressum, Datenschutz