Print this page
12312 fix unused lib dependencies


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  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 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  27 
  28 DEFAULTFILES =  cron.dfl
  29 
  30 include         ../Makefile.cmd
  31 
  32 MANIFEST =      cron.xml
  33 
  34 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
  35 ROOTMETHOD =    $(ROOTLIBSVCMETHOD)/svc-cron
  36 
  37 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
  38 CERRWARN +=     -_gcc=-Wno-parentheses
  39 CERRWARN +=     -_gcc=-Wno-unused-label
  40 CERRWARN +=     $(CNOWARN_UNINIT)
  41 CERRWARN +=     -_gcc=-Wno-unused-variable
  42 CERRWARN +=     -_gcc=-Wno-unused-value
  43 
  44 # not linted
  45 SMATCH=off


 119                 $(COMMONOBJS)
 120 OBJS =          $(NOBJS) $(XPG4COMMONOBJS) $(XPG4ATOBJS) $(XPG4CTOBJS) \
 121                 $(XPG6COMMONOBJS) $(XPG6CTOBJS) $(GETRESPOBJ)
 122 
 123 SRCS =          $(NOBJS:%.o=%.c) $(GETRESPSRC)
 124 
 125 CLOBBERFILES += $(SCRIPT) $(XPG4SCRIPT)
 126 
 127 $(ROOTLIBCRON) :=               SYMLNKDEST = ../../etc/cron.d
 128 $(ROOTETC)/cron :=              SYMLNKDEST = ../usr/sbin/cron
 129 
 130 $(ROOTBIN)/at :=                FILEMODE = 04755
 131 $(ROOTXPG4BIN)/at :=            FILEMODE = 04755
 132 $(ROOTBIN)/atrm :=              FILEMODE = 04755
 133 $(ROOTBIN)/atq :=               FILEMODE = 04755
 134 $(ROOTBIN)/crontab :=           FILEMODE = 04555
 135 $(ROOTXPG6BIN)/crontab :=       FILEMODE = 04555
 136 $(ROOTXPG4BIN)/crontab :=       FILEMODE = 04555
 137 $(ROOTUSRSBIN)/cron :=          FILEMODE = 0555
 138 
 139 LDLIBS +=       -lbsm
 140 
 141 at :=           LDLIBS += -lproject -lsecdb
 142 at.xpg4 :=      LDLIBS += -lproject -lsecdb
 143 atq :=          LDLIBS += -lsecdb
 144 atrm :=         LDLIBS += -lsecdb
 145 cron :=         LDLIBS += -lpam -lproject -lcontract -lzoneinfo -lcustr
 146 crontab :=      LDLIBS += -lsecdb -lpam -lzoneinfo -lcustr
 147 crontab.xpg6 := LDLIBS += -lsecdb -lpam -lzoneinfo -lcustr
 148 crontab.xpg4 := LDLIBS += -lsecdb -lpam -lzoneinfo -lcustr
 149 parsetest :=    LDLIBS += -lcustr
 150 
 151 $(XPG4) :=      CFLAGS += -DXPG4
 152 $(XPG6) :=      CFLAGS += -DXPG6
 153 parsetest :=    CFLAGS += -DPARSETEST
 154 
 155 $(ROOTSVCSYSTEM)/cron.xml := FILEMODE = 0444
 156 $(ROOTLIBSVCMETHOD)/svc-cron := FILEMODE = 0555
 157 
 158 
 159 .KEEP_STATE:
 160 
 161 all :           $(PROG) $(XPG4) $(XPG6) $(SCRIPT) $(XPG4SCRIPT) $(FILES) \
 162                 $(PARSETEST)
 163 
 164 install :       all $(ROOTPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK) \
 165                 $(ROOTMANIFEST) $(ROOTMETHOD)
 166 
 167 $(PROG) $(PARSETEST):   $$(POBJS)
 168                 $(LINK.c) $(POBJS) -o $@ $(LDLIBS)




   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  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 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2020 Joyent, Inc.
  26 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  27 
  28 DEFAULTFILES =  cron.dfl
  29 
  30 include         ../Makefile.cmd
  31 
  32 MANIFEST =      cron.xml
  33 
  34 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
  35 ROOTMETHOD =    $(ROOTLIBSVCMETHOD)/svc-cron
  36 
  37 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
  38 CERRWARN +=     -_gcc=-Wno-parentheses
  39 CERRWARN +=     -_gcc=-Wno-unused-label
  40 CERRWARN +=     $(CNOWARN_UNINIT)
  41 CERRWARN +=     -_gcc=-Wno-unused-variable
  42 CERRWARN +=     -_gcc=-Wno-unused-value
  43 
  44 # not linted
  45 SMATCH=off


 119                 $(COMMONOBJS)
 120 OBJS =          $(NOBJS) $(XPG4COMMONOBJS) $(XPG4ATOBJS) $(XPG4CTOBJS) \
 121                 $(XPG6COMMONOBJS) $(XPG6CTOBJS) $(GETRESPOBJ)
 122 
 123 SRCS =          $(NOBJS:%.o=%.c) $(GETRESPSRC)
 124 
 125 CLOBBERFILES += $(SCRIPT) $(XPG4SCRIPT)
 126 
 127 $(ROOTLIBCRON) :=               SYMLNKDEST = ../../etc/cron.d
 128 $(ROOTETC)/cron :=              SYMLNKDEST = ../usr/sbin/cron
 129 
 130 $(ROOTBIN)/at :=                FILEMODE = 04755
 131 $(ROOTXPG4BIN)/at :=            FILEMODE = 04755
 132 $(ROOTBIN)/atrm :=              FILEMODE = 04755
 133 $(ROOTBIN)/atq :=               FILEMODE = 04755
 134 $(ROOTBIN)/crontab :=           FILEMODE = 04555
 135 $(ROOTXPG6BIN)/crontab :=       FILEMODE = 04555
 136 $(ROOTXPG4BIN)/crontab :=       FILEMODE = 04555
 137 $(ROOTUSRSBIN)/cron :=          FILEMODE = 0555
 138 
 139 at :=           LDLIBS += -lbsm -lproject -lsecdb
 140 at.xpg4 :=      LDLIBS += -lbsm -lproject -lsecdb
 141 atq :=          LDLIBS += -lbsm -lsecdb
 142 atrm :=         LDLIBS += -lbsm -lsecdb
 143 cron :=         LDLIBS += -lbsm -lpam -lproject -lcontract -lzoneinfo -lcustr
 144 crontab :=      LDLIBS += -lbsm -lsecdb -lpam -lzoneinfo -lcustr
 145 crontab.xpg6 := LDLIBS += -lbsm -lsecdb -lpam -lzoneinfo -lcustr
 146 crontab.xpg4 := LDLIBS += -lbsm -lsecdb -lpam -lzoneinfo -lcustr


 147 parsetest :=    LDLIBS += -lcustr
 148 
 149 $(XPG4) :=      CFLAGS += -DXPG4
 150 $(XPG6) :=      CFLAGS += -DXPG6
 151 parsetest :=    CFLAGS += -DPARSETEST
 152 
 153 $(ROOTSVCSYSTEM)/cron.xml := FILEMODE = 0444
 154 $(ROOTLIBSVCMETHOD)/svc-cron := FILEMODE = 0555
 155 
 156 
 157 .KEEP_STATE:
 158 
 159 all :           $(PROG) $(XPG4) $(XPG6) $(SCRIPT) $(XPG4SCRIPT) $(FILES) \
 160                 $(PARSETEST)
 161 
 162 install :       all $(ROOTPROG) $(ROOTETCDEFAULTFILES) $(ROOTSYMLINK) \
 163                 $(ROOTMANIFEST) $(ROOTMETHOD)
 164 
 165 $(PROG) $(PARSETEST):   $$(POBJS)
 166                 $(LINK.c) $(POBJS) -o $@ $(LDLIBS)