forked from ALSchwalm/dwarfexport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.MSVC
executable file
·46 lines (38 loc) · 1.33 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
!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\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)
$(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) $(OBJECTS) bin\dwarfexport$(DLLSUFFIX)
cd deps
$(MAKE) /f Makefile-libdwarf.MSVC clean
$(MAKE) /f Makefile-libelf.MSVC clean
cd ..