-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakefile.rules
57 lines (48 loc) · 1.67 KB
/
makefile.rules
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##############################################################
#
# This file includes all the test targets as well as all the
# non-default build rules and test recipes.
#
##############################################################
# IDA-specific configuration to generate proper DLL name.
ifeq ($(TARGET),intel64)
BITNESS := 64
endif
ifeq ($(TARGET_OS),linux)
TOOL_CXXFLAGS += -Wno-deprecated-declarations -g
TOOL_CXXFLAGS_NOOPT += -Wno-deprecated-declarations -g
endif
ifeq ($(TARGET_OS),windows)
TOOL_LDFLAGS += /DEBUG:FULL /PDBALTPATH:%_PDB%
endif
##############################################################
#
# Test targets
#
##############################################################
###### Place all generic definitions here ######
# This defines tests which run tools of the same name. This is simply for convenience to avoid
# defining the test name twice (once in TOOL_ROOTS and again in TEST_ROOTS).
# Tests defined here should not be defined in TOOL_ROOTS and TEST_ROOTS.
TEST_TOOL_ROOTS := idadbg$(BITNESS)
##############################################################
#
# Build rules
#
##############################################################
# -]
ifdef IDA_OBJDIR
OBJDIR := $(IDA_OBJDIR)/
$(OBJDIR):
@mkdir -p 2>/dev/null $(OBJDIR)
CC := $(IDA_CC)
CXX := $(IDA_CXX)
LINKER := $(IDA_CCL)
TOOL_CXXFLAGS += $(IDA_EXTRA_CXXFLAGS)
TOOL_LDFLAGS += $(IDA_EXTRA_LDFLAGS)
endif
# -[
# special rule for IDA's 64-bit DLLs (with non-suffixed object file name).
# (copied form makefile.default.rules).
$(OBJDIR)idadbg$(BITNESS)$(PINTOOL_SUFFIX): $(OBJDIR)idadbg$(OBJ_SUFFIX)
$(LINKER) $(TOOL_LDFLAGS) $(LINK_EXE)$@ $< $(TOOL_LPATHS) $(TOOL_LIBS)