make makefile generic
[nedit-bw.git] / makefile_bertw.patch
blob9aabc251d201b47eac2e8129e2bf25496625814e
1 Subject: my local make target
3 ---
5 makefiles/Makefile.bertw | 57 +++++++++++++++++++++++++++++++++++++++++++++++
6 1 file changed, 57 insertions(+)
8 diff --quilt /dev/null new/makefiles/Makefile.bertw
9 --- /dev/null
10 +++ new/makefiles/Makefile.bertw
11 @@ -0,0 +1,57 @@
12 +# $Id: Makefile.linux,v 1.11 2003/05/20 00:27:56 n8gray Exp $
13 +CC=gcc -U_FORTIFY_SOURCE
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 +LIBS += -lXm -lXmu -lXp -lXext -lXt -lSM -lICE -lX11 -lm
60 +ifdef OM231
61 + CFLAGS += -I/home/$(USER)/opt/openmotif-2.3.1/include
62 + LIBS += -Wl,-R,/home/$(USER)/opt/openmotif-2.3.1/lib
63 + LIBS += -L/home/$(USER)/opt/openmotif-2.3.1/lib
64 +endif
66 +include Makefile.common
68 +verify_config: check_tif_rule