diff options
author | auriamg <auria.mg@gmail.com> | 2015-06-09 00:58:50 +0300 |
---|---|---|
committer | auriamg <auria.mg@gmail.com> | 2015-06-09 00:58:50 +0300 |
commit | 51aab521e3c1a0fb74297d85694e3fec4031a0ef (patch) | |
tree | b7d2417b7c212ecc3933e3e622a5bc13560951f1 | |
parent | 0d8c73958bc0b76582d4df886c258937fb2c7bc4 (diff) | |
parent | ad6ac2a84d4f72e45a1adf985f97ec0f4aad9ed2 (diff) |
Merge pull request #10 from ryandesign/master
Makefile improvements: DESTDIR, PREFIX, CXX, all target, .PHONY
-rw-r--r-- | makefile | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -1,15 +1,22 @@ +DESTDIR= +PREFIX=/usr/local + +all: dylibbundler + dylibbundler: - g++ -c -I./src ./src/Settings.cpp -o ./Settings.o - g++ -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o - g++ -c -I./src ./src/Dependency.cpp -o ./Dependency.o - g++ -c -I./src ./src/main.cpp -o ./main.o - g++ -c -I./src ./src/Utils.cpp -o ./Utils.o - g++ -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o + $(CXX) -c -I./src ./src/Settings.cpp -o ./Settings.o + $(CXX) -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o + $(CXX) -c -I./src ./src/Dependency.cpp -o ./Dependency.o + $(CXX) -c -I./src ./src/main.cpp -o ./main.o + $(CXX) -c -I./src ./src/Utils.cpp -o ./Utils.o + $(CXX) -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o clean: rm -f *.o rm -f ./dylibbundler install: dylibbundler - cp ./dylibbundler /usr/local/bin/dylibbundler - chmod 775 /usr/local/bin/dylibbundler
\ No newline at end of file + cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler + chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler + +.PHONY: all clean install |