File: Makefile

package info (click to toggle)
getstream 20100616-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 488 kB
  • sloc: ansic: 5,057; sh: 57; makefile: 37
file content (41 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
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
35
36
37
38
39
40
41
CC ?= gcc
CFLAGS=-Wall -I. 

ifdef OPT
CFLAGS+=-O2
else
CFLAGS+=-O0 -g
endif

LDFLAGS=-lpthread

MDEFS := $(shell sh Makefile.defs.sh >Makefile.defs)
include Makefile.defs

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) -o $@ $+ $(LDFLAGS)

getstream: $(OBJ-getstream)
	$(CC) -o $@ $+ $(LDFLAGS) 

clean:
	-rm -f $(OBJ-getstream) $(OBJ-tsdecode)
	-rm -f getstream tsdecode 
	-rm -f core vgcore.pid* core.* gmon.out
	-rm -f Makefile.defs

distclean: clean
	-rm -rf CVS .cvsignore