17c478bd9Sstevel@tonic-gate# 2f808c858Sraf# CDDL HEADER START 3f808c858Sraf# 4f808c858Sraf# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 7f808c858Sraf# 8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9f808c858Sraf# or http://www.opensolaris.org/os/licensing. 10f808c858Sraf# See the License for the specific language governing permissions 11f808c858Sraf# and limitations under the License. 12f808c858Sraf# 13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each 14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the 16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying 17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner] 18f808c858Sraf# 19f808c858Sraf# CDDL HEADER END 20f808c858Sraf# 21f808c858Sraf# 2254925bf6Swillf# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateLIBRARY= libkdb.a 277c478bd9Sstevel@tonic-gateVERS= .1 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# kdb 307c478bd9Sstevel@tonic-gateKDBOBJS= \ 317c478bd9Sstevel@tonic-gate keytab.o \ 327c478bd9Sstevel@tonic-gate encrypt_key.o \ 337c478bd9Sstevel@tonic-gate decrypt_key.o \ 347c478bd9Sstevel@tonic-gate kdb_convert.o \ 357c478bd9Sstevel@tonic-gate kdb_cpw.o \ 3654925bf6Swillf kdb_default.o \ 377c478bd9Sstevel@tonic-gate kdb_log.o \ 3854925bf6Swillf kdb5.o 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateDERIVED_OBJS= \ 417c478bd9Sstevel@tonic-gate iprop_xdr.o 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate# Definitions needed to rpcgen iprop-related files 447c478bd9Sstevel@tonic-gateISRCHDR= ../iprop.h 457c478bd9Sstevel@tonic-gateISRCXDR= ../iprop_xdr.c 467c478bd9Sstevel@tonic-gateKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop 477c478bd9Sstevel@tonic-gateCMD= grep -v "usr/src/cmd/krb5/iprop" > $@ 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# libkdb5 needs to link against some files from kadm5 507c478bd9Sstevel@tonic-gateKADM5DIR= $(SRC)/lib/krb5/kadm5 517c478bd9Sstevel@tonic-gateKADM5OBJS= alt_prof.o str_conv.o 527c478bd9Sstevel@tonic-gateKADM5SRCS= $(KADM5DIR)/$(KADM5OBJS:%.o=%.c) 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateOBJECTS= $(KDBOBJS) $(KADM5OBJS) $(DERIVED_OBJS) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate# include library definitions 577c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateSRCS= $(KDBOBJS:%.o=../%.c) 607c478bd9Sstevel@tonic-gateSRCS+= $(DERIVED_OBJS:%.o=../%.c) 617c478bd9Sstevel@tonic-gateSRCS+= $(KADM5SRCS) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gateLIBS= $(DYNLIB) 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gatePOFILE = $(LIBRARY:%.a=%.po) 687c478bd9Sstevel@tonic-gatePOFILES = generic.po 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate# override liblink 717c478bd9Sstevel@tonic-gateINS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 727c478bd9Sstevel@tonic-gate 7356a424ccSmp153739CPPFLAGS += -DHAVE_CONFIG_H -DHAVE_BT_RSEQ \ 747c478bd9Sstevel@tonic-gate -I$(KRB5IPROPDIR) \ 757c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 767c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 777c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \ 787c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 797c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include/ \ 807c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) -I.. 837c478bd9Sstevel@tonic-gate 84*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 85*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 86*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 87*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 88*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 89*7014882cSRichard Lowe 907c478bd9Sstevel@tonic-gateDYNFLAGS += $(KRUNPATH) $(KMECHLIB) 9154925bf6SwillfLDLIBS += -lc -lnsl 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate.KEEP_STATE: 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gateall: $(LIBS) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate# Rules to rpcgen-erate derived files from the iprop.x spec file 987c478bd9Sstevel@tonic-gate$(ISRCHDR): $(KRB5IPROPDIR)/iprop.x 997c478bd9Sstevel@tonic-gate $(RM) $@ 1007c478bd9Sstevel@tonic-gate $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@ 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate$(ISRCXDR): $(ISRCHDR) $(KRB5IPROPDIR)/iprop.x 1037c478bd9Sstevel@tonic-gate $(RM) $@ 1047c478bd9Sstevel@tonic-gate $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gateCLEANFILES += $(ISRCHDR) $(ISRCXDR) 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate# Explicitly state the dependancy on iprop.h 1097c478bd9Sstevel@tonic-gate$(LIBS): $(ISRCHDR) 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate# We turn off ptr-cast warnings, since we're doing mmapping in kdb_log 1127c478bd9Sstevel@tonic-gateLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gatelint: lintcheck 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gate# include library targets 1177c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gateFRC: 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gategeneric.po: FRC 1227c478bd9Sstevel@tonic-gate $(RM) messages.po 1237c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]` 1247c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 1257c478bd9Sstevel@tonic-gate $(RM) messages.po 126