Add the regular objects as a dependency for the tests.

* Also execute the 'test' rule silently
This commit is contained in:
Murilo Pereira 2011-02-06 23:26:04 -02:00
parent 64a278ca99
commit 1b1481b0a4

View File

@ -35,9 +35,9 @@ TEST_OBJECTS = ${TEST_DIR}/frame_test.o \
ttysolitaire: ${LIB_OBJECTS} ttysolitaire: ${LIB_OBJECTS}
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${LIB_OBJECTS} ${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${LIB_OBJECTS}
test: ${TEST_OBJECTS} test: ${LIB_OBJECTS} ${TEST_OBJECTS}
${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS} @${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS} ${LIB_OBJECTS} 2> /dev/null
${TEST_EXECUTABLE} @${TEST_EXECUTABLE}
clean: clean:
rm -rf {${LIB_DIR},${TEST_DIR}}/*.o ${EXECUTABLE} ${TEST_EXECUTABLE} rm -rf {${LIB_DIR},${TEST_DIR}}/*.o ${EXECUTABLE} ${TEST_EXECUTABLE}