-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 788 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 788 Bytes
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
31
32
33
34
CC=gcc
CFLAGS=-Wall -I. -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
ifdef OPT
CFLAGS+=-O2
else
CFLAGS+=-O0 -g
endif
LDFLAGS=-levent -lglib-2.0 -lpthread
OBJ-getstream=getstream.o fe.o crc32.o \
libhttp.o libconf.o config.o util.o logging.o \
stream.o input.o \
output.o output_http.o output_udp.o output_pipe.o output_rtp.o \
dmx.o dvr.o \
pat.o pmt.o psi.o \
simplebuffer.o sap.o \
socket.o
OBJ-tsdecode=tsdecode.o psi.o crc32.o
all: getstream tsdecode
tsdecode: $(OBJ-tsdecode)
$(CC) $(LDFLAGS) -o $@ $+
getstream: $(OBJ-getstream)
$(CC) $(LDFLAGS) -o $@ $+
clean:
-rm -f $(OBJ-getstream) $(OBJ-tsdecode)
-rm -f getstream tsdecode
-rm -f core vgcore.pid* core.* gmon.out
distclean: clean
-rm -rf CVS .cvsignore