drop extend-if-key-in-array-syntax.patch add yacc debug
[nedit-bw.git] / makefile_bertw.patch
blob52e1360b480b92064f4853534749a5183304c71d
1 Subject: my local make target
3 ---
5 makefiles/Makefile.bertw | 69 +++++++++++++++++++++++++++++++++++++++++++++++
6 1 file changed, 69 insertions(+)
8 diff --quilt /dev/null new/makefiles/Makefile.bertw
9 --- /dev/null
10 +++ new/makefiles/Makefile.bertw
11 @@ -0,0 +1,69 @@
12 +# $Id: Makefile.linux,v 1.11 2003/05/20 00:27:56 n8gray Exp $
13 +CC=gcc
14 +AR=ar
16 +# For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
17 +# If using a Motif 2.1 compatible library (LessTif, OM) add
18 +# a '-lXp' in front of the -lXext in LIBS. You also drop the
19 +# -lXpm from that list.
20 +# Ensure that the Motif/LessTif headers and libs are found!
21 +# e.g. you may have to add something like
22 +# -I/usr/lesstif/include to CFLAGS and
23 +# -L/usr/lesstif/lib to LIBS
25 +# To evaluate an alternative layout for the Replace/Find dialog, add
26 +# -DREPLACE_SCOPE to the CFLAGS. See the README file for more information.
28 +# To test if the Motif library exports the runtime version
29 +# add -DHAVE__XMVERSIONSTRING to CFLAGS
32 +ifdef DEBUG
33 + CFLAGS += -O0 -g -DDEBUG
34 + ifdef DEBUG_MACRO
35 + ifndef DEBUG_NO_STACKDUMP
36 + CFLAGS += -DDEBUG_STACK
37 + endif
38 + ifndef DEBUG_NO_DISASM
39 + CFLAGS += -DDEBUG_ASSEMBLY
40 + endif
41 + ifndef DEBUG_NO_YACC
42 + CFLAGS += -DYYDEBUG=1
43 + endif
44 + endif
45 +else
46 + CFLAGS += -O3
47 +endif
49 +CFLAGS += -W -Wall -Wno-unused -Wno-sign-compare -Wno-strict-aliasing
50 +CFLAGS += -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DEDITRES
52 +ifdef WERROR
53 + CFLAGS += -Werror
54 +endif
56 +ARFLAGS=-urs
58 +ifeq ($(HOSTNAME),saturnV)
59 + CFLAGS += -I/home/bertw/opt/openmotif-2.3.0/include
60 + LIBS += -Wl,-R,/home/bertw/opt/openmotif-2.3.0/lib64
61 + LIBS += -L/home/bertw/opt/openmotif-2.3.0/lib64
62 + LIBS += -L/usr/X11R6/lib64
63 + LIBS += -lXm -lXmu -lXp -lXext -lXt -lSM -lICE -lX11 -lm
64 +endif
66 +ifeq ($(HOSTNAME),phoenix)
67 + ifdef OM231
68 + CFLAGS += -I/home/bertw/opt/openmotif-2.3.1/include
69 + LIBS += -Wl,-R,/home/bertw/opt/openmotif-2.3.1/lib
70 + LIBS += -L/home/bertw/opt/openmotif-2.3.1/lib
71 + endif
72 + LIBS += -L/usr/X11R6/lib
73 + LIBS += -lXm -lXmu -lXp -lXext -lXt -lSM -lICE -lX11 -lm
74 +endif
76 +CFLAGS += -I/usr/X11R6/include
78 +include Makefile.common
80 +verify_config: check_tif_rule