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 LDLIBS += $(shell pkg-config --libs libusb-1.0)
40 bindir := $(PREFIX)/sbin
51 kinect_upload_fw.o: endian.h
53 kinect_upload_fw: kinect_upload_fw.o
56 install: kinect_upload_fw
57 install -d $(DESTDIR)$(bindir)
58 install -m 755 kinect_upload_fw $(DESTDIR)$(bindir)
61 rm -rf *~ *.o kinect_upload_fw endian endian.h