adapted Makefile to ncurses
This commit is contained in:
4
Makefile
4
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
|
||||
|
||||
|
Reference in New Issue
Block a user