For a long time I had to rely on custom make sure to generate the
debugging version of nedit binary. I am now thinking maybe the support
should be build into the standard makefile.

This is what I have for Linux:

diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux
--- a/makefiles/Makefile.linux
+++ b/makefiles/Makefile.linux
@@ -19,6 +19,10 @@
 #
 CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD

+ifeq ($(DEBUG),1)
+CFLAGS+=-g
+endif
+
 ARFLAGS=-urs

 LIBS=-L/usr/X11R6/lib -lXm -lXt -lX11 -lm

So that I can do this to build with debugging symbol:

   $ DEBUG=1 make linux

Any better ideas?
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to