summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5ae2d4b67090c8915b486ea2c992644b9d97c2a2 (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 multipart-replace-http-server
.PHONY: all

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

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

.DELETE_ON_ERROR:
.SECONDARY:

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