forked from klaxa/ffserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: ffserver
LAV_FLAGS = $(shell pkg-config --libs --cflags libavformat libavcodec libavutil)
LUA_FLAGS = $(shell pkg-config --libs --cflags lua5.3)
MHD_FLAGS = $(shell pkg-config --libs --cflags libmicrohttpd)
# CFLAGS=-fsanitize=address -fsanitize=undefined
CFLAGS=
# LAV_FLAGS = -L/usr/local/lib -lavcodec -lavformat -lavutil
ffserver: segment.o publisher.o fileserver.o lavfhttpd.o lmhttpd.o configreader.o ffserver.c
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) $(LUA_FLAGS) $(MHD_FLAGS) -lpthread -o ffserver segment.o publisher.o fileserver.o lavfhttpd.o lmhttpd.o configreader.o ffserver.c
segment.o: segment.c segment.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) -lpthread -c segment.c
publisher.o: publisher.c publisher.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) -lpthread -c publisher.c
fileserver.o: fileserver.c fileserver.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) -lpthread -c fileserver.c
lavfhttpd.o: lavfhttpd.c httpd.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) -lpthread -c lavfhttpd.c
lmhttpd.o: lmhttpd.c httpd.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) $(MHD_FLAGS) -lpthread -c lmhttpd.c
configreader.o: configreader.c configreader.h httpd.h
cc -g -Wall $(CFLAGS) $(LAV_FLAGS) $(LUA_FLAGS) -c configreader.c
clean:
rm -f *.o ffserver