#
# Makefile for uip subdirectory
#
-# $Id$
-#
SHELL = /bin/sh
CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
-HESIOD_INCLUDES = @HESIOD_INCLUDES@
-SASL_INCLUDES = @SASL_INCLUDES@
-INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) $(HESIOD_INCLUDES) $(SASL_INCLUDES)
+INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
MTSLIB = ../mts/libmts.a
-KRB4_LIBS = @KRB4_LIBS@
-SASL_LIBS = @SASL_LIBS@
-HESIOD_LIBS = @HESIOD_LIBS@
+NDBM_LIBS = @NDBM_LIBS@
LOCALLIBS = ../config/version.o ../config/config.o $(MTSLIB) ../sbr/libmh.a
-LINKLIBS = $(LOCALLIBS) $(KRB4_LIBS) $(SASL_LIBS) $(HESIOD_LIBS) $(LIBS)
+LINKLIBS = $(LOCALLIBS) $(LIBS)
LINT = @LINT@
LINTFLAGS = @LINTFLAGS@
TERMLIB = @TERMLIB@
LEXLIB = @LEXLIB@
-APOPLIB = @APOPLIB@
-POPLIB = @POPLIB@ $(APOPLIB)
+POPLIB = @POPLIB@
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
# commands to build
CMDS = ali anno burst comp dist flist folder forw install-mh mark mhbuild \
mhlist mhmail mhn mhparam mhpath mhshow mhstore msgchk \
- msh packf pick prompter refile repl rmf rmm scan send show \
+ msh new packf pick prompter refile repl rmf rmm scan send show \
sortm whatnow whom
## removed this from CMDS until I can fix it
mhbuildsbr.c mhcachesbr.c mhfree.c mhl.c mhlist.c mhlistsbr.c \
mhlsbr.c mhmail.c mhmisc.c mhn.c mhoutsbr.c mhparam.c mhparse.c \
mhpath.c mhshow.c mhshowsbr.c mhstore.c mhstoresbr.c mhtest.c \
- msgchk.c msh.c mshcmds.c packf.c pick.c picksbr.c popi.c popsbr.c \
+ msgchk.c msh.c mshcmds.c new.c packf.c pick.c picksbr.c popsbr.c \
post.c prompter.c rcvdist.c rcvpack.c rcvstore.c rcvtty.c \
refile.c repl.c replsbr.c rmf.c rmm.c scan.c scansbr.c send.c \
sendsbr.c show.c slocal.c sortm.c spost.c termsbr.c viamail.c \
mark: mark.o $(LOCALLIBS)
$(LINK) mark.o $(LINKLIBS)
-mhbuild: mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS)
- $(LINK) mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o ftpsbr.o md5.o $(LINKLIBS) $(TERMLIB)
+mhbuild: mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o ftpsbr.o termsbr.o md5.o $(LOCALLIBS)
+ $(LINK) mhbuild.o mhbuildsbr.o mhcachesbr.o mhlistsbr.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o ftpsbr.o md5.o $(LINKLIBS) $(TERMLIB)
mhl: mhl.o mhlsbr.o termsbr.o $(LOCALLIBS)
$(LINK) mhl.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
msh: msh.o mshcmds.o vmhsbr.o picksbr.o scansbr.o dropsbr.o mhlsbr.o termsbr.o $(LOCALLIBS)
$(LINK) msh.o mshcmds.o vmhsbr.o picksbr.o scansbr.o dropsbr.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
+new: new.o $(LOCALLIBS)
+ $(LINK) new.o $(LINKLIBS)
+
packf: packf.o dropsbr.o $(LOCALLIBS)
$(LINK) packf.o dropsbr.o $(LINKLIBS)
$(LINK) show.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
slocal: slocal.o aliasbr.o dropsbr.o $(LOCALLIBS)
- $(LINK) slocal.o aliasbr.o dropsbr.o $(LINKLIBS)
+ $(LINK) slocal.o aliasbr.o dropsbr.o $(NDBM_LIBS) $(LINKLIBS)
sortm: sortm.o $(LOCALLIBS)
$(LINK) sortm.o $(LINKLIBS)
# install commands
install-cmds:
- $(top_srcdir)/mkinstalldirs $(bindir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
for cmd in $(CMDS); do \
- $(INSTALL_PROGRAM) $$cmd $(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \
done
# install links
install-lcmds:
- rm -f $(bindir)/flists
- rm -f $(bindir)/folders
- rm -f $(bindir)/prev
- rm -f $(bindir)/next
- rm -f $(libdir)/install-mh
- $(LN) $(bindir)/flist $(bindir)/flists
- $(LN) $(bindir)/folder $(bindir)/folders
- $(LN) $(bindir)/show $(bindir)/prev
- $(LN) $(bindir)/show $(bindir)/next
- $(LN) $(bindir)/install-mh $(libdir)/install-mh
+ rm -f $(DESTDIR)$(bindir)/flists
+ rm -f $(DESTDIR)$(bindir)/folders
+ rm -f $(DESTDIR)$(bindir)/fnext
+ rm -f $(DESTDIR)$(bindir)/fprev
+ rm -f $(DESTDIR)$(bindir)/unseen
+ rm -f $(DESTDIR)$(bindir)/prev
+ rm -f $(DESTDIR)$(bindir)/next
+ rm -f $(DESTDIR)$(libdir)/install-mh
+ $(LN) $(DESTDIR)$(bindir)/flist $(DESTDIR)$(bindir)/flists
+ $(LN) $(DESTDIR)$(bindir)/folder $(DESTDIR)$(bindir)/folders
+ $(LN) $(DESTDIR)$(bindir)/new $(DESTDIR)$(bindir)/fnext
+ $(LN) $(DESTDIR)$(bindir)/new $(DESTDIR)$(bindir)/fprev
+ $(LN) $(DESTDIR)$(bindir)/new $(DESTDIR)$(bindir)/unseen
+ $(LN) $(DESTDIR)$(bindir)/show $(DESTDIR)$(bindir)/prev
+ $(LN) $(DESTDIR)$(bindir)/show $(DESTDIR)$(bindir)/next
# install misc support binaries
install-misc:
- $(top_srcdir)/mkinstalldirs $(libdir)
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
for misc in $(MISC); do \
- $(INSTALL_PROGRAM) $$misc $(libdir)/$$misc; \
+ $(INSTALL_PROGRAM) $$misc $(DESTDIR)$(libdir)/$$misc; \
done
# install commands with special installation needs (thus no $(SCMDS) use here)
install-scmds:
if test x$(SETGID_MAIL) != x; then \
- $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) -g $(MAIL_SPOOL_GRP) -m 2755 inc $(DESTDIR)$(bindir)/$$cmd; \
else \
- $(INSTALL_PROGRAM) inc $(bindir)/$$cmd; \
+ $(INSTALL_PROGRAM) inc $(DESTDIR)$(bindir)/$$cmd; \
fi
uninstall:
for cmd in $(CMDS); do \
- rm -f $(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd; \
done
for lcmd in $(LCMDS); do \
- rm -f $(bindir)/$$lcmd; \
+ rm -f $(DESTDIR)$(bindir)/$$lcmd; \
done
for misc in $(MISC); do \
- rm -f $(libdir)/$$misc; \
+ rm -f $(DESTDIR)$(libdir)/$$misc; \
done
for cmd in $(SCMDS); do \
- rm -f $(bindir)/$$cmd; \
+ rm -f $(DESTDIR)$(bindir)/$$cmd; \
done
# ========== DEPENDENCIES FOR CLEANUP ==========
subdir = uip
Makefile: Makefile.in ../config.status
- cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
+ cd .. && ./config.status $(subdir)/$@
distdir = ../`cat ../distname`/$(subdir)
nmhdist: $(DIST)