Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- allDyn: mainDyn cleanobjects
- mainDyn: main.o libmylib
- g++ -o mainDyn main.o -L. -lmylib
- allStat: mainStat cleanobjects
- mainStat: main.o mylib.a
- g++ -o mainStat $+
- mylib.a: hello.o here.o bye.o
- ar rcs mylib.a $^
- main.o: main.cpp
- g++ -DNAME=\"Sasha\" -c -o main.o $+
- hello.o: hello.cpp
- g++ -c -o hello.o $+
- here.o: here.cpp
- g++ -c -o here.o $+
- bye.o: bye.cpp
- g++ -c -o bye.o $+
- libmylib: hello.o here.o bye.o
- g++ -dynamiclib -compatibility_version 1.0 -current_version 5.1.10 -o libmylib.dylib $+
- cleanobjects:
- rm hello.o here.o bye.o main.o
- cleanall:
- 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