diff options
author | Bruno Haible <bruno@clisp.org> | 2003-05-17 17:58:23 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-05-17 17:58:23 +0000 |
commit | 99036bd5fc7ef77d0394877f5dd1a5817f3d7e20 (patch) | |
tree | 8a98aa9539f4f3f8174f75df4e4723c533975bc8 | |
parent | ac37410591f14d088165fd408c74c0c74513decc (diff) | |
download | gperf-99036bd5fc7ef77d0394877f5dd1a5817f3d7e20.tar.gz |
Make it possible to build a .exe with debugging information.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Makefile.msvc | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -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. diff --git a/Makefile.msvc b/Makefile.msvc index fab0037..a91cf1f 100644 --- a/Makefile.msvc +++ b/Makefile.msvc @@ -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) |