diff options
author | jmpoep <OriginalEntryPoint@qq.com> | 2023-12-07 16:51:07 +0800 |
---|---|---|
committer | jmpoep <OriginalEntryPoint@qq.com> | 2023-12-07 16:51:07 +0800 |
commit | 28008a746a31abb7909dd86cb0cd413ac8943b0b (patch) | |
tree | a30b74b8cad548048c3c1551d652828ab76fa9bd /runtime/lin_runtime.mak | |
download | vmprotect-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 |
Diffstat (limited to 'runtime/lin_runtime.mak')
-rw-r--r-- | runtime/lin_runtime.mak | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/runtime/lin_runtime.mak b/runtime/lin_runtime.mak new file mode 100644 index 0000000..29cda2c --- /dev/null +++ b/runtime/lin_runtime.mak @@ -0,0 +1,32 @@ +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 := lin_runtime +TARGET := $(PROJECT).so +BIN_DIR := ../bin/$(ARCH_DIR)/Release +LIB_TARGET := $(BIN_DIR)/$(PROJECT).a +TMP_DIR := ../tmp/lin/runtime/$(ARCH_DIR)/runtime +PCH_DIR := $(TMP_DIR)/runtime.gch +DEFINES := +LFLAGS := $(LFLAGS) -Wl,--no-undefined -shared -Wl,--wrap=memcpy -Wl,--wrap=__poll_chk -Wl,--wrap=__fdelt_chk +LIBS = ~/curl-7.35.0-$(ARCH_DIR)/lib/libcurl.so -ldl -lrt -L../bin/ -lVMProtectSDK$(ARCH_DIR) +DYLIBS := ../bin/libVMProtectSDK$(ARCH_DIR).so +OBJCOMP := +OBJECTS := $(addprefix $(TMP_DIR)/, $(SOURCES:.cc=.o)) +INCFLAGS := -I ~/curl-7.35.0-$(ARCH_DIR)/include + +include ../lin_common.mak + +clean: + -$(DEL_FILE) $(LIB_TARGET) + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) $(PCH_CPP) + -$(DEL_FILE) $(BIN_TARGET) + +$(LIB_TARGET): $(OBJECTS) $(BIN_DIR)/.sentinel + ar $(SLIBFLAGS) $(LIB_TARGET) $(abspath $(OBJECTS)) $(OBJCOMP) + +$(BIN_TARGET): $(LIB_TARGET) $(OBJCOMP) $(DYLIBS) + $(LINK) $(LFLAGS) -o $(BIN_TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) + +$(TMP_DIR)/%.o: %.cc $(PCH_CPP) $(TMP_DIR)/%/../.sentinel + $(CXX) -c -include-pch $(PCH_CPP) $(CXXFLAGS) $(INCFLAGS) -o $(abspath $@) $(abspath $<) |