diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2013-09-08 13:26:01 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-09-08 13:28:12 +0200 |
commit | 4491b373acf03a761447bab0f8343e2ccefef10b (patch) | |
tree | 33e233606d673585af4462b0edb11d84e45960d8 /Makefile | |
parent | b8e389973b037417a2b61cdf3793062f9e377bc5 (diff) | |
download | pianobar-4491b373acf03a761447bab0f8343e2ccefef10b.tar.gz pianobar-4491b373acf03a761447bab0f8343e2ccefef10b.tar.bz2 pianobar-4491b373acf03a761447bab0f8343e2ccefef10b.zip |
waitress: Move testcases to separate file
Now the test-enabled waitress.o does not conflict with pianobar’s
waitress.o any more, thus running `make test` without `make clean` works
fine.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -68,6 +68,9 @@ LIBWAITRESS_OBJ:=${LIBWAITRESS_SRC:.c=.o} LIBWAITRESS_RELOBJ:=${LIBWAITRESS_SRC:.c=.lo} LIBWAITRESS_INCLUDE:=${LIBWAITRESS_DIR} +LIBWAITRESS_TEST_SRC=${LIBWAITRESS_DIR}/waitress-test.c +LIBWAITRESS_TEST_OBJ:=${LIBWAITRESS_TEST_SRC:.c=.o} + ifeq (${DISABLE_FAAD}, 1) LIBFAAD_CFLAGS:= LIBFAAD_LDFLAGS:= @@ -189,9 +192,8 @@ debug: CFLAGS=-pedantic -ggdb -Wall -Wmissing-declarations -Wshadow -Wcast-qual # -Wstack-protector: we don't use stack protector # -Woverlength-strings: over-portability-ish -waitress-test: CFLAGS+= -DTEST -waitress-test: ${LIBWAITRESS_OBJ} - ${CC} ${LDFLAGS} ${LIBWAITRESS_OBJ} ${LIBGNUTLS_LDFLAGS} -o waitress-test +waitress-test: ${LIBWAITRESS_TEST_OBJ} + ${CC} ${LDFLAGS} ${LIBWAITRESS_TEST_OBJ} ${LIBGNUTLS_LDFLAGS} -o waitress-test test: waitress-test ./waitress-test |