Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauriamg <auria.mg@gmail.com>2015-06-09 00:58:50 +0300
committerauriamg <auria.mg@gmail.com>2015-06-09 00:58:50 +0300
commit51aab521e3c1a0fb74297d85694e3fec4031a0ef (patch)
treeb7d2417b7c212ecc3933e3e622a5bc13560951f1
parent0d8c73958bc0b76582d4df886c258937fb2c7bc4 (diff)
parentad6ac2a84d4f72e45a1adf985f97ec0f4aad9ed2 (diff)
Merge pull request #10 from ryandesign/master
Makefile improvements: DESTDIR, PREFIX, CXX, all target, .PHONY
-rw-r--r--makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/makefile b/makefile
index fc4d69d..9cec9f5 100644
--- a/makefile
+++ b/makefile
@@ -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