1 CFLAGS ?= -std=c99 -pedantic -pedantic-errors -Wall -Wextra -O2
2 CFLAGS += -fno-common \
9 -Wp,-D_FORTIFY_SOURCE=2 \
12 -Wmissing-declarations \
13 -Wmissing-format-attribute \
15 -Wmissing-prototypes \
17 -Wold-style-definition \
25 -Wunsafe-loop-optimizations \
26 -Wunused-but-set-variable \
29 CFLAGS += $(shell pkg-config --cflags libusb-1.0)
30 LDFLAGS += $(shell pkg-config --libs libusb-1.0)
33 bindir := $(PREFIX)/sbin
35 kinect_upload_fw: kinect_upload_fw.o
37 install: kinect_upload_fw
38 install -d $(DESTDIR)$(bindir)
39 install -m 755 kinect_upload_fw $(DESTDIR)$(bindir)
42 rm -rf *~ *.o kinect_upload_fw