Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CXX = g++ # compiler
- CXXFLAGS = -g -Wall -MMD # compiler flags
- OBJECTS = q3ifwhile.o # object files forming executable
- DEPENDS = ${OBJECTS:.o=.d} # substitute ".o" with ".d"
- EXEC = q3ifwhile # executable name
- ${EXEC} : ${OBJECTS} # link step
- ${CXX} $^ -o $@
- ${OBJECTS} : Makefile # OPTIONAL : changes to this file => recompile
- clean : # remove files that can be regenerated
- rm -f ${DEPENDS} ${OBJECTS} ${EXEC}
- -include ${DEPENDS} # include *.d files containing program dependences
Add Comment
Please, Sign In to add comment