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