Skip to content

Commit

Permalink
Devendor Zydis
Browse files Browse the repository at this point in the history
  • Loading branch information
McSinyx committed Nov 18, 2024
1 parent b4e7175 commit 02cc5e3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ E9TOOL_OBJS=\
E9TOOL_LIBS=\
contrib/zydis/libZydis.a \
contrib/libdw/libdw.a
E9TOOL_CXXFLAGS=\
-I src/e9tool/ -Wno-unused-function \
-I contrib/zydis/include/ \
-I contrib/zydis/dependencies/zycore/include/
E9TOOL_CXXFLAGS= -I src/e9tool/ -Wno-unused-function
E9TOOL_LDFLAGS=\
-Wl,--dynamic-list=src/e9tool/e9tool.syms \
-ldl -lz
Expand All @@ -52,9 +49,9 @@ E9TOOL_LDFLAGS=\
all: e9tool e9patch

e9tool: CXXFLAGS += -O2 -DSYSTEM_LIBDW $(E9TOOL_CXXFLAGS)
e9tool: contrib/zydis/libZydis.a $(E9TOOL_OBJS)
$(CXX) $(CXXFLAGS) $(E9TOOL_OBJS) contrib/zydis/libZydis.a -o e9tool \
$(E9TOOL_LDFLAGS) -ldw
e9tool: $(E9TOOL_OBJS)
$(CXX) $(CXXFLAGS) $(E9TOOL_OBJS) -o e9tool \
$(E9TOOL_LDFLAGS) -ldw -lZydis
strip e9tool

e9patch: CXXFLAGS += -O2
Expand Down

0 comments on commit 02cc5e3

Please sign in to comment.