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:
@@ -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>
|
2003-05-08 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
* gperf-3.0 released.
|
* gperf-3.0 released.
|
||||||
|
|||||||
@@ -58,9 +58,11 @@ WARN_CFLAGS = -W1
|
|||||||
|
|
||||||
!if $(DEBUG)
|
!if $(DEBUG)
|
||||||
OPTIMFLAGS = -Od -Z7
|
OPTIMFLAGS = -Od -Z7
|
||||||
|
DEBUGFLAGS = -Z7
|
||||||
!else
|
!else
|
||||||
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
|
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
|
||||||
OPTIMFLAGS = -D_NDEBUG -O1
|
OPTIMFLAGS = -D_NDEBUG -O1
|
||||||
|
DEBUGFLAGS =
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
|
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
|
$(CXX) $(INCLUDES) $(CXXFLAGS) -c src\main.cc -Fosrc\main.obj
|
||||||
|
|
||||||
gperf.exe : $(OBJECTS)
|
gperf.exe : $(OBJECTS)
|
||||||
$(CC) $(OBJECTS) -Fegperf.exe
|
$(CC) $(MFLAGS) $(DEBUGFLAGS) $(OBJECTS) -Fegperf.exe
|
||||||
|
|
||||||
install : all force
|
install : all force
|
||||||
-mkdir $(prefix)
|
-mkdir $(prefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user