summaryrefslogtreecommitdiff
path: root/Makefile
blob: 39e12901409a54551d3076916702b76319cf151d (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
.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