]> git.zerfleddert.de Git - usb-driver/blob - Makefile
some links, libusb-dev
[usb-driver] / Makefile
1 #Add -DFORCE_PC3_IDENT to CFLAGS to force the identification of
2 #a Parallel Cable III
3 CFLAGS=-Wall -fPIC #-DFORCE_PC3_IDENT
4
5 SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so
6
7 all: $(SOBJECTS)
8
9 libusb-driver.so: usb-driver.c usb-driver.h Makefile
10 gcc $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
11
12 libusb-driver-DEBUG.so: usb-driver.c usb-driver.h Makefile
13 gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
14
15 clean:
16 rm -f $(SOBJECTS)
17
18 .PHONY: clean all
Impressum, Datenschutz