Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd


   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   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 
  26 NETYPPROG =     rpc.ypupdated
  27 PROG =          $(NETYPPROG)
  28 
  29 MANIFEST =      update.xml
  30 
  31 include ../../Makefile.cmd
  32 
  33 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
  34 
  35 #installed directories
  36 RPCSVC=         $(ROOT)/usr/include/rpcsvc
  37 NETSVC =        $(ROOTLIB)/netsvc
  38 NETYP =         $(NETSVC)/yp
  39 ROOTDIRS =      $(NETSVC) $(NETYP)
  40 
  41 # include library definitions
  42 LDLIBS +=       -lnsl
  43 
  44 # include path to yptol.h (for name of N2L mapping file)
  45 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
  46 
  47 INETYPPROG=             $(NETYPPROG:%=$(NETYP)/%)
  48 
  49 RPCYPUPDATEOBJ =        rpc.ypupdated.o openchild.o
  50 
  51 OBJS =                  $(RPCYPUPDATEOBJ)
  52 
  53 SRCS =                  $(OBJS:%.o=%.c)
  54 
  55 CERRWARN +=             -_gcc=-Wno-implicit-function-declaration
  56 CERRWARN +=             -_gcc=-Wno-unused-variable
  57 



  58 CLOBBERFILES += ypupdated_prot.h
  59 
  60 #conditional assignments
  61 $(INETSVC)   := FILEMODE=555
  62 
  63 #install rules
  64 
  65 .KEEP_STATE:
  66 
  67 all: $(PROG)
  68 
  69 ypupdated_prot.h: ypupdate_prot.x
  70         $(RM) ypupdated_prot.h; $(RPCGEN) -C -h ypupdate_prot.x -o ypupdated_prot.h
  71 
  72 $(RPCYPUPDATEOBJ): ypupdated_prot.h
  73 
  74 rpc.ypupdated: $(RPCYPUPDATEOBJ)
  75         $(LINK.c) -o $@ $(RPCYPUPDATEOBJ) $(LDLIBS)
  76         $(POST_PROCESS)
  77 




   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   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 2017 Gary Mills
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 NETYPPROG =     rpc.ypupdated
  28 PROG =          $(NETYPPROG)
  29 
  30 MANIFEST =      update.xml
  31 
  32 include ../../Makefile.cmd
  33 
  34 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
  35 
  36 #installed directories
  37 RPCSVC=         $(ROOT)/usr/include/rpcsvc
  38 NETSVC =        $(ROOTLIB)/netsvc
  39 NETYP =         $(NETSVC)/yp
  40 ROOTDIRS =      $(NETSVC) $(NETYP)
  41 
  42 # include library definitions
  43 LDLIBS +=       -lnsl
  44 
  45 # include path to yptol.h (for name of N2L mapping file)
  46 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
  47 
  48 INETYPPROG=             $(NETYPPROG:%=$(NETYP)/%)
  49 
  50 RPCYPUPDATEOBJ =        rpc.ypupdated.o openchild.o
  51 
  52 OBJS =                  $(RPCYPUPDATEOBJ)
  53 
  54 SRCS =                  $(OBJS:%.o=%.c)
  55 
  56 CERRWARN +=             -_gcc=-Wno-implicit-function-declaration
  57 CERRWARN +=             -_gcc=-Wno-unused-variable
  58 
  59 # Suppress error: typedef locally defined but not used
  60 rpc.ypupdated.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
  61 
  62 CLOBBERFILES += ypupdated_prot.h
  63 
  64 #conditional assignments
  65 $(INETSVC)   := FILEMODE=555
  66 
  67 #install rules
  68 
  69 .KEEP_STATE:
  70 
  71 all: $(PROG)
  72 
  73 ypupdated_prot.h: ypupdate_prot.x
  74         $(RM) ypupdated_prot.h; $(RPCGEN) -C -h ypupdate_prot.x -o ypupdated_prot.h
  75 
  76 $(RPCYPUPDATEOBJ): ypupdated_prot.h
  77 
  78 rpc.ypupdated: $(RPCYPUPDATEOBJ)
  79         $(LINK.c) -o $@ $(RPCYPUPDATEOBJ) $(LDLIBS)
  80         $(POST_PROCESS)
  81