]> git.zerfleddert.de Git - usb-driver/blob - Makefile
3325a89f5b026de9a160f90d68e72b97fbdd92c0
[usb-driver] / Makefile
1 CFLAGS=-Wall -fPIC
2
3 SOBJECTS=libusb-driver.so libusb-driver-DEBUG.so libusb-driver-trenz.so
4
5 all: $(SOBJECTS)
6
7 libusb-driver.so: usb-driver.c usb-driver.h
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
12
13 libusb-driver-DEBUG.so: usb-driver.c usb-driver.h
14 gcc -DDEBUG $(CFLAGS) $< -o $@ -ldl -lusb -lpthread -shared
15
16 clean:
17 rm -f $(SOBJECTS)
18
19 .PHONY: clean all
Impressum, Datenschutz