blob: fe69a9b38bbcdb10954f4d8e01465ce9793c8ea5 (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#
# makefile to be used with NMAKE for building source and
# installation packages
#
# prerequisites:
# - environment variable VSINSTALLDIR must point to your Visual Studio
# or VCExpress installation folder
# - Info-zip must be found in the PATH
#
# run
# nmake src
# to create a source package with name cv2pdb_src_<VERSION>.zip in
# ..\downloads
#
# run
# nmake bin
# to create a binary package with name cv2pdb_<VERSION>.zip in
# ..\downloads
SRC = src\cv2pdb.cpp \
src\cv2pdb.h \
src\demangle.cpp \
src\demangle.h \
src\LastError.h \
src\main.cpp \
src\mscvpdb.h \
src\mspdb.h \
src\mspdb.cpp \
src\PEImage.cpp \
src\PEImage.h \
src\symutil.cpp \
src\symutil.h
ADD = Makefile src\cv2pdb.vcproj src\cv2pdb.sln
DOC = VERSION README INSTALL LICENSE CHANGES autoexp.snippet
BIN = bin\Release\cv2pdb.exe
TEST = test\cvtest.d
all: bin src
###############################
include VERSION
DOWNLOADS = ..\downloads
$(DOWNLOADS):
if not exist $(DOWNLOADS)\nul mkdir $(DOWNLOADS)
###############################
SRC_ZIP = $(DOWNLOADS)\cv2pdb_src_$(VERSION).zip
src: $(DOWNLOADS) $(SRC_ZIP)
$(SRC_ZIP): $(SRC) $(ADD) $(DOC) $(TEST)
if exist $(SRC_ZIP) del $(SRC_ZIP)
zip $(SRC_ZIP) -X $(SRC) $(ADD) $(DOC) $(TEST)
###############################
BIN_ZIP = $(DOWNLOADS)\cv2pdb_$(VERSION).zip
bin: $(DOWNLOADS) $(BIN_ZIP)
$(BIN_ZIP): $(BIN) $(DOC) Makefile
if exist $(BIN_ZIP) del $(BIN_ZIP)
zip $(BIN_ZIP) -j -X $(BIN) $(DOC)
IDEDIR = $(VSINSTALLDIR)\Common7\IDE
$(BIN): $(SRC) $(ADD) VERSION
if exist "$(IDEDIR)\VCExpress.exe" "$(IDEDIR)\VCExpress.exe" /Build Release src\cv2pdb.sln
if not exist "$(IDEDIR)\VCExpress.exe" "$(IDEDIR)\devenv.exe" /Build Release src\cv2pdb.sln
|