Generic makefile?

Is there a generic makefile that I can use to create a simple C ++ project? on the windows? I modified the working wii file for win32 but was unable to build correctly (difference in make? Make app and makefile seems to be found). I hacked around a bit and made a copy of mingw32-make as make.

-edit- exporting PATH seems to be the reason I got my old error (make: make Command not found) now using my new makefile (one file instead of 2), I get

"do" make [1]: nothing needs to be done for `/c/nightly/test/test.exe '.

this is my current makefile http://pastie.org/318548

I am using mingw. I have a setup from this site along with another with codeblocks. the binary 'make' is copied by mingw32-make.exe where I have interrupted the prefix. doing make -h I get "This program is made for i686-pc-msys", so it looks correct

0


source to share


2 answers


Your make file looks great, for the most part.

Make sure gcc and g ++ are installed correctly.

Also the Clean target uses: rm -rf



rm is the unix (linux and others) command to remove. To get rm on windows, I recommend using Cygwin.

Which C ++ compiler are you using?

+1


source


As indicated in the error message, the problem does not come from your Makefile.



"make" itself cannot be found in your path.

0


source







All Articles