all:: ml
XCOMM We need /usr/include, the current src dir, the parent of this
XCOMM dir, the parent of X11, and the parent of the Motif (Xm) include dir
EXTRA_INCLUDES = -I/usr/dt/include -DDEFAULT_LIBDIR="\"${X11BASE}/lib/X11/ml\"" -I$(INCROOT) -I. -I..
XCOMM `Compile time defines:
XCOMM -DFALLBACK Generate an in-memory copy of the app-defaults
XCOMM resources. Allows the program to configure
XCOMM itself if no app-defaults are available.
XCOMM See README.install for more info.
XCOMM -Dconst= If you have a non-ANSI C compiler, include this.
XCOMM -DSTRICT_BSD Use if you have no POSIX style dirent.h and
XCOMM use index and rindex instead of strchr and strrchr.
XCOMM This hasn't yet been tested.
XCOMM -DNO_EDITRES If your X release doesn't have Xmu/Editres.h
CFLAGS+=-DFALLBACK $(EXTRA_INCLUDES)
XCOMM Location of Motif library. If Motif 2.0, add the location of
XCOMM the Xpm library also
XMLIB=${MOTIFLIB} -lXp
LOCAL_LIBRARIES = ../imap-4/c-client/c-client.a
OTHERLIBS=-lcrypt
ML_LIBDIR=${X11BASE}/lib/X11/ml
HELP_FILES=`find ../lib -type f -print`
XCOMM Default font sizes. Linux folks will want FONTSIZE=14 (or
XCOMM bigger) since they probably don't have any size 12 fonts. It's
XCOMM also useful if everybody at your site has hi-res monitors and
XCOMM 12 point text looks like pimples on a dimple on a red ant's chin.
FONTSIZE=12
XCOMM End of configuration section
SRCS= addresses.c \
authenticate.c \
buttons.c \
compose.c \
filter.c \
files.c \
hostconf.c \
icon.c \
imapfncs.c \
log.c \
logical.c \
mailboxes.c \
mime.c \
ml.c \
msgfncs.c \
notefncs.c \
preferences.c \
read.c \
resources.c \
system.c \
textfncs.c \
view.c \
winfncs.c
OBJS= addresses.o \
authenticate.o \
buttons.o \
compose.o \
filter.o \
files.o \
hostconf.o \
icon.o \
imapfncs.o \
log.o \
logical.o \
mailboxes.o \
mime.o \
ml.o \
msgfncs.o \
notefncs.o \
preferences.o \
read.o \
resources.o \
system.o \
textfncs.o \
view.o \
winfncs.o
resources.o: resources.time
resources.time: ../lib/ML.ad.ORIG Imakefile
@cp resources.c resources.c.backup
@../aux/newresources.sh $(FONTSIZE)
@touch resources.time
prototypes.time: $(SRCS) makeproto
@cp prototypes.h prototypes.h.backup
@../aux/newproto.sh
@touch prototypes.time
makeproto: ../aux/makeproto.c
$(CC) -o makeproto ../aux/makeproto.c
ml: $(OBJS) $(LOCAL_LIBRARIES)
$(OBJS): prototypes.h
prototypes.h: prototypes.time
resources.c: resources.time
SYS_LIBRARIES = $(OTHERLIBS) $(XMLIB) $(XMULIB) $(XTOOLLIB) $(XEXTLIB) $(XLIB)
ComplexProgramTargetNoMan(ml)
InstallAppDefaultsLong(../lib/ML,ML)
install:: ml
@if [ -d $(ML_LIBDIR) ]; then set +x; \
else (set -x; $(MKDIRHIER) $(ML_LIBDIR)); fi
@echo 'Backing up any current config files...'
@if [ -f $(ML_LIBDIR)/mime.handlers ]; \
then mv $(ML_LIBDIR)/mime.handlers $(ML_LIBDIR)/mime.handlers.ORIG; \
fi
@echo "Copying lib files..."
@cp $(HELP_FILES) $(ML_LIBDIR)
@echo "Done."
syntax highlighted by Code2HTML, v. 0.9.1