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 TESTPROG = gssdtest
  27 
  28 OUTPUT_OPTION = -I.
  29 
  30 PROG= gssd
  31 
  32 MANIFEST=       gss.xml
  33 
  34 GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
  35 GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
  36                 gssd_handle.o
  37 
  38 GD_OBJS = gssd_svc.o
  39 GC_OBJS = gssd_clnt.o
  40 G_OBJS  = gssd_xdr.o 
  41 GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)


  58 
  59 TEXT_DOMAIN = SUNW_OST_NETRPC
  60 POFILE = $(PROG).po
  61 POFILES = generic.po
  62 
  63 #
  64 # Override $ROOTLIB
  65 #
  66 ROOTLIB=        $(ROOT)/usr/lib/gss
  67 
  68 DIRS=   $(ROOTLIB)
  69 
  70 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
  71 COPTFLAG += $(XESS) #-I$(KINCDIR) 
  72 
  73 CERRWARN += -_gcc=-Wno-unused-variable
  74 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  75 CERRWARN += -_gcc=-Wno-parentheses
  76 CERRWARN += -_gcc=-Wno-uninitialized
  77 



  78 LDLIBS += -lgss -lnsl
  79 
  80 gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
  81 gssd := LDFLAGS += $(MAPFILES:%=-M%)
  82 
  83 $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
  84 
  85 .KEEP_STATE:
  86 
  87 all: $(PROG) $(TESTPROG)
  88 
  89 $(ROOTLIB):
  90         $(INS.dir)
  91 
  92 $(ROOTLIB)/%:   %
  93         $(INS.file)
  94 
  95 gssd:   $(GSSDOBJS) $$(MAPFILES)
  96         $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
  97         $(POST_PROCESS)




   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 TESTPROG = gssdtest
  28 
  29 OUTPUT_OPTION = -I.
  30 
  31 PROG= gssd
  32 
  33 MANIFEST=       gss.xml
  34 
  35 GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
  36 GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
  37                 gssd_handle.o
  38 
  39 GD_OBJS = gssd_svc.o
  40 GC_OBJS = gssd_clnt.o
  41 G_OBJS  = gssd_xdr.o 
  42 GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)


  59 
  60 TEXT_DOMAIN = SUNW_OST_NETRPC
  61 POFILE = $(PROG).po
  62 POFILES = generic.po
  63 
  64 #
  65 # Override $ROOTLIB
  66 #
  67 ROOTLIB=        $(ROOT)/usr/lib/gss
  68 
  69 DIRS=   $(ROOTLIB)
  70 
  71 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
  72 COPTFLAG += $(XESS) #-I$(KINCDIR) 
  73 
  74 CERRWARN += -_gcc=-Wno-unused-variable
  75 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  76 CERRWARN += -_gcc=-Wno-parentheses
  77 CERRWARN += -_gcc=-Wno-uninitialized
  78 
  79 # Suppress error: typedef locally defined but not used
  80 gssd_proc.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
  81 
  82 LDLIBS += -lgss -lnsl
  83 
  84 gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
  85 gssd := LDFLAGS += $(MAPFILES:%=-M%)
  86 
  87 $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
  88 
  89 .KEEP_STATE:
  90 
  91 all: $(PROG) $(TESTPROG)
  92 
  93 $(ROOTLIB):
  94         $(INS.dir)
  95 
  96 $(ROOTLIB)/%:   %
  97         $(INS.file)
  98 
  99 gssd:   $(GSSDOBJS) $$(MAPFILES)
 100         $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
 101         $(POST_PROCESS)