Makefile 3.37 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
hark committed
11
all : c-player c-player-0.10 c-player-debug snowControl 
hark's avatar
hark committed
12

hark's avatar
hark committed
13
14
#rot13: rot13.c
#	gcc -DTESTING -DGTK -g rot13.c -o rot13 `pkg-config --cflags --libs libevent gstreamer-interfaces-0.10 gstreamer-pbutils-0.10 gtk+-2.0 gstreamer-0.10` $(CFLAGS)
hark's avatar
hark committed
15
16


hark's avatar
hark committed
17
18
#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
19
20
21



hark's avatar
hark committed
22
23
#vartest: vartest.c
#	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
24

hark's avatar
bkp    
hark committed
25
26
27
#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
28

hark's avatar
hark committed
29
30
31
32
33

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
hark's avatar
hark committed
34
	gcc -DTT -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
35

hark's avatar
hark committed
36
37
c-player-np : c-player.c snowbin.c teebin.c wraps.c common.h
	gcc -DFP -DGTK -DGST1 -g c-player.c wraps.c snowbin.c teebin.c -o c-player-np `pkg-config --cflags --libs gtk+-2.0 gstreamer-1.0 gstreamer-pbutils-1.0 gstreamer-video-1.0` $(CFLAGS)
hark's avatar
hark committed
38

hark's avatar
hark committed
39
40
41
42
43
c-player : c-player.c snowbin.c playlist.c teebin.c wraps.c common.h playlist.h teebin.h
	gcc -DSNOWBIN -DFP -DPL -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 snowbin.c teebin.c wraps.c common.h
	gcc -DGST1 -g c-player.c wraps.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)
hark's avatar
hark committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57



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) 
58
59
60

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)  
yids's avatar
yids committed
61
62
63

midicontrol:	midicontrol.c
	gcc -g midicontrol.c -o midicontrol `pkg-config --cflags --libs alsa` $(CFLAGS)