Print this page
10079 smatch Makefile changes for usr/src/lib


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 #
  27 # This make file will build mech_dh.so.1. This shared object
  28 # contains all the functionality needed to support Diffie-Hellman GSS-API
  29 # mechanism. 
  30 #
  31 
  32 LIBRARY= mech_dh.a
  33 VERS = .1
  34 
  35 MECH =  context.o context_establish.o cred.o crypto.o dhmech.o \
  36         MICwrap.o name.o oid.o seq.o token.o support.o validate.o
  37 
  38 DERIVED_OBJS = xdr_token.o
  39 
  40 CRYPTO = md5.o
  41 
  42 OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
  43 
  44 # include library definitions
  45 include ../../../../Makefile.lib
  46 
  47 CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
  48 
  49 CERRWARN +=     -_gcc=-Wno-parentheses
  50 CERRWARN +=     -_gcc=-Wno-unused-variable
  51 CERRWARN +=     -_gcc=-Wno-uninitialized
  52 



  53 $(PICS) :=      CFLAGS += $(XFFLAG)
  54 $(PICS) :=      CCFLAGS += $(XFFLAG)
  55 $(PICS) :=      CFLAGS64 += $(XFFLAG)
  56 $(PICS) :=      CCFLAGS64 += $(XFFLAG)
  57 
  58 DYNFLAGS +=     $(ZIGNORE)
  59 
  60 LIBS = $(DYNLIB)
  61 LIBNAME = $(LIBRARY:%.a=%)
  62 
  63 MAPFILES =      ../mapfile-vers
  64 
  65 LDLIBS +=  -lgss -lnsl -lc 
  66 
  67 RPCGEN += -C
  68 SED = sed
  69 
  70 .KEEP_STATE:
  71 
  72 CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)




   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 #
  28 # This make file will build mech_dh.so.1. This shared object
  29 # contains all the functionality needed to support Diffie-Hellman GSS-API
  30 # mechanism. 
  31 #
  32 
  33 LIBRARY= mech_dh.a
  34 VERS = .1
  35 
  36 MECH =  context.o context_establish.o cred.o crypto.o dhmech.o \
  37         MICwrap.o name.o oid.o seq.o token.o support.o validate.o
  38 
  39 DERIVED_OBJS = xdr_token.o
  40 
  41 CRYPTO = md5.o
  42 
  43 OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
  44 
  45 # include library definitions
  46 include ../../../../Makefile.lib
  47 
  48 CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
  49 
  50 CERRWARN +=     -_gcc=-Wno-parentheses
  51 CERRWARN +=     -_gcc=-Wno-unused-variable
  52 CERRWARN +=     -_gcc=-Wno-uninitialized
  53 
  54 # needs work
  55 SMATCH=off
  56 
  57 $(PICS) :=      CFLAGS += $(XFFLAG)
  58 $(PICS) :=      CCFLAGS += $(XFFLAG)
  59 $(PICS) :=      CFLAGS64 += $(XFFLAG)
  60 $(PICS) :=      CCFLAGS64 += $(XFFLAG)
  61 
  62 DYNFLAGS +=     $(ZIGNORE)
  63 
  64 LIBS = $(DYNLIB)
  65 LIBNAME = $(LIBRARY:%.a=%)
  66 
  67 MAPFILES =      ../mapfile-vers
  68 
  69 LDLIBS +=  -lgss -lnsl -lc 
  70 
  71 RPCGEN += -C
  72 SED = sed
  73 
  74 .KEEP_STATE:
  75 
  76 CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)