Quoting TK Soh <[email protected]>: > 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?
What about making the -O conditional the same way, as an "else" clause? I almost never use optimised builds - today's machines are already so fast. If I was still using machines from 15 years ago, that would perhaps be different. How would this work with non-gnu make, BTW? Tony -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
