Makefile 2.8 KB
Newer Older
hark's avatar
hark committed
1
2
3
4
5
6
7
8
9
10
#
# http://wiki.gentoo.org/wiki/GCC_optimization
# https://securityblog.redhat.com/2014/03/26/fortify-and-you/
#


CFLAGS= -O0 -march=native -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-conversion -Wpedantic -Wformat -Wformat-security -fstack-protector -D_FORTIFY_SOURCE=2 -std=c99  -D_GNU_SOURCE
#-std=c99
# -Werror -Wconversion -Wsign-conversion

hark's avatar
bkp    
hark committed
11
all : c-player c-player-0.10 c-player-debug vartest snowControl s2s s2s-cli bigscreen
hark's avatar
hark committed
12
13
14
15
16
17

tcpclient: tcpclient.c
	gcc -DTESTING -DGTK -g tcpclient.c -o tcpclient `pkg-config --cflags --libs  gstreamer-interfaces-0.10 gstreamer-pbutils-0.10 gtk+-2.0 gstreamer-0.10` $(CFLAGS)



hark's avatar
hark committed
18
vartest: vartest.c
hark's avatar
hark committed
19
	gcc -DTESTING -DGTK -g vartest.c snowbin.c wraps.c -o vartest `pkg-config --cflags --libs  gstreamer-interfaces-0.10 gstreamer-pbutils-0.10 gtk+-2.0 gstreamer-0.10` $(CFLAGS)
hark's avatar
hark committed
20

hark's avatar
bkp    
hark committed
21
22
23
#switchs: switchs.c
#	gcc -DTESTING -DGTK -g switchs.c -o switchs `pkg-config --cflags --libs  gstreamer-interfaces-0.10 gstreamer-pbutils-0.10 gtk+-2.0 gstreamer-0.10` $(CFLAGS)

hark's avatar
hark committed
24

hark's avatar
hark committed
25
26
27
28
29
30
31

c-player-0.10 : c-player.c
	gcc -DTESTING -DGTK -g c-player.c wraps.c playlist.c snowbin.c teebin.c -o c-player-0.10 `pkg-config --cflags --libs  gstreamer-interfaces-0.10 gstreamer-pbutils-0.10 gtk+-2.0 gstreamer-0.10` $(CFLAGS)

c-player-debug : c-player.c
	gcc -D TT -DTESTING -DGTK -DGST1 -g c-player.c wraps.c playlist.c snowbin.c teebin.c -o c-player-debug `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS)

hark's avatar
hark committed
32
c-player : c-player.c snowbin.c playlist.c teebin.c wraps.c
hark's avatar
hark committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	gcc -DGTK -DGST1 -g c-player.c wraps.c playlist.c snowbin.c teebin.c -o c-player `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS)

c-player-cli : c-player.c
	gcc -DGST1 -g c-player.c wraps.c playlist.c snowbin.c teebin.c -o c-player-cli `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS)



snowControl : snowControl.c 
	gcc snowControl.c -o snowControl `pkg-config --cflags --libs gtk+-2.0`

s2s:	s2s.c
	gcc -g -DGST1 s2s.c wraps.c teebin.c snowbin.c -o s2s `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS) 

s2s-cli :	s2s-cli.c
	gcc -g -DGST1 -DCLI s2s-cli.c snowbin.c fortunesrc.c gphotosrc.c rtpiobin.c dvgrabsrc.c wraps.c -o s2s-cli `pkg-config --cflags --libs libgphoto2 gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0  gstreamer-video-1.0 gstreamer-rtsp-server-1.0`-lreadline $(CFLAGS)

bigscreen:	bigscreen.c
	gcc -g bigscreen.c wraps.c -o bigscreen `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS) 
51
52
53

tcp2rtsp:	tcp2rtsp.c
	gcc -g tcp2rtsp.c -o tcp2rtsp  `pkg-config --cflags --libs  gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0 gstreamer-rtsp-server-1.0` $(CFLAGS)