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
44 kinect_upload_fw: endian.h kinect_upload_fw.o
47 install: kinect_upload_fw
48 install -d $(DESTDIR)$(bindir)
49 install -m 755 kinect_upload_fw $(DESTDIR)$(bindir)
52 rm -rf *~ *.o kinect_upload_fw endian endian.h