--- pianobar-2011.07.09/Makefile.orig +++ pianobar-2011.07.09/Makefile @@ -55,10 +55,12 @@ LIBWAITRESS_DIR=src/libwaitress LIBWAITRESS_SRC=${LIBWAITRESS_DIR}/waitress.c +LIBWAITRESS_TSRC=${LIBWAITRESS_DIR}/waitress-test.c LIBWAITRESS_HDR=\ ${LIBWAITRESS_DIR}/config.h \ ${LIBWAITRESS_DIR}/waitress.h LIBWAITRESS_OBJ=${LIBWAITRESS_SRC:.c=.o} +LIBWAITRESS_TOBJ=${LIBWAITRESS_TSRC:.c=.o} LIBWAITRESS_RELOBJ=${LIBWAITRESS_SRC:.c=.lo} LIBWAITRESS_INCLUDE=${LIBWAITRESS_DIR} @@ -130,8 +132,8 @@ debug: CFLAGS=-Wall -pedantic -ggdb waitress-test: CFLAGS+= -DTEST -waitress-test: ${LIBWAITRESS_OBJ} - ${CC} ${LDFLAGS} ${LIBWAITRESS_OBJ} -o waitress-test +waitress-test: ${LIBWAITRESS_TOBJ} + ${CC} ${LDFLAGS} ${LIBWAITRESS_TOBJ} -o waitress-test test: waitress-test ./waitress-test