I'm using cmd to program, and I want to make a batch file that automates the build process. I want it to compile the files using the
g++ -c ./scr/Nome.cpp -o ./obj/Nome.o -std=c++1z
This should be done for all the .cpp
files that have been edited since the last compilation (I thought of doing an input, so Nome
would be the text that the user typed, the program would then only continue if the user entered with an empty line), and finally execute
cd obj
g++ Arq1.o Arq2.o -o ../a.exe
Putting all the files in the obj folder instead of Arq1.o Arq2.o
How can I do this?