From 802350e051fd43e9d0548a1a538bfbde9cc4e20c Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 4 Jun 2011 01:42:53 -0300 Subject: [PATCH] LDFLAGS go after all objects. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e7d290c..87234fd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC = gcc CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g -LDFLAGS = -lncursesw +LDFLAGS = -lncurses EXECUTABLE = ttysolitaire SRC_DIR = src @@ -30,10 +30,10 @@ TESTS_OBJECTS = ${TESTS_DIR}/frame_test.o \ ${TESTS_DIR}/test_helper_test.o \ ttysolitaire: ${SRC_OBJECTS} - ${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${EXECUTABLE} ${SRC_OBJECTS} + ${CC} ${CFLAGS} ${SRC} -o ${EXECUTABLE} ${SRC_OBJECTS} ${LDFLAGS} 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} clean: