source: roaraudio/roarclients/Makefile

tip
Last change on this file was 5851:735e3e6b9d59, checked in by phi, 10 years ago

make more use out of $(DEBUG_g) and $(Wall)

File size: 3.4 KB
Line 
1TARGETS_DEVEL=roartypes roar-config
2TARGETS_EXAMPLE=roarvorbis roarsin
3TARGETS_IO=roarcat roarcatplay roarcatvio roarbidir roarmon roarmonhttp roarradio
4TARGETS_CTL=roarctl roarlight roarinterconnect roarclientpass
5TARGETS_DSP=roarfilt roarvumeter roardtmf
6TARGETS_MISC=roarsockconnect roarphone roarshout
7TARGETS_M=
8TARGETS_VIO=roarvio
9TARGETS_PLUGINS=roarpluginrunner roarpluginapplication
10
11#TARGETS_TESTS=zcattest pgptest pipetest polytest
12#TARGETS_OLD=roarcatpassfh roarsocktypes
13
14TARGETS=$(TARGETS_IO) $(TARGETS_CTL) $(TARGETS_DSP) $(TARGETS_MISC) $(TARGETS_DEVEL) $(TARGETS_EXAMPLE) $(TARGETS_M) $(TARGETS_VIO) $(TARGETS_PLUGINS)
15
16# tools we maybe want to kick of the package
17TARGETS += $(TARGETS_TESTS) $(TARGETS_OLD)
18
19
20TOOLS=roarify
21
22include ../Makefile.conf
23include ../Makefile.inc
24
25#DEFINES        = -DDEBUG
26INCLUDE    = -I../include -I./include
27CFLAGS    += $(DEBUG_g) $(Wall) $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH)
28LDFLAGS   += $(DEBUG_g) $(Wall) -L../lib/ $(LDPATH)
29LIBS       = $(LIBROAR)
30SHOUTLIBS  = $(lib_shout) $(pthread) $(LIBS)
31VORBISLIBS = $(lib_vorbisfile) $(lib_vorbis) $(lib_ogg) $(LIBS)
32
33LNL        = $(CC) $(LDFLAGS) -o $@ $+
34L          = $(LNL) $(LIBS)
35
36all: ${TARGETS} $(TOOLS)
37        cp $(cp_v) ${TARGETS} $(TOOLS) ../lib/
38clean:
39        rm -f ${TARGETS} ${TOOLS} *.o
40new: clean all
41
42roarcat: roarcat.o
43        $L
44roarcatad: roarcatad.o
45        $L
46roarcat2sock: roarcat2sock.o
47        $L
48roarcatsendfile: roarcatsendfile.o
49        $L
50roarcatplay: roarcatplay.o
51        $L
52roarcatpassfh: roarcatpassfh.o
53        $L
54roarcatvio: roarcatvio.o
55        $L
56roarradio: roarradio.o
57        $L
58roarctl: roarctl.o
59        $L $(LIBROARDSP) $(lib_m)
60roarmon: roarmon.o
61        $L
62roarmonhttp: roarmonhttp.o
63        $L
64roarinterconnect: roarinterconnect.o
65        $L $(lib_esd) $(LIBROAREIO) $(lib_rsound)
66roarclientpass: roarclientpass.o
67        $L
68roarbidir: roarbidir.o
69        $L
70roarphone: roarphone.o
71        ${CC} ${LDFLAGS} -o roarphone roarphone.o $(LIBROARDSP) $(LIBROAREIO) $(LIBS)
72roarfilt: roarfilt.o
73        ${CC} ${LDFLAGS} -o roarfilt roarfilt.o $(LIBROARDSP) $(LIBS) $(lib_m)
74roarsin: roarsin.o
75        ${CC} ${LDFLAGS} -o roarsin roarsin.o $(LIBROARDSP) $(LIBS) $(lib_m)
76roarvumeter: roarvumeter.o
77        ${CC} ${LDFLAGS} -o roarvumeter roarvumeter.o $(LIBS) $(LIBROARDSP) $(lib_m)
78roardtmf: roardtmf.o
79        ${CC} ${LDFLAGS} -o roardtmf roardtmf.o $(LIBS) $(LIBROARDSP)
80roarsockconnect: roarsockconnect.o
81        $L
82roarvio: roarvio.o
83        $L
84roarpluginrunner: roarpluginrunner.o
85        $L $(lib_dl)
86roartypes: roartypes.o
87        $L
88roarsocktypes: roarsocktypes.o
89        $L
90roar-config: roar-config.o
91        $(LNL) ../lib/libroar.a $(LIBROAR_NS)
92roarvorbis: roarvorbis.o
93        ${CC} ${LDFLAGS} -o roarvorbis roarvorbis.o $(VORBISLIBS) $(LIBS)
94roarshout: roarshout.o
95        ${CC} ${LDFLAGS} -o roarshout roarshout.o $(SHOUTLIBS) $(LIBS)
96polytest: polytest.o
97        ${CC} ${LDFLAGS} -o polytest polytest.o $(LIBROARDSP) $(LIBS)
98roarlight: roarlight.o
99        ${CC} ${LDFLAGS} -o roarlight roarlight.o $(LIBROARLIGHT) $(LIBS)
100pinentrytest: pinentrytest.o
101        $L
102zcattest: zcattest.o
103        $L
104pgptest: pgptest.o
105        $L
106pipetest: pipetest.o
107        $L
108roarfctest: roarfctest.o
109        ${CC} ${LDFLAGS} -o roarfctest roarfctest.o $(LIBROARDSP) $(LIBS) $(lib_m)
110
111roarify.sht:
112roarify: roarify.sht
113        sed 's#%%%PREFIX_COMP_LIBS%%%#$(PREFIX_COMP_LIBS)#g; s#%%%PREFIX_COMP_BINS%%%#$(PREFIX_COMP_BINS)#g; s#%%%PREFIX_LIB%%%#$(PREFIX_LIB)#g; s#%%%VERSION%%%#$(COMMON_SOVERSION)#g;' < roarify.sht > roarify
114        chmod +rx roarify
115roarpluginapplication.sht:
116roarpluginapplication: roarpluginapplication.sht
117        cp roarpluginapplication.sht roarpluginapplication
118        chmod +rx roarpluginapplication
Note: See TracBrowser for help on using the repository browser.