Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / krb5 / dyn / Makefile.com
blob98273d17aa75d2e46c5c9ae49d75bd92dd3e58a1
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
28 LIBRARY= libdyn.a
29 VERS= .1
31 DYNOBJS= \
32         dyn_create.o \
33         dyn_put.o \
34         dyn_debug.o \
35         dyn_delete.o \
36         dyn_size.o \
37         dyn_append.o \
38         dyn_realloc.o \
39         dyn_paranoid.o \
40         dyn_insert.o \
41         dyn_initzero.o
43 OBJECTS= $(DYNOBJS)
45 # include library definitions
46 include ../../Makefile.lib
48 SRCS=   $(DYNOBJS:%.o=../%.c)
49 LIBS=           $(DYNLIB)
51 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
54 #override liblink
55 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57 CPPFLAGS +=    -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \
58                 -DHAVE_UNISTD_H=1 -DHAVE_UMASK=1 -DHAVE_SRAND48=1 \
59                 -DHAVESRAND=1 -DHAVESRANDOM=1 -DHAVE_RE_COMP=1 \
60                 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 \
61                 -DHAVE_COMPILE=1
63 CFLAGS +=       -I..
64 LDLIBS +=       -lc
66 CERRWARN +=     -Wno-unused-variable
68 SMOFF += no_if_block
70 .KEEP_STATE:
72 all:    $(LIBS)
75 # include library targets
76 include ../../Makefile.targ
78 FRC: