forked from thalium/dwarfexport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.MSVC
executable file
·47 lines (39 loc) · 1.36 KB
/
Makefile.MSVC
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
!include MSVC.mk
CXXFLAGS=$(COMMONCXXFLAGS) \
$(IDACXXFLAGS) \
/D__NT__ \
/DUSE_STANDARD_FILE_FUNCTIONS \
/I"$(IDASDK_PATH)"\include \
/I"$(IDA_PATH)"\plugins\hexrays_sdk\include \
/Ideps\libdwarf-helpers \
/Ideps\libdwarf \
/Ideps\libelf-helpers \
/Ideps\libelf-0.8.13\lib
OBJECTS=src\dwarfexport$(OBJSUFFIX) \
src\dwarfgen$(OBJSUFFIX) \
src\platform$(OBJSUFFIX)
all: bin\dwarfexport$(DLLSUFFIX)
bin\dwarfexport$(DLLSUFFIX): $(OBJECTS) \
deps\lib\libdwarf$(LIBSUFFIX) \
deps\lib\libelf$(LIBSUFFIX)
if not exist bin $(MKDIR) bin
$(LD) /DLL $(LDFLAGS) /OUT:$@ $(OBJECTS) \
deps\lib\libdwarf$(LIBSUFFIX) \
deps\lib\libelf$(LIBSUFFIX) \
"$(IDASDK_PATH)"\lib\$(IDALIB)
deps\lib\libdwarf$(LIBSUFFIX): deps\Makefile-libdwarf.MSVC
cd deps
$(MAKE) /f Makefile-libdwarf.MSVC
cd ..
deps\lib\libelf$(LIBSUFFIX): deps\Makefile-libelf.MSVC
cd deps
$(MAKE) /f Makefile-libelf.MSVC
cd ..
.cpp$(OBJSUFFIX):
$(CXX) /c $(CXXFLAGS) /Fo:$@ $<
clean:
$(RM) /f $(OBJECTS) | call rem
cd deps
$(MAKE) /f Makefile-libdwarf.MSVC clean | call rem
$(MAKE) /f Makefile-libelf.MSVC clean | call rem
cd ..