source: roaraudio/tests/Makefile @ 5870:4ea810a09919

Last change on this file since 5870:4ea810a09919 was 5870:4ea810a09919, checked in by phi, 11 years ago

Also set PATH so tests works on win32 as well (Closes: #341) (pr1)

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