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