I am trying to write a makefile which can do the following:
- compile my files: Main.cpp and Headers.h (Headers.h is called in Main.cpp and contains some header declarations) to create the executable Main.exe
- compiler is g++
- after compiling, runs the executable Main.exe
I did create a makefile after doing some reading on the internet but it doesn't work. Can anyone suggest something working?
- compile my files: Main.cpp and Headers.h (Headers.h is called in Main.cpp and contains some header declarations) to create the executable Main.exe
- compiler is g++
- after compiling, runs the executable Main.exe
I did create a makefile after doing some reading on the internet but it doesn't work. Can anyone suggest something working?