Makefile revision 2
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A# Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A# cmd/sendmail/aux/Makefile
1N/A#
1N/Ainclude ../../Makefile.cmd
1N/Ainclude ../Makefile.cmd
1N/A
1N/APROG= mailstats mconnect vacation mailcompat praliases mailq
1N/A
1N/ALIBPROG= mail.local smrsh
1N/A
1N/AUSRSBINPROG= etrn makemap editmap
1N/A
1N/A# $(PROG) by default
1N/ACLOBBERFILES= $(LIBPROG) $(USRSBINPROG)
1N/A
1N/AOBJS= $(PROG:%=%.o)
1N/A
1N/A.PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
1N/A
1N/ASRCS= $(PROG:%=%.c)
1N/A
1N/Aeditmap := LDLIBS += -lldap
1N/Amail.local := LDLIBS += -lsocket -lnsl -lmail -lldap
1N/Amailstats := LDLIBS += -lldap
1N/Amakemap := LDLIBS += -lldap
1N/Amconnect := LDLIBS += -lsocket -lnsl
1N/Apraliases := LDLIBS += -lldap
1N/Asmrsh := LDLIBS += -lldap
1N/Avacation := LDLIBS += -lldap
1N/A$(ROOTBIN)/mailq := FILEMODE = 4555
1N/A
1N/AINCPATH= -I../src -I../db -I../include
1N/A
1N/AENVDEF= -DNOT_SENDMAIL
1N/ASUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
1N/ADBMDEF= -DNDBM -DNEWDB
1N/A
1N/ACPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
1N/A
1N/A# Nearly every support application provides sleep(). This isn't incompatible
1N/A# with libc, but can be confined to the applications themselves.
1N/ALDFLAGS += $(MAPFILE.NGB:%=-M%)
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: $(PROG) $(LIBPROG) $(USRSBINPROG)
1N/A
1N/Aconvtime.o: ../src/convtime.c
1N/A $(COMPILE.c) ../src/convtime.c
1N/A $(POST_PROCESS_O)
1N/A
1N/Avacation: vacation.o convtime.o rfc2047.o ../libsm/libsm.a
1N/A $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \
1N/A ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
2N/Amail.local: mail.local.o ../libsm/libsm.a
2N/A $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Asmrsh: smrsh.o ../libsm/libsm.a
1N/A $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Amakemap: makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
1N/A ../db/libdb.a ../libsm/libsm.a
1N/A $(LINK.c) makemap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
1N/A ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Aeditmap: editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
1N/A ../db/libdb.a ../libsm/libsm.a
1N/A $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
1N/A ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Apraliases: praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
1N/A ../libsm/libsm.a
1N/A $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
1N/A ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Amailstats: mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a
1N/A $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
1N/A ../libsm/libsm.a
1N/A $(POST_PROCESS)
1N/A
1N/Ainstall: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
1N/A $(ROOTUSRSBIN)/makemap $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
1N/A
1N/Aclean:
1N/A $(RM) $(OBJS) *.o
1N/A
1N/Alint: lint_PROG
1N/A
1N/A
1N/Ainclude ../../Makefile.targ