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 \
36 CFLAGS += -Wunsafe-loop-optimizations
39 CFLAGS += $(shell pkg-config --cflags libusb-1.0)
40 LDLIBS += $(shell pkg-config --libs libusb-1.0)
43 bindir := $(PREFIX)/sbin
54 kinect_upload_fw.o: endian.h
56 kinect_upload_fw: kinect_upload_fw.o
59 install: kinect_upload_fw
60 install -d $(DESTDIR)$(bindir)
61 install -m 755 kinect_upload_fw $(DESTDIR)$(bindir)
64 rm -rf *~ *.o kinect_upload_fw endian endian.h