finished the bulk of game
This commit is contained in:
@ -11,17 +11,17 @@ CXX = g++ # compiler
|
||||
CXXFLAGS = -std=c++20 -g -Wall -MMD -O0 # compiler flags
|
||||
MAKEFILE_NAME = ${firstword ${MAKEFILE_LIST}} # makefile name
|
||||
|
||||
SOURCES = $(wildcard *.cc) # source files (*.cc)
|
||||
SOURCES = $(wildcard *.cc) $(wildcard */*.cc) # source files (*.cc)
|
||||
OBJECTS = ${SOURCES:.cc=.o} # object files forming executable
|
||||
DEPENDS = ${OBJECTS:.o=.d} # substitute ".o" with ".d"
|
||||
EXEC = ../bin/cc3k # executable name
|
||||
EXEC = cc3k # executable name
|
||||
|
||||
########## Targets ##########
|
||||
|
||||
.PHONY : clean # not file names
|
||||
|
||||
${EXEC} : ${OBJECTS} # link step
|
||||
${CXX} ${CXXFLAGS} $^ -o $@ -lncurses # 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