re-fresh
[nedit-bw.git] / makefile_bertw.patch
blob127aaf16a40e9a33e8406f6b35220c4dbd03413a
1 Subject: my local make target
3 ---
5 makefiles/Makefile.bertw | 66 +++++++++++++++++++++++++++++++++++++++++++++++
6 1 file changed, 66 insertions(+)
8 diff --quilt /dev/null new/makefiles/Makefile.bertw
9 --- /dev/null
10 +++ new/makefiles/Makefile.bertw
11 @@ -0,0 +1,66 @@
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 +CFLAGS = -g
33 +ifdef DEBUG
34 + CFLAGS += -O0 -DDEBUG
35 + ifdef DEBUG_MACRO
36 + ifndef DEBUG_NO_STACKDUMP
37 + CFLAGS += -DDEBUG_STACK
38 + endif
39 + ifndef DEBUG_NO_DISASM
40 + CFLAGS += -DDEBUG_ASSEMBLY
41 + endif
42 + ifndef DEBUG_NO_YACC
43 + CFLAGS += -DYYDEBUG=1
44 + endif
45 + endif
46 +else
47 + CFLAGS += -O3
48 +endif
50 +CFLAGS += -W -Wall -Wno-unused -Wno-sign-compare -Wno-strict-aliasing
51 +CFLAGS += -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DEDITRES
53 +ifdef WERROR
54 + CFLAGS += -Werror
55 +endif
57 +ARFLAGS=-urs
59 +LIBS += -lXm -lXmu -lXp -lXext -lXt -lSM -lICE -lX11 -lm
61 +ifdef OM231
62 +OM23=1
63 +endif
65 +ifdef OM232
66 +OM23=2
67 +endif
69 +ifdef OM23
70 + CFLAGS += -I/home/$(USER)/opt/openmotif-2.3.$(OM23)/include
71 + LIBS += -Wl,-R,/home/$(USER)/opt/openmotif-2.3.$(OM23)/lib
72 + LIBS += -L/home/$(USER)/opt/openmotif-2.3.$(OM23)/lib
73 +endif
75 +include Makefile.common
77 +verify_config: check_tif_rule