25 lines
735 B
Makefile
25 lines
735 B
Makefile
DESTDIR=
|
|
PREFIX=/usr/local
|
|
CXXFLAGS = -O2
|
|
|
|
all: dylibbundler
|
|
|
|
dylibbundler:
|
|
$(CXX) $(CXXFLAGS) -c -I./src ./src/Settings.cpp -o ./Settings.o
|
|
$(CXX) $(CXXFLAGS) -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o
|
|
$(CXX) $(CXXFLAGS) -c -I./src ./src/Dependency.cpp -o ./Dependency.o
|
|
$(CXX) $(CXXFLAGS) -c -I./src ./src/main.cpp -o ./main.o
|
|
$(CXX) $(CXXFLAGS) -c -I./src ./src/Utils.cpp -o ./Utils.o
|
|
$(CXX) $(CXXFLAGS) -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f ./dylibbundler
|
|
|
|
install: dylibbundler
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
|
chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
|
|
|
.PHONY: all clean install
|