1 CFLAGS ?= -std=c99 -pedantic -Wall -Wextra -O2
3 # Don't make pedantic checks errors,
4 # as vanilla libusb-1.0.8 can't live with that
5 #CFLAGS += -pedantic-errors
8 #CFLAGS += -Wunused-but-set-variable
10 CFLAGS += -fno-common \
17 -Wp,-D_FORTIFY_SOURCE=2 \
20 -Wmissing-declarations \
21 -Wmissing-format-attribute \
23 -Wmissing-prototypes \
25 -Wold-style-definition \
33 -Wunsafe-loop-optimizations \
36 CFLAGS += $(shell pkg-config --cflags libusb-1.0)
37 LDFLAGS += $(shell pkg-config --libs libusb-1.0)
40 bindir := $(PREFIX)/sbin
51 kinect_upload_fw: endian.h kinect_upload_fw.o
54 install: kinect_upload_fw
55 install -d $(DESTDIR)$(bindir)
56 install -m 755 kinect_upload_fw $(DESTDIR)$(bindir)
59 rm -rf *~ *.o kinect_upload_fw endian endian.h