summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3a54db5659188ae7327a33788776302484f44133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2016 Luke Shumaker

CFLAGS += -g -std=c99 -Wall -Werror -Wextra -pedantic
CPPFLAGS += -std=c99 -Wall -Werror -Wextra -pedantic
CPPFLAGS += -D_GNU_SOURCE

all: freenect-server freenect-server--kinect freenect-server--http
.PHONY: all

freenect-server--kinect: util.o -lfreenect -lusb-1.0
freenect-server--http: util.o mpjpeg.o -lpthread

clean:
	rm -f -- *.o .*.mk freenect-server freenect-server--kinect freenect-server--http
.PHONY: clean

.DELETE_ON_ERROR:
.SECONDARY:

CPPFLAGS += -MD -MF ${@:%.o=.%.mk} -MP
-include .*.mk