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# 2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateLIBRARY= libkdb.a 287c478bd9Sstevel@tonic-gateVERS= .1 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate# kdb 317c478bd9Sstevel@tonic-gateKDBOBJS= \ 3254925bf6Swillf keytab.o \ 3354925bf6Swillf encrypt_key.o \ 3454925bf6Swillf decrypt_key.o \ 357c478bd9Sstevel@tonic-gate kdb_convert.o \ 3654925bf6Swillf kdb_cpw.o \ 3754925bf6Swillf kdb_default.o \ 387c478bd9Sstevel@tonic-gate kdb_log.o \ 3954925bf6Swillf kdb5.o 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateDERIVED_OBJS= \ 427c478bd9Sstevel@tonic-gate iprop_xdr.o 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate# Definitions needed to rpcgen iprop-related files 457c478bd9Sstevel@tonic-gateISRCHDR= ../iprop.h 467c478bd9Sstevel@tonic-gateISRCXDR= ../iprop_xdr.c 477c478bd9Sstevel@tonic-gateKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop 487c478bd9Sstevel@tonic-gateCMD= grep -v "usr/src/cmd/krb5/iprop" > $@ 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate# libkdb5 needs to link against some files from kadm5 517c478bd9Sstevel@tonic-gateKADM5DIR= $(SRC)/lib/krb5/kadm5 527c478bd9Sstevel@tonic-gateKADM5OBJS= alt_prof.o str_conv.o 537c478bd9Sstevel@tonic-gateKADM5SRCS= $(KADM5DIR)/$(KADM5OBJS:%.o=%.c) 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateOBJECTS= $(KDBOBJS) $(KADM5OBJS) $(DERIVED_OBJS) 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate# include library definitions 587c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateSRCS= $(KDBOBJS:%.o=../%.c) 617c478bd9Sstevel@tonic-gateSRCS+= $(DERIVED_OBJS:%.o=../%.c) 627c478bd9Sstevel@tonic-gateSRCS+= $(KADM5SRCS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gateLIBS= $(DYNLIB) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gatePOFILE = $(LIBRARY:%.a=%.po) 697c478bd9Sstevel@tonic-gatePOFILES = generic.po 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate# override liblink 727c478bd9Sstevel@tonic-gateINS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 737c478bd9Sstevel@tonic-gate 7456a424ccSmpCPPFLAGS += -DHAVE_CONFIG_H -DHAVE_BT_RSEQ \ 757c478bd9Sstevel@tonic-gate -I$(KRB5IPROPDIR) \ 767c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 \ 777c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 787c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \ 797c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 807c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/include/ \ 817c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) -I.. 847c478bd9Sstevel@tonic-gate 857014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 867014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 877014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 88*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 897014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 907014882cSRichard Lowe 9105ede3dbSJohn LevonSMOFF += indenting,all_func_returns,deref_check,signed 9205ede3dbSJohn Levon 937c478bd9Sstevel@tonic-gateDYNFLAGS += $(KRUNPATH) $(KMECHLIB) 9454925bf6SwillfLDLIBS += -lc -lnsl 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gate.KEEP_STATE: 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gateall: $(LIBS) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate# Rules to rpcgen-erate derived files from the iprop.x spec file 1017c478bd9Sstevel@tonic-gate$(ISRCHDR): $(KRB5IPROPDIR)/iprop.x 1027c478bd9Sstevel@tonic-gate $(RM) $@ 1037c478bd9Sstevel@tonic-gate $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@ 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate$(ISRCXDR): $(ISRCHDR) $(KRB5IPROPDIR)/iprop.x 1067c478bd9Sstevel@tonic-gate $(RM) $@ 1077c478bd9Sstevel@tonic-gate $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateCLEANFILES += $(ISRCHDR) $(ISRCXDR) 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate# Explicitly state the dependancy on iprop.h 1127c478bd9Sstevel@tonic-gate$(LIBS): $(ISRCHDR) 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gate# include library targets 1157c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gateFRC: 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gategeneric.po: FRC 1207c478bd9Sstevel@tonic-gate $(RM) messages.po 1217c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]` 1227c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 1237c478bd9Sstevel@tonic-gate $(RM) messages.po 124