LDFLAGS go after all objects.
This commit is contained in:
parent
3e46dab2ee
commit
802350e051
6
Makefile
6
Makefile
@ -1,6 +1,6 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
|
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
|
||||||
LDFLAGS = -lncursesw
|
LDFLAGS = -lncurses
|
||||||
|
|
||||||
EXECUTABLE = ttysolitaire
|
EXECUTABLE = ttysolitaire
|
||||||
SRC_DIR = src
|
SRC_DIR = src
|
||||||
@ -30,10 +30,10 @@ TESTS_OBJECTS = ${TESTS_DIR}/frame_test.o \
|
|||||||
${TESTS_DIR}/test_helper_test.o \
|
${TESTS_DIR}/test_helper_test.o \
|
||||||
|
|
||||||
ttysolitaire: ${SRC_OBJECTS}
|
ttysolitaire: ${SRC_OBJECTS}
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${SRC_OBJECTS}
|
${CC} ${CFLAGS} ${SRC} -o ${EXECUTABLE} ${SRC_OBJECTS} ${LDFLAGS}
|
||||||
|
|
||||||
test: ${SRC_OBJECTS} ${TESTS_OBJECTS}
|
test: ${SRC_OBJECTS} ${TESTS_OBJECTS}
|
||||||
@${CC} ${CFLAGS} ${LDFLAGS} ${TESTS_SRC} -o ${TESTS_EXECUTABLE} ${TESTS_OBJECTS} ${SRC_OBJECTS}
|
@${CC} ${CFLAGS} ${TESTS_SRC} -o ${TESTS_EXECUTABLE} ${TESTS_OBJECTS} ${SRC_OBJECTS} ${LDFLAGS}
|
||||||
@./${TESTS_EXECUTABLE}
|
@./${TESTS_EXECUTABLE}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user