1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Make it possible to build a .exe with debugging information.

This commit is contained in:
Bruno Haible
2003-05-17 17:58:23 +00:00
parent ac37410591
commit 99036bd5fc
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2003-05-17 Bruno Haible <bruno@clisp.org>
* Makefile.msvc (DEBUGFLAGS): New variable.
(gperf.exe): Use it, and MFLAGS too.
2003-05-08 Bruno Haible <bruno@clisp.org>
* gperf-3.0 released.

View File

@@ -58,9 +58,11 @@ WARN_CFLAGS = -W1
!if $(DEBUG)
OPTIMFLAGS = -Od -Z7
DEBUGFLAGS = -Z7
!else
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
OPTIMFLAGS = -D_NDEBUG -O1
DEBUGFLAGS =
!endif
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
@@ -149,7 +151,7 @@ src\main.obj : src\main.cc $(OPTIONS_H) $(INPUT_H) $(SEARCH_H) $(OUTPUT_H)
$(CXX) $(INCLUDES) $(CXXFLAGS) -c src\main.cc -Fosrc\main.obj
gperf.exe : $(OBJECTS)
$(CC) $(OBJECTS) -Fegperf.exe
$(CC) $(MFLAGS) $(DEBUGFLAGS) $(OBJECTS) -Fegperf.exe
install : all force
-mkdir $(prefix)