Print this page
5166 sendmail package should be replaceable


  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 
  25 # cmd/sendmail/aux/Makefile
  26 #
  27 include         ../../Makefile.cmd
  28 include         ../Makefile.cmd
  29 
  30 PROG=           mailstats mconnect vacation mailcompat praliases mailq
  31 
  32 LIBPROG=        mail.local smrsh
  33 
  34 USRSBINPROG=    etrn makemap editmap
  35 


  36 # $(PROG) by default
  37 CLOBBERFILES=   $(LIBPROG) $(USRSBINPROG)
  38 
  39 OBJS=           $(PROG:%=%.o)
  40 
  41 .PARALLEL:      $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
  42 
  43 SRCS=           $(PROG:%=%.c)
  44 
  45 editmap :=      LDLIBS += -lldap
  46 mail.local :=   LDLIBS += -lsocket -lnsl -lmail -lldap
  47 mailq :=        LDLIBS += -lsecdb
  48 mailstats :=    LDLIBS += -lldap
  49 makemap :=      LDLIBS += -lldap
  50 mconnect :=     LDLIBS += -lsocket -lnsl
  51 praliases :=    LDLIBS += -lldap
  52 smrsh :=        LDLIBS += -lldap
  53 vacation :=     LDLIBS += -lldap
  54 $(ROOTBIN)/mailq :=     FILEMODE = 4555
  55 
  56 INCPATH=        -I../src -I../db -I../include
  57 
  58 ENVDEF=         -DNOT_SENDMAIL
  59 SUNENVDEF=      -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
  60 DBMDEF=         -DNDBM -DNEWDB
  61 
  62 CPPFLAGS =      $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
  63 
  64 # Nearly every support application provides sleep().  This isn't incompatible
  65 # with libc, but can be confined to the applications themselves.
  66 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  67 
  68 .KEEP_STATE:
  69 
  70 all:            $(PROG) $(LIBPROG) $(USRSBINPROG)
  71 
  72 convtime.o:     ../src/convtime.c
  73         $(COMPILE.c) ../src/convtime.c
  74         $(POST_PROCESS_O)
  75 
  76 vacation:       vacation.o convtime.o rfc2047.o ../libsm/libsm.a
  77         $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \
  78                 ../libsm/libsm.a
  79         $(POST_PROCESS)
  80 
  81 mail.local:     mail.local.o ../libsmutil/libsmutil.a ../libsm/libsm.a
  82         $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
  83                 ../libsm/libsm.a
  84         $(POST_PROCESS)
  85 
  86 smrsh:  smrsh.o ../libsm/libsm.a
  87         $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a
  88         $(POST_PROCESS)
  89 
  90 makemap:        makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \


  94         $(POST_PROCESS)
  95 
  96 editmap:        editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
  97                         ../db/libdb.a ../libsm/libsm.a
  98         $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
  99                 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
 100         $(POST_PROCESS)
 101 
 102 praliases:      praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
 103                         ../libsm/libsm.a
 104         $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
 105                 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
 106         $(POST_PROCESS)
 107 
 108 mailstats:      mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a
 109         $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
 110                 ../libsm/libsm.a
 111         $(POST_PROCESS)
 112 
 113 install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
 114         $(ROOTUSRSBIN)/makemap $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap

 115 
 116 clean:
 117         $(RM) $(OBJS) *.o
 118 
 119 lint:           lint_PROG
 120 
 121 
 122 include ../../Makefile.targ


  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 
  25 # cmd/sendmail/aux/Makefile
  26 #
  27 include         ../../Makefile.cmd
  28 include         ../Makefile.cmd
  29 
  30 PROG=           mailstats mconnect vacation mailcompat praliases
  31 
  32 LIBPROG=        mail.local smrsh
  33 
  34 USRSBINPROG=    etrn makemap editmap
  35 
  36 LIBSMTPSMPROG= mailq
  37 
  38 # $(PROG) by default
  39 CLOBBERFILES=   $(LIBPROG) $(USRSBINPROG)
  40 
  41 OBJS=           $(PROG:%=%.o)
  42 
  43 .PARALLEL:      $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
  44 
  45 SRCS=           $(PROG:%=%.c)
  46 
  47 editmap :=      LDLIBS += -lldap
  48 mail.local :=   LDLIBS += -lsocket -lnsl -lmail -lldap
  49 mailq :=        LDLIBS += -lsecdb
  50 mailstats :=    LDLIBS += -lldap
  51 makemap :=      LDLIBS += -lldap
  52 mconnect :=     LDLIBS += -lsocket -lnsl
  53 praliases :=    LDLIBS += -lldap
  54 smrsh :=        LDLIBS += -lldap
  55 vacation :=     LDLIBS += -lldap
  56 $(ROOTLIBSMTPSM)/mailq :=       FILEMODE = 4555
  57 
  58 INCPATH=        -I../src -I../db -I../include
  59 
  60 ENVDEF=         -DNOT_SENDMAIL
  61 SUNENVDEF=      -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
  62 DBMDEF=         -DNDBM -DNEWDB
  63 
  64 CPPFLAGS =      $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
  65 
  66 # Nearly every support application provides sleep().  This isn't incompatible
  67 # with libc, but can be confined to the applications themselves.
  68 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  69 
  70 .KEEP_STATE:
  71 
  72 all:            $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
  73 
  74 convtime.o:     ../src/convtime.c
  75         $(COMPILE.c) ../src/convtime.c
  76         $(POST_PROCESS_O)
  77 
  78 vacation:       vacation.o convtime.o rfc2047.o ../libsm/libsm.a
  79         $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \
  80                 ../libsm/libsm.a
  81         $(POST_PROCESS)
  82 
  83 mail.local:     mail.local.o ../libsmutil/libsmutil.a ../libsm/libsm.a
  84         $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
  85                 ../libsm/libsm.a
  86         $(POST_PROCESS)
  87 
  88 smrsh:  smrsh.o ../libsm/libsm.a
  89         $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a
  90         $(POST_PROCESS)
  91 
  92 makemap:        makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \


  96         $(POST_PROCESS)
  97 
  98 editmap:        editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
  99                         ../db/libdb.a ../libsm/libsm.a
 100         $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
 101                 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
 102         $(POST_PROCESS)
 103 
 104 praliases:      praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
 105                         ../libsm/libsm.a
 106         $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
 107                 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
 108         $(POST_PROCESS)
 109 
 110 mailstats:      mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a
 111         $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
 112                 ../libsm/libsm.a
 113         $(POST_PROCESS)
 114 
 115 install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
 116         $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
 117         $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
 118 
 119 clean:
 120         $(RM) $(OBJS) *.o
 121 
 122 lint:           lint_PROG
 123 
 124 
 125 include ../../Makefile.targ