Advertisement
Guest User

Untitled

a guest
Mar 27th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.67 KB | None | 0 0
  1.  
  2. allDyn: mainDyn cleanobjects
  3.  
  4. mainDyn: main.o libmylib
  5.     g++ -o mainDyn main.o -L. -lmylib
  6.  
  7. allStat: mainStat cleanobjects
  8.  
  9. mainStat: main.o mylib.a
  10.     g++ -o mainStat $+
  11.  
  12. mylib.a: hello.o here.o bye.o
  13.     ar rcs mylib.a $^
  14.  
  15. main.o: main.cpp
  16.     g++ -DNAME=\"Sasha\" -c -o main.o $+
  17.  
  18. hello.o: hello.cpp
  19.     g++ -c -o hello.o $+
  20.  
  21. here.o: here.cpp
  22.     g++ -c -o here.o $+
  23.  
  24. bye.o: bye.cpp
  25.     g++ -c -o bye.o $+
  26.  
  27. libmylib: hello.o here.o bye.o
  28.     g++ -dynamiclib -compatibility_version 1.0 -current_version 5.1.10 -o libmylib.dylib $+
  29.  
  30. cleanobjects:
  31.     rm hello.o here.o bye.o main.o
  32.  
  33. cleanall:
  34.     rm hello.o here.o bye.o main.o libmylib.dylib mylib.a mainDyn mainStat main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement