Print this page
10080 smatch Makefile changes for usr/src/cmd


   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 #
  23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>

  25 #
  26 
  27 SYNCPROG=       syncinit syncloop syncstat
  28 
  29 PROG=           6to4relay arp if_mpadm \
  30                 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
  31                 in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
  32                 ndd ndp $(SYNCPROG)
  33 
  34 MANIFEST=       rarp.xml telnet.xml comsat.xml finger.xml \
  35                 login.xml shell.xml rexec.xml socket-filter-kssl.xml
  36 SVCMETHOD=      svc-sockfilter
  37 
  38 ROOTFS_PROG=    hostconfig route soconfig
  39 SBINLINKS=      hostconfig route
  40 
  41 RPCSVCPROG=     hostconfig
  42 AUDITPROG=      in.rexecd in.rlogind in.rshd in.telnetd
  43 PAMPROG=        in.rexecd in.rlogind in.rshd in.telnetd
  44 SOCKETPROG=     6to4relay arp hostconfig if_mpadm in.comsat \


  92 ROOTMANIFESTDIR=        $(ROOTSVCNETWORK)
  93 $(ROOTMANIFEST)         := FILEMODE= 444
  94 include ../Makefile.cmd-inet
  95 
  96 ROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
  97 ROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
  98 
  99 COMMONOBJS=     addr_match.o kcmd.o store_forw_creds.o
 100 COMMONSRCS=     $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
 101 SRCS+=          $(COMMONSRCS)
 102 
 103 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 104 CERRWARN += -_gcc=-Wno-uninitialized
 105 CERRWARN += -_gcc=-Wno-unused-variable
 106 CERRWARN += -_gcc=-Wno-unused-function
 107 CERRWARN += -_gcc=-Wno-parentheses
 108 CERRWARN += -_gcc=-Wno-char-subscripts
 109 CERRWARN += -_gcc=-Wno-extra
 110 CERRWARN += -_gcc=-Wno-address
 111 



 112 #
 113 # Message catalog
 114 #
 115 POFILES=        6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
 116                 soconfig.po
 117 POFILE=         usr.sbin.po
 118 
 119 all:=           TARGET= all
 120 install:=       TARGET= install
 121 clean:=         TARGET= clean
 122 clobber:=       TARGET= clobber
 123 lint:=          TARGET= lint
 124 _msg:=          TARGET= _msg
 125 
 126 CLOBBERFILES += $(ROOTFS_PROG) $(PROG)
 127 CLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS) \
 128                 $(K5TELNETOBJS)
 129 
 130 CPPFLAGS +=     -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
 131 




   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 #
  23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25 # Copyright (c) 2018, Joyent, Inc.
  26 #
  27 
  28 SYNCPROG=       syncinit syncloop syncstat
  29 
  30 PROG=           6to4relay arp if_mpadm \
  31                 in.comsat in.fingerd in.rarpd in.rexecd in.rlogind \
  32                 in.rshd in.rwhod in.telnetd in.tftpd ipaddrsel \
  33                 ndd ndp $(SYNCPROG)
  34 
  35 MANIFEST=       rarp.xml telnet.xml comsat.xml finger.xml \
  36                 login.xml shell.xml rexec.xml socket-filter-kssl.xml
  37 SVCMETHOD=      svc-sockfilter
  38 
  39 ROOTFS_PROG=    hostconfig route soconfig
  40 SBINLINKS=      hostconfig route
  41 
  42 RPCSVCPROG=     hostconfig
  43 AUDITPROG=      in.rexecd in.rlogind in.rshd in.telnetd
  44 PAMPROG=        in.rexecd in.rlogind in.rshd in.telnetd
  45 SOCKETPROG=     6to4relay arp hostconfig if_mpadm in.comsat \


  93 ROOTMANIFESTDIR=        $(ROOTSVCNETWORK)
  94 $(ROOTMANIFEST)         := FILEMODE= 444
  95 include ../Makefile.cmd-inet
  96 
  97 ROOTSBINPROG = $(ROOTFS_PROG:%=$(ROOTSBIN)/%)
  98 ROOTUSRSBINLINKS = $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
  99 
 100 COMMONOBJS=     addr_match.o kcmd.o store_forw_creds.o
 101 COMMONSRCS=     $(COMMONOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
 102 SRCS+=          $(COMMONSRCS)
 103 
 104 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 105 CERRWARN += -_gcc=-Wno-uninitialized
 106 CERRWARN += -_gcc=-Wno-unused-variable
 107 CERRWARN += -_gcc=-Wno-unused-function
 108 CERRWARN += -_gcc=-Wno-parentheses
 109 CERRWARN += -_gcc=-Wno-char-subscripts
 110 CERRWARN += -_gcc=-Wno-extra
 111 CERRWARN += -_gcc=-Wno-address
 112 
 113 # "missing type for func"
 114 SMATCH=off
 115 
 116 #
 117 # Message catalog
 118 #
 119 POFILES=        6to4relay.po if_mpadm.po in.comsat.po ipaddrsel.po route.po \
 120                 soconfig.po
 121 POFILE=         usr.sbin.po
 122 
 123 all:=           TARGET= all
 124 install:=       TARGET= install
 125 clean:=         TARGET= clean
 126 clobber:=       TARGET= clobber
 127 lint:=          TARGET= lint
 128 _msg:=          TARGET= _msg
 129 
 130 CLOBBERFILES += $(ROOTFS_PROG) $(PROG)
 131 CLEANFILES += $(COMMONOBJS) $(K5RLOGINOBJS) $(K5RSHDOBJS) $(TFTPDOBJS) \
 132                 $(K5TELNETOBJS)
 133 
 134 CPPFLAGS +=     -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I
 135