]> git.zerfleddert.de Git - usb-driver/blobdiff - Makefile
first bits for amontec jtagkey
[usb-driver] / Makefile
index 59bf33cfb07f4dc25948ca6a9f92466a1be851b4..1ce1b06b7aef966bbeb54f08e0c9b940e95a70a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,18 @@
-xilinx.so: xilinx.c xilinx.h
-       gcc $< -o $@ -ldl -shared
+#Add -DFORCE_PC3_IDENT to CFLAGS to force the identification of
+#a Parallel Cable III
+CFLAGS=-Wall -fPIC #-DFORCE_PC3_IDENT
+
+SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so
+
+all: $(SOBJECTS)
+
+libusb-driver.so: usb-driver.c usb-driver.h Makefile
+       gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
+
+libusb-driver-DEBUG.so: usb-driver.c usb-driver.h Makefile
+       gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
 
 clean:
-       rm -f xilinx.so
+       rm -f $(SOBJECTS)
+
+.PHONY: clean all
Impressum, Datenschutz