]>
Commit | Line | Data |
---|---|---|
cdc9c5bf | 1 | CFLAGS=-Wall -fPIC |
2c2119eb | 2 | |
cdc9c5bf | 3 | SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so libusb-driver-trenz.so |
4 | ||
5 | all: $(SOBJECTS) | |
7216ce6c | 6 | |
2c0c1255 | 7 | libusb-driver.so: usb-driver.c usb-driver.h |
cdc9c5bf | 8 | gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared |
9 | ||
10 | libusb-driver-trenz.so: usb-driver.c usb-driver.h | |
11 | gcc -DTRENZ $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared | |
7216ce6c | 12 | |
13 | libusb-driver-DEBUG.so: usb-driver.c usb-driver.h | |
cdc9c5bf | 14 | gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared |
cdc711dc | 15 | |
16 | clean: | |
cdc9c5bf | 17 | rm -f $(SOBJECTS) |
2c0c1255 | 18 | |
7216ce6c | 19 | .PHONY: clean all |