From 116d06876582e681006a7d6f94a3b79a4c4d9599 Mon Sep 17 00:00:00 2001 From: Peisong Xiao Date: Fri, 5 Jul 2024 22:15:54 -0400 Subject: [PATCH] adapted Makefile to ncurses --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f29aa40..986928e 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ ########## Variables ########## CXX = g++ # compiler -CXXFLAGS = -std=c++20 -g -Wall -MMD -lncurses -O0 # compiler flags +CXXFLAGS = -std=c++20 -g -Wall -MMD -O0 # compiler flags MAKEFILE_NAME = ${firstword ${MAKEFILE_LIST}} # makefile name SOURCES = $(wildcard src/*.cc) # source files (*.cc) @@ -21,7 +21,7 @@ EXEC = bin/cc3k # executable name .PHONY : clean # not file names ${EXEC} : ${OBJECTS} # link step - ${CXX} ${CXXFLAGS} $^ -o $@ # additional object files before $^ + ${CXX} ${CXXFLAGS} $^ -o $@ -lncurses # additional object files before $^ ${OBJECTS} : ${MAKEFILE_NAME} # OPTIONAL : changes to this file => recompile