source: roaraudio/tests/Makefile @ 5478:894c5c2b8c42

Last change on this file since 5478:894c5c2b8c42 was 5478:894c5c2b8c42, checked in by phi, 12 years ago
  • Corrected usage of -Wextra (pr0).
  • Updated build options for RAT (pr0).
File size: 1.1 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
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
30
31sandbox-install: sandbox
32sandbox:
33        mkdir sandbox
34        sh -c 'cd ..; DESTDIR=`pwd`/tests/sandbox $(MAKE) install'
35sandbox-clean:
36        rm -rf sandbox/
Note: See TracBrowser for help on using the repository browser.