forked from rainers/cv2pdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,12 @@ | ||
# | ||
# 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\dwarf2pdb.cpp \ | ||
src\dwarf.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 \ | ||
src\dviewhelper\dviewhelper.cpp | ||
|
||
ADD = Makefile \ | ||
src\cv2pdb.vcproj \ | ||
src\dviewhelper\dviewhelper.vcproj \ | ||
src\cv2pdb.sln | ||
|
||
DOC = VERSION README INSTALL LICENSE CHANGES TODO FEATURES autoexp.expand autoexp.visualizer | ||
|
||
BIN = bin\Release\cv2pdb.exe bin\Release\dviewhelper.dll | ||
|
||
TEST = test\cvtest.d \ | ||
test\cvtest.vcproj \ | ||
test\Makefile \ | ||
|
||
all: bin src | ||
|
||
############################### | ||
include VERSION | ||
|
||
DOWNLOADS = ..\downloads | ||
|
||
$(DOWNLOADS): | ||
if not exist $(DOWNLOADS)\nul mkdir $(DOWNLOADS) | ||
|
||
############################### | ||
ZIP = zip | ||
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) $(TEST) 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 | ||
|
||
############################### | ||
cv2pdb_exe: | ||
devenv /Project "cv2pdb" /Build "Release|Win32" src\cv2pdb_vs12.sln | ||
|
||
test: cv2pdb_exe | ||
cd ..\test && nmake test | ||
CPPFLAGS = /nologo /EHsc /O2 | ||
LDLIBS = advapi32.lib | ||
src = src/PEImage.cpp src/cv2pdb.cpp src/cvutil.cpp src/demangle.cpp \ | ||
src/dwarf2pdb.cpp src/dwarflines.cpp src/main.cpp src/mspdb.cpp \ | ||
src/readDwarf.cpp src/symutil.cpp | ||
cv2pdb.exe: $(src) cvt80to64.obj | ||
$(CC) /nologo /EHsc /O2 /Fe:$@ $(src) cvt80to64.obj $(LDLIBS) | ||
cvt80to64.obj: src/cvt80to64.asm | ||
$(AS) /nologo /c src/cvt80to64.asm | ||
clean: | ||
del *.obj | ||
if exist cv2pdb.exe del cv2pdb.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters