CFLAGS=-Wall $(shell pkg-config libusb --cflags) LIBS=$(shell pkg-config libusb --libs) all: daacs-test clean: -rm daacs-test -rm daacs-test.o install: cp 55-daacs.rules /etc/udev/rules.d/ cp daacs-test /usr/bin/ chmod 755 /usr/bin/daacs-test @echo "Restart udev now (e.g., /etc/init.d/udev restart)" uninstall: rm /etc/udev/rules.d/55-daacs.rules rm /usr/bin/daacs-test @echo "Restart udev now (e.g., /etc/init.d/udev restart)" daacs-test: daacs-test.o $(CC) $(CFLAGS) daacs-test.o -o daacs-test $(LIBS) daacs-test.o: daacs-test.c $(CC) $(CFLAGS) daacs-test.c -c -o daacs-test.o