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


   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 (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #

  24 
  25 LIBRARY = libgss.a
  26 VERS = .1
  27 
  28 GSSOBJECTS      = g_acquire_cred.o \
  29           g_acquire_cred_with_pw.o \
  30           g_store_cred.o \
  31           g_rel_cred.o \
  32           g_init_sec_context.o \
  33           g_accept_sec_context.o \
  34           g_process_context.o \
  35           g_delete_sec_context.o \
  36           g_imp_sec_context.o \
  37           g_exp_sec_context.o \
  38           g_context_time.o \
  39           g_sign.o \
  40           g_verify.o \
  41           g_seal.o \
  42           g_unseal.o \
  43           g_dsp_status.o \


  94 
  95 # include library definitions
  96 include ../../Makefile.lib
  97 
  98 LIBS =  $(DYNLIB) $(LINTLIB)
  99 
 100 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
 101 LDLIBS +=       -lc
 102 
 103 CPPFLAGS +=     -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
 104                  -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
 105                  -I$(SRC)/uts/common/gssapi/ \
 106                  -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
 107                 -DHAVE_STDLIB_H
 108 
 109 CERRWARN +=     -_gcc=-Wno-unused-function
 110 CERRWARN +=     -_gcc=-Wno-uninitialized
 111 CERRWARN +=     -_gcc=-Wno-parentheses
 112 CERRWARN +=     -_gcc=-Wno-empty-body
 113 



 114 .KEEP_STATE:
 115 
 116 all: $(LIBS)
 117 
 118 lintcheck:=     SRCS= $(GSSLINTSRC)
 119 
 120 lint:  lintcheck
 121 
 122 $(GSSCREDOBJ:%.o=pics/%.o):
 123         $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
 124         $(POST_PROCESS_O)
 125 
 126 # we need this in libgss so we don't have to link against mech_krb5
 127 pics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
 128         $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
 129         $(POST_PROCESS_O)
 130 
 131 # we need this in libgss so we don't have to link against mech_krb5
 132 pics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
 133         $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c




   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 (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 LIBRARY = libgss.a
  27 VERS = .1
  28 
  29 GSSOBJECTS      = g_acquire_cred.o \
  30           g_acquire_cred_with_pw.o \
  31           g_store_cred.o \
  32           g_rel_cred.o \
  33           g_init_sec_context.o \
  34           g_accept_sec_context.o \
  35           g_process_context.o \
  36           g_delete_sec_context.o \
  37           g_imp_sec_context.o \
  38           g_exp_sec_context.o \
  39           g_context_time.o \
  40           g_sign.o \
  41           g_verify.o \
  42           g_seal.o \
  43           g_unseal.o \
  44           g_dsp_status.o \


  95 
  96 # include library definitions
  97 include ../../Makefile.lib
  98 
  99 LIBS =  $(DYNLIB) $(LINTLIB)
 100 
 101 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
 102 LDLIBS +=       -lc
 103 
 104 CPPFLAGS +=     -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
 105                  -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
 106                  -I$(SRC)/uts/common/gssapi/ \
 107                  -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
 108                 -DHAVE_STDLIB_H
 109 
 110 CERRWARN +=     -_gcc=-Wno-unused-function
 111 CERRWARN +=     -_gcc=-Wno-uninitialized
 112 CERRWARN +=     -_gcc=-Wno-parentheses
 113 CERRWARN +=     -_gcc=-Wno-empty-body
 114 
 115 # not linted
 116 SMATCH=off
 117 
 118 .KEEP_STATE:
 119 
 120 all: $(LIBS)
 121 
 122 lintcheck:=     SRCS= $(GSSLINTSRC)
 123 
 124 lint:  lintcheck
 125 
 126 $(GSSCREDOBJ:%.o=pics/%.o):
 127         $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
 128         $(POST_PROCESS_O)
 129 
 130 # we need this in libgss so we don't have to link against mech_krb5
 131 pics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
 132         $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
 133         $(POST_PROCESS_O)
 134 
 135 # we need this in libgss so we don't have to link against mech_krb5
 136 pics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
 137         $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c