Advertisement
jackaustinpastebin

Untitled

Oct 13th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. 5. [4] Given a folder with (exactly) the following files:
  2. prog1.cc prog2.cc prog3.cc Makefile
  3.  
  4. where Makefile has the following contents:
  5. OBJ= prog1.o prog3.o
  6. OPTS= -g -c -Wall -Werror
  7. prog: $(OBJ)
  8. g++ -o prog $(OBJ)
  9. prog1.o: prog1.cc prog3.cc
  10. g++ $(OPTS) prog1.cc
  11. prog2.o: prog3.cc
  12. g++ $(OPTS) teststack.cc
  13. prog3.o:
  14. g++ $(OPTS) prog3.cc
  15.  
  16. Assuming that all the .cc files compile and link correctly and you type make on the command line,
  17. what will then be the contents of the folder? (List the files)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement