-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 740 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CXX ?= g++
CXXFLAGS=-m32 -fPIC -shared -Wall -Wextra -std=c++11
LDFLAGS+=-static-libgcc -static-libstdc++
LIBS=-lida lib/libelf32.a lib/libdwarf32.a
INCLUDES=-I$(IDASDK_PATH)/include -I$(IDA_PATH)/plugins/hexrays_sdk/include
DWARFEXPORT_SRC = $(wildcard src/*.cpp)
all: bin/dwarfexport.plx bin/dwarfexport.plx64
bin/dwarfexport.plx: $(DWARFEXPORT_SRC)
$(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS) \
-L. \
-L$(IDA_PATH) \
$(INCLUDES) \
-D__LINUX__ $(LIBS) -o bin/dwarfexport.plx
bin/dwarfexport.plx64: $(DWARFEXPORT_SRC)
$(CXX) $(LDFLAGS) $(DWARFEXPORT_SRC) $(CXXFLAGS) \
-L. \
-L$(IDA_PATH) \
$(INCLUDES) \
-D__LINUX__ -D__EA64__ $(LIBS) -o bin/dwarfexport.plx64
clean:
rm -f bin/dwarfexport.plx bin/dwarfexport.plx64