Skip to content

Commit

Permalink
[BUGFIX] Fixed building on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Dec 1, 2024
1 parent e246f20 commit d693435
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions make_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
make all TARGET=ia32
make all TARGET=intel64

TT_32=./obj-ia32/TinyTracer.so
TT_64=./obj-intel64/TinyTracer.so
TT_32=./obj-ia32/TinyTracer32.so
TT_64=./obj-intel64/TinyTracer64.so

APP_TYPE32=$(file "$TT_32")
APP_TYPE64=$(file "$TT_64")

if [[ $APP_TYPE64 == *"ELF 64-bit"* ]];
then
echo "[+] 64 bit build ok."
cp ./obj-intel64/TinyTracer.so ./install32_64/TinyTracer64.so
cp "$TT_64" ./install32_64/TinyTracer64.so
if [[ $? == 0 ]];
then
echo "[+] 64 bit install ok."
Expand All @@ -26,7 +26,7 @@ fi
if [[ $APP_TYPE32 == *"ELF 32-bit"* ]];
then
echo "[+] 32 bit build ok."
cp ./obj-ia32/TinyTracer.so ./install32_64/TinyTracer32.so
cp "$TT_32" ./install32_64/TinyTracer32.so
if [[ $? == 0 ]];
then
echo "[+] 32 bit install ok."
Expand Down
7 changes: 6 additions & 1 deletion makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ TEST_TOOL_ROOTS := TinyTracer$(BITNESS)
# This section contains the build rules for all binaries that have special build rules.
# See makefile.default.rules for the default build rules.

ifeq ($(TARGET), WIN32)
EVASION_CHECKS=$(OBJDIR)AntiDebug$(OBJ_SUFFIX) $(OBJDIR)AntiVm$(OBJ_SUFFIX) $(OBJDIR)EvasionWatch$(OBJ_SUFFIX)
else
EVASION_CHECKS=
endif

$(OBJDIR)TinyTracer$(BITNESS)$(PINTOOL_SUFFIX): $(OBJDIR)Util$(OBJ_SUFFIX) $(OBJDIR)Settings$(OBJ_SUFFIX) $(OBJDIR)TraceLog$(OBJ_SUFFIX) $(OBJDIR)TinyTracer$(OBJ_SUFFIX) $(OBJDIR)ModuleInfo$(OBJ_SUFFIX) $(OBJDIR)ProcessInfo$(OBJ_SUFFIX) $(OBJDIR)FuncWatch$(OBJ_SUFFIX) $(OBJDIR)AntiDebug$(OBJ_SUFFIX) $(OBJDIR)AntiVm$(OBJ_SUFFIX) $(OBJDIR)EvasionWatch$(OBJ_SUFFIX)
$(OBJDIR)TinyTracer$(BITNESS)$(PINTOOL_SUFFIX): $(OBJDIR)Util$(OBJ_SUFFIX) $(OBJDIR)Settings$(OBJ_SUFFIX) $(OBJDIR)TraceLog$(OBJ_SUFFIX) $(OBJDIR)TinyTracer$(OBJ_SUFFIX) $(OBJDIR)ModuleInfo$(OBJ_SUFFIX) $(OBJDIR)ProcessInfo$(OBJ_SUFFIX) $(OBJDIR)FuncWatch$(OBJ_SUFFIX) $(EVASION_CHECKS)
$(LINKER) $(TOOL_LDFLAGS) $(LINK_EXE)$@ $^ $(TOOL_LPATHS) $(TOOL_LIBS)

0 comments on commit d693435

Please sign in to comment.