aboutsummaryrefslogtreecommitdiff
path: root/runtime/mac_runtime.mak
diff options
context:
space:
mode:
authorjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
committerjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
commit28008a746a31abb7909dd86cb0cd413ac8943b0b (patch)
treea30b74b8cad548048c3c1551d652828ab76fa9bd /runtime/mac_runtime.mak
downloadvmprotect-3.5.1-master.tar
vmprotect-3.5.1-master.tar.gz
vmprotect-3.5.1-master.tar.bz2
vmprotect-3.5.1-master.zip
first commitHEADmaster
Diffstat (limited to 'runtime/mac_runtime.mak')
-rw-r--r--runtime/mac_runtime.mak31
1 files changed, 31 insertions, 0 deletions
diff --git a/runtime/mac_runtime.mak b/runtime/mac_runtime.mak
new file mode 100644
index 0000000..a6921d0
--- /dev/null
+++ b/runtime/mac_runtime.mak
@@ -0,0 +1,31 @@
+SOURCES := core.cc crypto.cc loader.cc licensing_manager.cc string_manager.cc hwid.cc objects.cc utils.cc ../third-party/lzma/LzmaDecode.cc
+
+PROJECT := mac_runtime
+TARGET := $(PROJECT).dylib
+BIN_DIR := ../bin/$(ARCH_DIR)/Release
+LIB_TARGET := $(BIN_DIR)/$(PROJECT).a
+TMP_DIR := ../tmp/mac/runtime/$(ARCH_DIR)/runtime
+PCH_DIR := $(TMP_DIR)/runtime.gch
+DEFINES :=
+LFLAGS := -dynamiclib
+LIBS = $(SDK_LIBS) -framework DiskArbitration
+DYLIBS := ../bin/libVMProtectSDK.dylib
+OBJCOMP :=
+OBJECTS := $(addprefix $(TMP_DIR)/, $(SOURCES:.cc=.o))
+
+include ../mac_common.mak
+
+clean:
+ -$(DEL_FILE) $(LIB_TARGET)
+ -$(DEL_FILE) $(OBJECTS)
+ -$(DEL_FILE) $(PCH_CPP)
+ -$(DEL_FILE) $(BIN_TARGET)
+
+$(LIB_TARGET): $(OBJECTS) $(BIN_DIR)/.sentinel
+ libtool $(SLIBFLAGS) -o $(LIB_TARGET) $(abspath $(OBJECTS)) $(OBJCOMP)
+
+$(BIN_TARGET): $(LIB_TARGET) $(OBJCOMP) $(DYLIBS)
+ $(LINK) $(LFLAGS) -o $(BIN_TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) $(DYLIBS)
+
+$(TMP_DIR)/%.o: %.cc $(PCH_CPP) $(TMP_DIR)/%/../.sentinel
+ $(CXX) -c -include-pch $(PCH_CPP) $(CXXFLAGS) $(INCFLAGS) -o $(abspath $@) $(abspath $<)