Fix for SF bug #999021 Using exit() in a macro causes hang.
[nedit.git] / makefiles / Makefile.macosx
blob1a2ab53ed6d8fa71fc5df9017b8f03cb0fd0f4fe
1 # $Id: Makefile.macosx,v 1.7 2004/07/14 19:48:21 n8gray Exp $
2 # Makefile for MacOS X
3 # Based on a contribution from hopperj@macconnect.com
4 # Maintained by n8gray@caltech.edu
6 # Note that there will probably be warnings about prebinding and/or 
7 # duplicate symbol definitions, but the executable will work fine.
9 # Change this line to point at the location your Motif libraries/headers are
10 # installed.  (e.g. /usr/local or /sw)  Use "locate libXm." to find the
11 # libraries, then remove the /lib suffix.
12 MOTIFDIR=/usr/local
14 # Use the first line if you're using OpenMotif, use the second if you're using
15 # LessTif from Fink.
16 EXTRALINKFLAGS=-bind_at_load
17 # EXTRALINKFLAGS=-force_flat_namespace
19 # Use the first line to link to Motif statically (highly recommended) or the 
20 # second line to link dynamically.  With Fink you'll probably have to use
21 # dynamic linking, since they don't normally distribute the static libraries.
22 MOTIFLINK=${MOTIFDIR}/lib/libXm.a
23 #MOTIFLINK=-L${MOTIFDIR}/lib -lXm.2
26 ############### You shouldn't need to edit anything below here ##############
27 CC=cc
28 AR=libtool
29 ARFLAGS=-static -o 
31 # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS\\
33 # To evaluate an alternative layout for the Replace/Find dialog, add
34 # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information.
36 # To test if the Motif library exports the runtime version
37 # add -DHAVE__XMVERSIONSTRING to CFLAGS
39 CFLAGS=-O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include \
40         -I${MOTIFDIR}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
41 LIBS= ${EXTRALINKFLAGS} -L/usr/X11R6/lib ${MOTIFLINK} -lXp \
42         -lXpm -lXext -lXt -lSM -lICE -lX11
45 # generic part
47 include Makefile.common
49 verify_config: check_tif_rule