source: roaraudio/tests/Makefile @ 5647:3707f49de5ab

Last change on this file since 5647:3707f49de5ab was 5647:3707f49de5ab, checked in by phi, 12 years ago

Added RAT test 'buffer_set_len'.

File size: 1.3 KB
Line 
1include ../Makefile.conf
2
3CLIENTS=roar-config roarbidir roarcat roarcatplay roarcatvio roarctl roarfilt roarmon roarradio roarshout roarsin roarsockconnect roartypes roarvorbis roarvumeter roarinterconnect roarlight roarphone
4
5INCLUDE = -I../include
6CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(fPIC)
7LDFLAGS+= -g -Wall $(Wextra) $(OPTI_O) -L../lib $(LDPATH)
8
9all:
10        echo Warning: There is nothing to build
11clean: sandbox-clean
12        rm -f *.o rat-*
13
14new: clean all
15
16#test: sandbox-install test-all sandbox-clean
17test: sandbox-clean sandbox-install test-all sandbox-clean
18
19test-all: test-runnable test-roard test-rat test-buffer_set_len
20
21test-runnable:
22        PREFIX_BIN=$(PREFIX_BIN) PREFIX_LIB=$(PREFIX_LIB) EXEC_HELPER=$(EXEC_HELPER) ./test-runnable.sh "$(CLIENTS)"
23test-roard:
24        PREFIX_BIN=$(PREFIX_BIN) PREFIX_LIB=$(PREFIX_LIB) EXEC_HELPER=$(EXEC_HELPER) ./test-roard.sh
25
26test-rat: rat.o test-rat.o
27        $(CC) $(LDFLAGS) -o rat-rat rat.o test-rat.o
28        $(EXEC_HELPER) ./rat-rat
29
30test-buffer_set_len: rat.o test-buffer_set_len.o
31        $(CC) $(LDFLAGS) -o rat-buffer_set_len rat.o test-buffer_set_len.o -lroar
32        LD_LIBRARY_PATH="`pwd`/sandbox/$(PREFIX_LIB)/" $(EXEC_HELPER) ./rat-buffer_set_len
33
34sandbox-install: sandbox
35sandbox:
36        mkdir sandbox
37        sh -c 'cd ..; DESTDIR=`pwd`/tests/sandbox $(MAKE) install'
38sandbox-clean:
39        rm -rf sandbox/
Note: See TracBrowser for help on using the repository browser.