another debugger ques cant find in ebook

Assume that a program contains five separate files – main.cpp, list.cpp, list.h, functions.cpp, functions.h. Assume also that main.cpp includes list.h and functions.h. Which of the following could be written as the first and second line in a makefile for this program?
(a) main.o: main.cpp list.h functions.h
g++ -o main.cpp
(b) main.o: main.cpp list.h functions.h
g++ -o prog main.cpp list.cpp functions.cpp
(c) prog: main.o list.o functions.o
g++ -o prog main.o list.o functions.o
(d) prog: main.o list.h functions.h
g++ -o prog main.o list.o functions.o
(e) prog: main.o list.o functions.o
g++ -o prog main.cpp list.cpp functions.cpp

dont know what is the answer. swt
help?
You should probably just go look up how to write a makefile. It's pretty simple once you understand that.
err. just objective for my exercise. coding not yet teach from tutor. mind help?
Topic archived. No new replies allowed.