I am distributing my cpp files along with a makefile. Now the makefile is located in the same directory as the cpp file.
What is the variable ( if any) in makefile that allows me to retrieve the current directory with the makefile is located? In this way I can use that variable to specify my cpp path for compilation.
My makefile is as follows:
all:
g++ ($makeFileDir)/main.cpp ($makeFileDir)/hello.cpp ($makeFileDir)/factorial.cpp -o ($makeFileDir)/hello.exe
Edit: I am running my makefiles on Windows