mooly
mooly

Reputation: 113

how to write makefile for c++ vs proje

I need to write a makefile for a c++ visual-studio project running on windows. I have only 5 files that I need to compile:

main,  Board.cpp, Board.h, Node.cpp, Node.h

I want to use the "make" command in cmd and compile it all. I don't know how to write proper makefile for that, while searching I've found this Write makefile for .cpp and .hpp c++ but it is not my case.. HELP??

Upvotes: 1

Views: 206

Answers (1)

FamZ
FamZ

Reputation: 481

The simplest would be

all:
    g++ main.cpp Board.cpp Node.cpp

Upvotes: 2

Related Questions