mirror of
https://github.com/status-im/macdylibbundler.git
synced 2025-02-19 22:28:05 +00:00
Merge pull request #10 from ryandesign/master
Makefile improvements: DESTDIR, PREFIX, CXX, all target, .PHONY
This commit is contained in:
commit
51aab521e3
23
makefile
23
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
|
||||
cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
||||
chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
||||
|
||||
.PHONY: all clean install
|
||||
|
Loading…
x
Reference in New Issue
Block a user