summaryrefslogtreecommitdiff
path: root/Makefile
blob: 58da358da77f04d04e8cd0b24a62d66a0a473378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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