source: roaraudio/roarclients/Makefile @ 1777:e7a9669095f5

Last change on this file since 1777:e7a9669095f5 was 1777:e7a9669095f5, checked in by phi, 15 years ago

use linker command in $L

File size: 2.1 KB
Line 
1TARGETS=roarcat roarcatad roarcat2sock roarcatsendfile roarcatplay roarcatpassfh roarbidir roarctl roarmon roarsockconnect roartypes roarvorbis roarvumeter roarfilt roarsin roar-config polytest roarsocktypes roarshout roarradio roarfctest roarmonhttp pinentrytest zcattest pgptest roarcatvio pipetest
2TOOLS=roarify
3
4include ../Makefile.conf
5
6#DEFINES        = -DDEBUG
7INCLUDE    = -I../include -I./include
8CFLAGS    += -g -Wall -O2 $(DEFINES) $(INCLUDE) $(INCPATH)
9LDFLAGS    = -g -L../lib/ $(LDPATH) -lroar
10LIBS       = -lroar $(lib_wsock32) $(lib_ws2_32)
11DSPLIBS    = -lroardsp -lm $(LIBS)
12SHOUTLIBS  = $(lib_shout) $(LIBS)
13VORBISLIBS = $(lib_vorbisfile) $(lib_vorbis) $(lib_ogg) $(LIBS)
14
15L          = $(CC) $(LDFLAGS) -o $@ $+ $(LIBS)
16
17all: ${TARGETS} $(TOOLS)
18        cp $(cp_v) ${TARGETS} $(TOOLS) ../lib/
19clean:
20        rm -f ${TARGETS} *.o
21new: clean all
22
23roarcat: roarcat.o
24        $L
25roarcatad: roarcatad.o
26        $L
27roarcat2sock: roarcat2sock.o
28        $L
29roarcatsendfile: roarcatsendfile.o
30        $L
31roarcatplay: roarcatplay.o
32        $L
33roarcatpassfh: roarcatpassfh.o
34        $L
35roarcatvio: roarcatvio.o
36        $L
37roarradio: roarradio.o
38        $L
39roarctl: roarctl.o
40        $L
41roarmon: roarmon.o
42        $L
43roarmonhttp: roarmonhttp.o
44        $L
45roarbidir: roarbidir.o
46        $L
47roarfilt: roarfilt.o
48        ${CC} ${LDFLAGS} -o roarfilt roarfilt.o $(DSPLIBS)
49roarsin: roarsin.o
50        ${CC} ${LDFLAGS} -o roarsin roarsin.o $(DSPLIBS)
51roarvumeter: roarvumeter.o
52        ${CC} ${LDFLAGS} -o roarvumeter roarvumeter.o $(DSPLIBS)
53roarsockconnect: roarsockconnect.o
54        $L
55roartypes: roartypes.o
56        $L
57roarsocktypes: roarsocktypes.o
58        $L
59roar-config: roar-config.o
60        $L
61roarvorbis: roarvorbis.o
62        ${CC} ${LDFLAGS} -o roarvorbis roarvorbis.o $(VORBISLIBS)
63roarshout: roarshout.o
64        ${CC} ${LDFLAGS} -o roarshout roarshout.o $(SHOUTLIBS)
65polytest: polytest.o
66        ${CC} ${LDFLAGS} -o polytest polytest.o $(DSPLIBS)
67pinentrytest: pinentrytest.o
68        $L
69zcattest: zcattest.o
70        $L
71pgptest: pgptest.o
72        $L
73pipetest: pipetest.o
74        $L
75roarfctest: roarfctest.o
76        ${CC} ${LDFLAGS} -o roarfctest roarfctest.o $(DSPLIBS)
77
78roarify.sht:
79roarify: roarify.sht
80        sed 's#%%%PREFIX_COMP%%%#$(PREFIX_COMP)#g' < roarify.sht > roarify
81        chmod +rx roarify
Note: See TracBrowser for help on using the repository browser.