05e1bfcd |
1 | #Add -DFORCE_PC3_IDENT to CFLAGS to force the identification of |
2 | #a Parallel Cable III |
3 | CFLAGS=-Wall -fPIC #-DFORCE_PC3_IDENT |
2c2119eb |
4 | |
05e1bfcd |
5 | SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so |
cdc9c5bf |
6 | |
7 | all: $(SOBJECTS) |
7216ce6c |
8 | |
05e1bfcd |
9 | libusb-driver.so: usb-driver.c usb-driver.h Makefile |
cdc9c5bf |
10 | gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared |
11 | |
05e1bfcd |
12 | libusb-driver-DEBUG.so: usb-driver.c usb-driver.h Makefile |
cdc9c5bf |
13 | gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared |
cdc711dc |
14 | |
15 | clean: |
cdc9c5bf |
16 | rm -f $(SOBJECTS) |
2c0c1255 |
17 | |
7216ce6c |
18 | .PHONY: clean all |