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