1# 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 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# Copyright (c) 2018, Joyent, Inc. 26 27 28LIBRARY= libdyn.a 29VERS= .1 30 31DYNOBJS= \ 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 42 43OBJECTS= $(DYNOBJS) 44 45# include library definitions 46include ../../Makefile.lib 47 48SRCS= $(DYNOBJS:%.o=../%.c) 49LIBS= $(DYNLIB) 50 51include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 52 53 54#override liblink 55INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 56 57CPPFLAGS += -D_REENTRANT -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 62 63CFLAGS += $(CCVERBOSE) -I.. 64LDLIBS += -lc 65 66CERRWARN += -_gcc=-Wno-unused-variable 67 68SMOFF += no_if_block 69 70.KEEP_STATE: 71 72all: $(LIBS) 73 74 75# include library targets 76include ../../Makefile.targ 77 78FRC: 79