Add the regular objects as a dependency for the tests.
* Also execute the 'test' rule silently
This commit is contained in:
parent
64a278ca99
commit
1b1481b0a4
6
Makefile
6
Makefile
@ -35,9 +35,9 @@ TEST_OBJECTS = ${TEST_DIR}/frame_test.o \
|
||||
ttysolitaire: ${LIB_OBJECTS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${LIB_OBJECTS}
|
||||
|
||||
test: ${TEST_OBJECTS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS}
|
||||
${TEST_EXECUTABLE}
|
||||
test: ${LIB_OBJECTS} ${TEST_OBJECTS}
|
||||
@${CC} ${CFLAGS} ${LDFLAGS} ${TEST_SRC} -o ${TEST_EXECUTABLE} ${TEST_OBJECTS} ${LIB_OBJECTS} 2> /dev/null
|
||||
@${TEST_EXECUTABLE}
|
||||
|
||||
clean:
|
||||
rm -rf {${LIB_DIR},${TEST_DIR}}/*.o ${EXECUTABLE} ${TEST_EXECUTABLE}
|
||||
|
Loading…
Reference in New Issue
Block a user