- core/core.cc: VM 代码节名恢复为随机 ".<3字符>"(上游行为),不再是固定 .dog
- 旧名兼容:core/files.cc 新增 IsLegacySDKLibraryName() / NormalizeSDKFunctionName(),
pefile/intel/elffile/macfile 的库名匹配同时认 vmprotectsdk{32,64}.dll、vmprotectddk*.sys、
libvmprotectsdk*.so、libvmprotectsdk.dylib;dotnetfile 认旧托管程序集 VMProtect.SDK
与 VMProtect.* 命名空间
- 图标:core/main.ico、core/vmp.ico、core/help.ico、DogProtect/images/{logo,help_icon}.png、
app/dogprotect_gui.app/Contents/Resources/logo.icns 全部换成狗头(多尺寸原生渲染 + 预乘 alpha 缩放)
- lin_common.mak: Linux 目标追加 -DULTIMATE(授权子系统只在 ULTIMATE 分支编译)
- tools/dogkeygen: 序列号生成器(自带 bignum/SHA-1/base64,PKCS#1 v1.5 签名)+ testhost.c +
vmpsdk64.def + README
- BUILD-LINUX.md: 删掉改名说明,补授权与构建要点
44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
#WARN: no incremental build supported yet (use 'all' target carefully)
|
|
|
|
.PHONY: clean all rebuild
|
|
.DEFAULT_GOAL := all
|
|
|
|
BIN_TARGET := $(BIN_DIR)/$(TARGET)
|
|
|
|
CC := clang
|
|
CXX := clang++
|
|
LINK := clang++
|
|
CFLAGS := $(CFLAGS) -pipe -fvisibility=hidden -DNDEBUG -O3 -gdwarf-2 -target $(ARCH) -Wall -W -fPIC $(DEFINES)
|
|
CXXFLAGS := $(CXXFLAGS) $(CFLAGS) -std=c++11 -fvisibility-inlines-hidden -fno-stack-protector -fno-builtin -Wno-reorder -Wno-switch -Wno-unused-parameter -Wno-unused-variable
|
|
# Linux 目标统一按 Ultimate 版编译:授权/序列号子系统(LicensingManager、-lf 授权参数文件、
|
|
# 密钥对与密钥库)只在 ULTIMATE 分支里编译,其余版本打包时会报
|
|
# "The licensing system not supported in this version"。追加而不是改 $(DEFINES),避免覆盖各目标的宏。
|
|
CFLAGS += -DULTIMATE
|
|
CXXFLAGS += -DULTIMATE
|
|
|
|
LFLAGS := $(LFLAGS) -Wl,--as-needed -std=c++11 -target $(ARCH)
|
|
SDK_LIBS :=
|
|
SLIBFLAGS := -crs
|
|
COPY_FILE := cp -f
|
|
COPY_DIR := cp -f -R
|
|
|
|
DEL_FILE := rm -f
|
|
DEL_DIR := rm -rf --
|
|
|
|
HPCH := precompiled.h
|
|
PCH_CPP := $(PCH_DIR)/$(HPCH).gch
|
|
INCFLAGS := -I ./ $(INCFLAGS)
|
|
|
|
.PRECIOUS: %/.sentinel
|
|
%/.sentinel:
|
|
test -e $(abspath $@) || (mkdir -p $(abspath ${@D}/) && touch $(abspath $@))
|
|
|
|
rebuild: clean all
|
|
|
|
.SUFFIXES:
|
|
|
|
all:: $(BIN_TARGET)
|
|
|
|
$(PCH_CPP): precompiled.h $(PCH_DIR)/.sentinel
|
|
$(CXX) $(CXXFLAGS) $(INCFLAGS) -x c++-header -c precompiled.cc -o $(PCH_CPP)
|