66LD = g++
77WINDRES = windres
88
9- INC = -I../Dependencies/beaengine /include
9+ INC = -I../Dependencies/distorm /include
1010CFLAGS = -Wall -fPIC -D RECLASSNET64=1
1111RESINC =
1212LIBDIR =
@@ -35,9 +35,9 @@ OBJDIR_RELEASE = obj/release
3535DEP_RELEASE =
3636OUT_RELEASE = build/release/NativeCore.so
3737
38- OBJ_DEBUG = $(OBJDIR_DEBUG ) /WriteRemoteMemory.o $(OBJDIR_DEBUG ) /ReadRemoteMemory.o $(OBJDIR_DEBUG ) /OpenRemoteProcess.o $(OBJDIR_DEBUG ) /IsProcessValid.o $(OBJDIR_DEBUG ) /Input.o $(OBJDIR_DEBUG ) /EnumerateRemoteSectionsAndModules.o $(OBJDIR_DEBUG ) /EnumerateProcesses.o $(OBJDIR_DEBUG ) /DisassembleCode.o $(OBJDIR_DEBUG ) /Debugger.o $(OBJDIR_DEBUG ) /ControlRemoteProcess.o $(OBJDIR_DEBUG ) /CloseRemoteProcess.o $(OBJDIR_DEBUG ) /BaeEngine .o
38+ OBJ_DEBUG = $(OBJDIR_DEBUG ) /WriteRemoteMemory.o $(OBJDIR_DEBUG ) /ReadRemoteMemory.o $(OBJDIR_DEBUG ) /OpenRemoteProcess.o $(OBJDIR_DEBUG ) /IsProcessValid.o $(OBJDIR_DEBUG ) /Input.o $(OBJDIR_DEBUG ) /EnumerateRemoteSectionsAndModules.o $(OBJDIR_DEBUG ) /EnumerateProcesses.o $(OBJDIR_DEBUG ) /DisassembleCode.o $(OBJDIR_DEBUG ) /DistormHelper.o $( OBJDIR_DEBUG ) / Debugger.o $(OBJDIR_DEBUG ) /ControlRemoteProcess.o $(OBJDIR_DEBUG ) /CloseRemoteProcess.o $(OBJDIR_DEBUG ) /decoder.o $( OBJDIR_DEBUG ) /distorm.o $( OBJDIR_DEBUG ) /instructions.o $( OBJDIR_DEBUG ) /insts.o $( OBJDIR_DEBUG ) /mnemonics.o $( OBJDIR_DEBUG ) /operands.o $( OBJDIR_DEBUG ) /prefix.o $( OBJDIR_DEBUG ) /textdefs.o $( OBJDIR_DEBUG ) /wstring .o
3939
40- OBJ_RELEASE = $(OBJDIR_RELEASE ) /WriteRemoteMemory.o $(OBJDIR_RELEASE ) /ReadRemoteMemory.o $(OBJDIR_RELEASE ) /OpenRemoteProcess.o $(OBJDIR_RELEASE ) /IsProcessValid.o $(OBJDIR_RELEASE ) /Input.o $(OBJDIR_RELEASE ) /EnumerateRemoteSectionsAndModules.o $(OBJDIR_RELEASE ) /EnumerateProcesses.o $(OBJDIR_RELEASE ) /DisassembleCode.o $(OBJDIR_RELEASE ) /Debugger.o $(OBJDIR_RELEASE ) /ControlRemoteProcess.o $(OBJDIR_RELEASE ) /CloseRemoteProcess.o $(OBJDIR_RELEASE ) /BaeEngine .o
40+ OBJ_RELEASE = $(OBJDIR_RELEASE ) /WriteRemoteMemory.o $(OBJDIR_RELEASE ) /ReadRemoteMemory.o $(OBJDIR_RELEASE ) /OpenRemoteProcess.o $(OBJDIR_RELEASE ) /IsProcessValid.o $(OBJDIR_RELEASE ) /Input.o $(OBJDIR_RELEASE ) /EnumerateRemoteSectionsAndModules.o $(OBJDIR_RELEASE ) /EnumerateProcesses.o $(OBJDIR_RELEASE ) /DisassembleCode.o $(OBJDIR_RELEASE ) /DistormHelper.o $( OBJDIR_RELEASE ) / Debugger.o $(OBJDIR_RELEASE ) /ControlRemoteProcess.o $(OBJDIR_RELEASE ) /CloseRemoteProcess.o $(OBJDIR_RELEASE ) /decoder.o $( OBJDIR_RELEASE ) /distorm.o $( OBJDIR_RELEASE ) /instructions.o $( OBJDIR_RELEASE ) /insts.o $( OBJDIR_RELEASE ) /mnemonics.o $( OBJDIR_RELEASE ) /operands.o $( OBJDIR_RELEASE ) /prefix.o $( OBJDIR_RELEASE ) /textdefs.o $( OBJDIR_RELEASE ) /wstring .o
4141
4242all : debug release
4343
@@ -78,6 +78,9 @@ $(OBJDIR_DEBUG)/EnumerateProcesses.o: EnumerateProcesses.cpp
7878$(OBJDIR_DEBUG ) /DisassembleCode.o : DisassembleCode.cpp
7979 $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c DisassembleCode.cpp -o $(OBJDIR_DEBUG ) /DisassembleCode.o
8080
81+ $(OBJDIR_DEBUG ) /DistormHelper.o : ../Shared/DistormHelper.cpp
82+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Shared/DistormHelper.cpp -o $(OBJDIR_DEBUG ) /DistormHelper.o
83+
8184$(OBJDIR_DEBUG ) /Debugger.o : Debugger.cpp
8285 $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c Debugger.cpp -o $(OBJDIR_DEBUG ) /Debugger.o
8386
@@ -87,8 +90,32 @@ $(OBJDIR_DEBUG)/ControlRemoteProcess.o: ControlRemoteProcess.cpp
8790$(OBJDIR_DEBUG ) /CloseRemoteProcess.o : CloseRemoteProcess.cpp
8891 $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c CloseRemoteProcess.cpp -o $(OBJDIR_DEBUG ) /CloseRemoteProcess.o
8992
90- $(OBJDIR_DEBUG ) /BaeEngine.o : ../Dependencies/beaengine/src/BeaEngine.c
91- $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/beaengine/src/BeaEngine.c -o $(OBJDIR_DEBUG ) /BaeEngine.o
93+ $(OBJDIR_DEBUG ) /decoder.o : ../Dependencies/distorm/src/decoder.c
94+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/decoder.c -o $(OBJDIR_DEBUG ) /decoder.o
95+
96+ $(OBJDIR_DEBUG ) /distorm.o : ../Dependencies/distorm/src/distorm.c
97+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/distorm.c -o $(OBJDIR_DEBUG ) /distorm.o
98+
99+ $(OBJDIR_DEBUG ) /instructions.o : ../Dependencies/distorm/src/instructions.c
100+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/instructions.c -o $(OBJDIR_DEBUG ) /instructions.o
101+
102+ $(OBJDIR_DEBUG ) /insts.o : ../Dependencies/distorm/src/insts.c
103+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/insts.c -o $(OBJDIR_DEBUG ) /insts.o
104+
105+ $(OBJDIR_DEBUG ) /mnemonics.o : ../Dependencies/distorm/src/mnemonics.c
106+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/mnemonics.c -o $(OBJDIR_DEBUG ) /mnemonics.o
107+
108+ $(OBJDIR_DEBUG ) /operands.o : ../Dependencies/distorm/src/operands.c
109+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/operands.c -o $(OBJDIR_DEBUG ) /operands.o
110+
111+ $(OBJDIR_DEBUG ) /prefix.o : ../Dependencies/distorm/src/prefix.c
112+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/prefix.c -o $(OBJDIR_DEBUG ) /prefix.o
113+
114+ $(OBJDIR_DEBUG ) /textdefs.o : ../Dependencies/distorm/src/textdefs.c
115+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/textdefs.c -o $(OBJDIR_DEBUG ) /textdefs.o
116+
117+ $(OBJDIR_DEBUG ) /wstring.o : ../Dependencies/distorm/src/wstring.c
118+ $(CXX ) $(CFLAGS_DEBUG ) $(INC_DEBUG ) -c ../Dependencies/distorm/src/wstring.c -o $(OBJDIR_DEBUG ) /wstring.o
92119
93120clean_debug :
94121 rm -f $(OBJ_DEBUG ) $(OUT_DEBUG )
@@ -130,6 +157,9 @@ $(OBJDIR_RELEASE)/EnumerateProcesses.o: EnumerateProcesses.cpp
130157$(OBJDIR_RELEASE ) /DisassembleCode.o : DisassembleCode.cpp
131158 $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c DisassembleCode.cpp -o $(OBJDIR_RELEASE ) /DisassembleCode.o
132159
160+ $(OBJDIR_RELEASE ) /DistormHelper.o : ../Shared/DistormHelper.cpp
161+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Shared/DistormHelper.cpp -o $(OBJDIR_RELEASE ) /DistormHelper.o
162+
133163$(OBJDIR_RELEASE ) /Debugger.o : Debugger.cpp
134164 $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c Debugger.cpp -o $(OBJDIR_RELEASE ) /Debugger.o
135165
@@ -139,8 +169,32 @@ $(OBJDIR_RELEASE)/ControlRemoteProcess.o: ControlRemoteProcess.cpp
139169$(OBJDIR_RELEASE ) /CloseRemoteProcess.o : CloseRemoteProcess.cpp
140170 $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c CloseRemoteProcess.cpp -o $(OBJDIR_RELEASE ) /CloseRemoteProcess.o
141171
142- $(OBJDIR_RELEASE ) /BaeEngine.o : ../Dependencies/beaengine/src/BeaEngine.c
143- $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/beaengine/src/BeaEngine.c -o $(OBJDIR_RELEASE ) /BaeEngine.o
172+ $(OBJDIR_RELEASE ) /decoder.o : ../Dependencies/distorm/src/decoder.c
173+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/decoder.c -o $(OBJDIR_RELEASE ) /decoder.o
174+
175+ $(OBJDIR_RELEASE ) /distorm.o : ../Dependencies/distorm/src/distorm.c
176+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/distorm.c -o $(OBJDIR_RELEASE ) /distorm.o
177+
178+ $(OBJDIR_RELEASE ) /instructions.o : ../Dependencies/distorm/src/instructions.c
179+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/instructions.c -o $(OBJDIR_RELEASE ) /instructions.o
180+
181+ $(OBJDIR_RELEASE ) /insts.o : ../Dependencies/distorm/src/insts.c
182+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/insts.c -o $(OBJDIR_RELEASE ) /insts.o
183+
184+ $(OBJDIR_RELEASE ) /mnemonics.o : ../Dependencies/distorm/src/mnemonics.c
185+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/mnemonics.c -o $(OBJDIR_RELEASE ) /mnemonics.o
186+
187+ $(OBJDIR_RELEASE ) /operands.o : ../Dependencies/distorm/src/operands.c
188+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/operands.c -o $(OBJDIR_RELEASE ) /operands.o
189+
190+ $(OBJDIR_RELEASE ) /prefix.o : ../Dependencies/distorm/src/prefix.c
191+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/prefix.c -o $(OBJDIR_RELEASE ) /prefix.o
192+
193+ $(OBJDIR_RELEASE ) /textdefs.o : ../Dependencies/distorm/src/textdefs.c
194+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/textdefs.c -o $(OBJDIR_RELEASE ) /textdefs.o
195+
196+ $(OBJDIR_RELEASE ) /wstring.o : ../Dependencies/distorm/src/wstring.c
197+ $(CXX ) $(CFLAGS_RELEASE ) $(INC_RELEASE ) -c ../Dependencies/distorm/src/wstring.c -o $(OBJDIR_RELEASE ) /wstring.o
144198
145199clean_release :
146200 rm -f $(OBJ_RELEASE ) $(OUT_RELEASE )
0 commit comments