diff --git a/Makefile b/Makefile index 029410bb21d8ede4d32c26cb64beaebfbea9aa66..967ab37f1b16f9ba3a6f7ac1fb163832d685b6f7 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ OBJECTS = $(SOURCES:%.cpp=%.o) # TODO # If main() is in a file named project*.cpp, use the following line -PROJECTFILE = $(or $(wildcard project*.cpp), nomain.cpp) +PROJECTFILE = $(or $(wildcard project*.cpp), $(EXECUTABLE).cpp) # TODO # If main() is in another file delete line above, edit and uncomment below #PROJECTFILE = mymainfile.cpp