source: roaraudio/roarclients/Makefile @ 1776:5325b5f84a8d

Last change on this file since 1776:5325b5f84a8d was 1776:5325b5f84a8d, checked in by phi, 15 years ago

added linker command, need to check if this works for non gnu makes, too.

File size: 2.0 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
24roarcatad: roarcatad.o
25roarcat2sock: roarcat2sock.o
26roarcatsendfile: roarcatsendfile.o
27roarcatplay: roarcatplay.o
28roarcatpassfh: roarcatpassfh.o
29roarcatvio: roarcatvio.o
30roarradio: roarradio.o
31roarctl: roarctl.o
32roarmon: roarmon.o
33roarmonhttp: roarmonhttp.o
34roarbidir: roarbidir.o
35roarfilt: roarfilt.o
36        ${CC} ${LDFLAGS} -o roarfilt roarfilt.o $(DSPLIBS)
37roarsin: roarsin.o
38        ${CC} ${LDFLAGS} -o roarsin roarsin.o $(DSPLIBS)
39roarvumeter: roarvumeter.o
40        ${CC} ${LDFLAGS} -o roarvumeter roarvumeter.o $(DSPLIBS)
41roarsockconnect: roarsockconnect.o
42roartypes: roartypes.o
43roarsocktypes: roarsocktypes.o
44roar-config: roar-config.o
45roarvorbis: roarvorbis.o
46        ${CC} ${LDFLAGS} -o roarvorbis roarvorbis.o $(VORBISLIBS)
47roarshout: roarshout.o
48        ${CC} ${LDFLAGS} -o roarshout roarshout.o $(SHOUTLIBS)
49polytest: polytest.o
50        ${CC} ${LDFLAGS} -o polytest polytest.o $(DSPLIBS)
51pinentrytest: pinentrytest.o
52zcattest: zcattest.o
53pgptest: pgptest.o
54pipetest: pipetest.o
55roarfctest: roarfctest.o
56        ${CC} ${LDFLAGS} -o roarfctest roarfctest.o $(DSPLIBS)
57
58roarify.sht:
59roarify: roarify.sht
60        sed 's#%%%PREFIX_COMP%%%#$(PREFIX_COMP)#g' < roarify.sht > roarify
61        chmod +rx roarify
Note: See TracBrowser for help on using the repository browser.