1955eb5e1SGarrett D'Amore# 2955eb5e1SGarrett D'Amore# CDDL HEADER START 3955eb5e1SGarrett D'Amore# 4955eb5e1SGarrett D'Amore# The contents of this file are subject to the terms of the 5955eb5e1SGarrett D'Amore# Common Development and Distribution License (the "License"). 6955eb5e1SGarrett D'Amore# You may not use this file except in compliance with the License. 7955eb5e1SGarrett D'Amore# 8955eb5e1SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9955eb5e1SGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10955eb5e1SGarrett D'Amore# See the License for the specific language governing permissions 11955eb5e1SGarrett D'Amore# and limitations under the License. 12955eb5e1SGarrett D'Amore# 13955eb5e1SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14955eb5e1SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15955eb5e1SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16955eb5e1SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17955eb5e1SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18955eb5e1SGarrett D'Amore# 19955eb5e1SGarrett D'Amore# CDDL HEADER END 20955eb5e1SGarrett D'Amore# 21955eb5e1SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22955eb5e1SGarrett D'Amore# Use is subject to license terms. 23955eb5e1SGarrett D'Amore# 24955eb5e1SGarrett D'Amore 25955eb5e1SGarrett D'Amore# cmd/sendmail/aux/Makefile 26955eb5e1SGarrett D'Amore# 27955eb5e1SGarrett D'Amoreinclude ../../Makefile.cmd 28955eb5e1SGarrett D'Amoreinclude ../Makefile.cmd 29955eb5e1SGarrett D'Amore 30955eb5e1SGarrett D'AmorePROG= mailstats mconnect vacation mailcompat praliases 31955eb5e1SGarrett D'Amore 32955eb5e1SGarrett D'AmoreLIBPROG= mail.local smrsh 33955eb5e1SGarrett D'Amore 34955eb5e1SGarrett D'AmoreUSRSBINPROG= etrn makemap editmap 35955eb5e1SGarrett D'Amore 36955eb5e1SGarrett D'AmoreLIBSMTPSMPROG= mailq 37955eb5e1SGarrett D'Amore 38955eb5e1SGarrett D'Amore# $(PROG) by default 39955eb5e1SGarrett D'AmoreCLOBBERFILES= $(LIBPROG) $(USRSBINPROG) $(LIBSMTPSMPROG) 40955eb5e1SGarrett D'Amore 41955eb5e1SGarrett D'AmoreOBJS= $(PROG:%=%.o) 42955eb5e1SGarrett D'Amore 43955eb5e1SGarrett D'Amore.PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG) 44955eb5e1SGarrett D'Amore 45955eb5e1SGarrett D'AmoreSRCS= $(PROG:%=%.c) 46955eb5e1SGarrett D'Amore 47955eb5e1SGarrett D'Amoreeditmap := LDLIBS += -lldap 48955eb5e1SGarrett D'Amoremail.local := LDLIBS += -lsocket -lnsl -lmail -lldap 49955eb5e1SGarrett D'Amoremailq := LDLIBS += -lsecdb 50955eb5e1SGarrett D'Amoremailstats := LDLIBS += -lldap 51955eb5e1SGarrett D'Amoremakemap := LDLIBS += -lldap 52955eb5e1SGarrett D'Amoremconnect := LDLIBS += -lsocket -lnsl 53955eb5e1SGarrett D'Amorepraliases := LDLIBS += -lldap 54955eb5e1SGarrett D'Amoresmrsh := LDLIBS += -lldap 55955eb5e1SGarrett D'Amorevacation := LDLIBS += -lldap 56955eb5e1SGarrett D'Amore$(ROOTLIBSMTPSM)/mailq := FILEMODE = 4555 57955eb5e1SGarrett D'Amore 58955eb5e1SGarrett D'AmoreINCPATH= -I../src -I../db -I../include 59955eb5e1SGarrett D'Amore 60955eb5e1SGarrett D'AmoreENVDEF= -DNOT_SENDMAIL 61955eb5e1SGarrett D'AmoreSUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH 62955eb5e1SGarrett D'AmoreDBMDEF= -DNDBM -DNEWDB 63955eb5e1SGarrett D'Amore 64955eb5e1SGarrett D'AmoreCPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm) 65955eb5e1SGarrett D'Amore 66955eb5e1SGarrett D'Amore# Nearly every support application provides sleep(). This isn't incompatible 67955eb5e1SGarrett D'Amore# with libc, but can be confined to the applications themselves. 68*85f4cb87SRichard LoweLDFLAGS += $(MAPFILE.NGB:%=-Wl,-M%) 69955eb5e1SGarrett D'Amore 70955eb5e1SGarrett D'Amore.KEEP_STATE: 71955eb5e1SGarrett D'Amore 72955eb5e1SGarrett D'Amoreall: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG) 73955eb5e1SGarrett D'Amore 74955eb5e1SGarrett D'Amoreconvtime.o: ../src/convtime.c 75955eb5e1SGarrett D'Amore $(COMPILE.c) ../src/convtime.c 76955eb5e1SGarrett D'Amore $(POST_PROCESS_O) 77955eb5e1SGarrett D'Amore 78955eb5e1SGarrett D'Amorevacation: vacation.o convtime.o rfc2047.o ../libsm/libsm.a 79955eb5e1SGarrett D'Amore $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \ 80955eb5e1SGarrett D'Amore ../libsm/libsm.a 81955eb5e1SGarrett D'Amore $(POST_PROCESS) 82955eb5e1SGarrett D'Amore 83955eb5e1SGarrett D'Amoremail.local: mail.local.o ../libsmutil/libsmutil.a ../libsm/libsm.a 84955eb5e1SGarrett D'Amore $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \ 85955eb5e1SGarrett D'Amore ../libsm/libsm.a 86955eb5e1SGarrett D'Amore $(POST_PROCESS) 87955eb5e1SGarrett D'Amore 88955eb5e1SGarrett D'Amoresmrsh: smrsh.o ../libsm/libsm.a 89955eb5e1SGarrett D'Amore $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a 90955eb5e1SGarrett D'Amore $(POST_PROCESS) 91955eb5e1SGarrett D'Amore 92955eb5e1SGarrett D'Amoremakemap: makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \ 93955eb5e1SGarrett D'Amore ../db/libdb.a ../libsm/libsm.a 94955eb5e1SGarrett D'Amore $(LINK.c) makemap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \ 95955eb5e1SGarrett D'Amore ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a 96955eb5e1SGarrett D'Amore $(POST_PROCESS) 97955eb5e1SGarrett D'Amore 98955eb5e1SGarrett D'Amoreeditmap: editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \ 99955eb5e1SGarrett D'Amore ../db/libdb.a ../libsm/libsm.a 100955eb5e1SGarrett D'Amore $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \ 101955eb5e1SGarrett D'Amore ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a 102955eb5e1SGarrett D'Amore $(POST_PROCESS) 103955eb5e1SGarrett D'Amore 104955eb5e1SGarrett D'Amorepraliases: praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \ 105955eb5e1SGarrett D'Amore ../libsm/libsm.a 106955eb5e1SGarrett D'Amore $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \ 107955eb5e1SGarrett D'Amore ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a 108955eb5e1SGarrett D'Amore $(POST_PROCESS) 109955eb5e1SGarrett D'Amore 110955eb5e1SGarrett D'Amoremailstats: mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a 111955eb5e1SGarrett D'Amore $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \ 112955eb5e1SGarrett D'Amore ../libsm/libsm.a 113955eb5e1SGarrett D'Amore $(POST_PROCESS) 114955eb5e1SGarrett D'Amore 115955eb5e1SGarrett D'Amoreinstall: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \ 116955eb5e1SGarrett D'Amore $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \ 117955eb5e1SGarrett D'Amore $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap 118955eb5e1SGarrett D'Amore 119955eb5e1SGarrett D'Amoreclean: 120955eb5e1SGarrett D'Amore $(RM) $(OBJS) *.o 121955eb5e1SGarrett D'Amore 122955eb5e1SGarrett D'Amoreinclude ../../Makefile.targ 123