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