M
M
Marat Ganiev2020-03-26 20:50:07
GNU Make
Marat Ganiev, 2020-03-26 20:50:07

How to use makefile?

I came across such a utility as make file in Bruce Eckel's book, but I did not understand anything. How to use it? Need to create another file and write commands there?
- Good.
What extension should the file be? .h/.cpp?
What does this line mean:
g++ work pointer.cpp Source1.cpp Source2.cpp
work pointer, Source1, Source2 file names in the program.
Where should I enter this line? In the main file? in the make file? Someone explain clearly what it is and where.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-03-26
@firedragon

Basics here
https://habr.com/ru/post/155201/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question