2018-04-17 05:56:01 +00:00
|
|
|
DESTDIR=
|
|
|
|
PREFIX=/usr/local
|
2019-12-10 15:34:12 +00:00
|
|
|
CXX=clang++
|
2019-12-13 12:16:34 +00:00
|
|
|
LD=$(shell xcrun -f clang++)
|
2019-12-16 19:19:51 +00:00
|
|
|
CXXFLAGS=-c -pipe -stdlib=libc++ -O2 -std=c++17 -arch x86_64 -mmacosx-version-min=10.13
|
2019-12-26 04:39:27 +00:00
|
|
|
LDFLAGS=-stdlib=libc++ -std=c++17 -Wl,-dead_strip -arch x86_64 -mmacosx-version-min=10.13
|
2019-12-16 19:19:51 +00:00
|
|
|
LDLIBS=
|
2018-04-17 05:56:01 +00:00
|
|
|
|
|
|
|
all: dylibbundler
|
|
|
|
|
|
|
|
dylibbundler:
|
2019-12-16 19:19:51 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -I./src ./src/Settings.cpp -o ./Settings.o
|
|
|
|
$(CXX) $(CXXFLAGS) -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o
|
|
|
|
$(CXX) $(CXXFLAGS) -I./src ./src/Dependency.cpp -o ./Dependency.o
|
|
|
|
$(CXX) $(CXXFLAGS) -I./src ./src/main.cpp -o ./main.o
|
|
|
|
$(CXX) $(CXXFLAGS) -I./src ./src/Utils.cpp -o ./Utils.o
|
|
|
|
$(LD) ${LDFLAGS} ${LDLIBS} -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o
|
2018-04-17 05:56:01 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f ./dylibbundler
|
|
|
|
|
|
|
|
install: dylibbundler
|
2018-06-07 16:30:21 +00:00
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
2018-04-17 05:56:01 +00:00
|
|
|
cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
|
|
|
chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler
|
|
|
|
|
|
|
|
.PHONY: all clean install
|