summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-03-11 13:57:50 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-03-11 13:57:50 -0500
commit28887d5145e41c9e073c7c6e6990c4e218e05628 (patch)
treefaf919c15c7e71ac859e505f4fc6ca967863e057 /Makefile
stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..39e1290
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFLAGS += -g -std=c99 -Wall -Werror -Wextra -pedantic
+CPPFLAGS += -std=c99 -Wall -Werror -Wextra -pedantic
+CPPFLAGS += -D_GNU_SOURCE
+
+all: freenect-server
+.PHONY: all
+
+freenect-server: main.o thread_kinect.o thread_mpjpeg.o thread_http.o wg.o -lfreenect -lusb-1.0 -lpthread
+ $(CC) $(LDFLAGS) $^ -o $@
+
+clean:
+ rm -f -- *.o .*.mk freenect-server
+.PHONY: clean
+
+.DELETE_ON_ERROR:
+.SECONDARY:
+
+CPPFLAGS += -MD -MF ${@:%.o=.%.mk} -MP
+-include .*.mk