source: roaraudio/roarclients/Makefile @ 4223:32d9b0b9ac4b

Last change on this file since 4223:32d9b0b9ac4b was 4223:32d9b0b9ac4b, checked in by phi, 11 years ago

corrected version

File size: 3.0 KB
Line 
1TARGETS_TESTS=pinentrytest zcattest pgptest pipetest polytest roarfctest
2TARGETS_DEVEL=roartypes roarsocktypes roar-config
3TARGETS_EXAMPLE=roarcatad roarcat2sock roarcatsendfile roarcatpassfh roarvorbis roarsin
4TARGETS_IO=roarcat roarcatplay roarcatvio roarbidir roarmon roarmonhttp roarradio
5TARGETS_CTL=roarctl roarlight roarinterconnect roarclientpass
6TARGETS_DSP=roarfilt roarvumeter
7TARGETS_MISC=roarsockconnect roarphone roarshout
8TARGETS_M=roardtmf
9
10TARGETS=$(TARGETS_IO) $(TARGETS_CTL) $(TARGETS_DSP) $(TARGETS_MISC) $(TARGETS_DEVEL) $(TARGETS_EXAMPLE) $(TARGETS_TESTS) $(TARGETS_M)
11TOOLS=roarify
12
13include ../Makefile.conf
14include ../Makefile.inc
15
16#DEFINES        = -DDEBUG
17DEFINES    = -DCOMMON_VERSION=\"$(COMMON_VERSION)\" -DPREFIX=\"$(PREFIX)\" -DPREFIX_LIB=\"$(PREFIX_LIB)\" -DPREFIX_INC=\"$(PREFIX_INC)\"
18INCLUDE    = -I../include -I./include
19CFLAGS    += -g -Wall $(Wextra) -O2 $(DEFINES) $(INCLUDE) $(INCPATH)
20LDFLAGS    = -g -L../lib/ $(LDPATH)
21LIBS       = $(LIBROAR)
22SHOUTLIBS  = $(lib_shout) $(LIBS)
23VORBISLIBS = $(lib_vorbisfile) $(lib_vorbis) $(lib_ogg) $(LIBS)
24
25LNL        = $(CC) $(LDFLAGS) -o $@ $+
26L          = $(LNL) $(LIBS)
27
28all: ${TARGETS} $(TOOLS)
29        cp $(cp_v) ${TARGETS} $(TOOLS) ../lib/
30clean:
31        rm -f ${TARGETS} ${TOOLS} *.o
32new: clean all
33
34roarcat: roarcat.o
35        $L
36roarcatad: roarcatad.o
37        $L
38roarcat2sock: roarcat2sock.o
39        $L
40roarcatsendfile: roarcatsendfile.o
41        $L
42roarcatplay: roarcatplay.o
43        $L
44roarcatpassfh: roarcatpassfh.o
45        $L
46roarcatvio: roarcatvio.o
47        $L
48roarradio: roarradio.o
49        $L
50roarctl: roarctl.o
51        $L $(LIBROARDSP) $(lib_m)
52roarmon: roarmon.o
53        $L
54roarmonhttp: roarmonhttp.o
55        $L
56roarinterconnect: roarinterconnect.o
57        $L $(lib_esd) $(LIBROAREIO) $(lib_rsound)
58roarclientpass: roarclientpass.o
59        $L
60roarbidir: roarbidir.o
61        $L
62roarphone: roarphone.o
63        ${CC} ${LDFLAGS} -o roarphone roarphone.o $(LIBROARDSP) $(LIBROAREIO)
64roarfilt: roarfilt.o
65        ${CC} ${LDFLAGS} -o roarfilt roarfilt.o $(LIBROARDSP)
66roarsin: roarsin.o
67        ${CC} ${LDFLAGS} -o roarsin roarsin.o $(LIBROARDSP)
68roarvumeter: roarvumeter.o
69        ${CC} ${LDFLAGS} -o roarvumeter roarvumeter.o $(LIBROAR) $(LIBROARDSP) $(lib_m)
70roardtmf: roardtmf.o
71        ${CC} ${LDFLAGS} -o roardtmf roardtmf.o $(LIBROAR) $(lib_m)
72roarsockconnect: roarsockconnect.o
73        $L
74roartypes: roartypes.o
75        $L
76roarsocktypes: roarsocktypes.o
77        $L
78roar-config: roar-config.o
79        $(LNL)
80roarvorbis: roarvorbis.o
81        ${CC} ${LDFLAGS} -o roarvorbis roarvorbis.o $(VORBISLIBS)
82roarshout: roarshout.o
83        ${CC} ${LDFLAGS} -o roarshout roarshout.o $(SHOUTLIBS)
84polytest: polytest.o
85        ${CC} ${LDFLAGS} -o polytest polytest.o $(LIBROARDSP)
86roarlight: roarlight.o
87        ${CC} ${LDFLAGS} -o roarlight roarlight.o $(LIBROARLIGHT)
88pinentrytest: pinentrytest.o
89        $L
90zcattest: zcattest.o
91        $L
92pgptest: pgptest.o
93        $L
94pipetest: pipetest.o
95        $L
96roarfctest: roarfctest.o
97        ${CC} ${LDFLAGS} -o roarfctest roarfctest.o $(LIBROARDSP)
98
99roarify.sht:
100roarify: roarify.sht
101        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
102        chmod +rx roarify
Note: See TracBrowser for help on using the repository browser.