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