blob: f1fb0a806710f8fce9a21e0e67864eee7a577454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#LIBTOOL := libtool --mode=link --tag=CC
LIBTOOL :=
DEBUG_CFLAGS := -O0 -ggdb -Wall -fsanitize=address -fno-omit-frame-pointer -DENCODE_DEBUG -DPLAY_DEBUG -DHEADERS_DEBUG
#CFLAGS := -O0 -ggdb -Wall -fno-omit-frame-pointer -DENCODE_DEBUG
CFLAGS := -O2 -Wall
PKGCONFIG := pkg-config
LIBS := $(shell $(PKGCONFIG) --libs --cflags glib-2.0 libsoup-2.4 gstreamer-pbutils-1.0 gstreamer-video-1.0 json-glib-1.0) -lrt
SERVER_NAME := stp-server
SRC_OBJS := $(addprefix src/,debug/local-play.o lib.o encode.o)
VPATH := debug
%.o: %.c %.h
$(CC) -c $< $(CFLAGS) $(LIBS) -o $@
$(SERVER_NAME): src/main.c $(SRC_OBJS)
$(LIBTOOL) $(CC) $^ $(CFLAGS) $(LIBS) -o $@
all: sst-server
clean:
rm -f $(SRC_OBJS) $(SERVER_NAME) src/*.webm
|