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= libdb2.a 287c478bd9Sstevel@tonic-gateVERS= .1 297c478bd9Sstevel@tonic-gate 30*241c90a0SRichard Lowe# btree 317c478bd9Sstevel@tonic-gateBTREE_OBJS= \ 327c478bd9Sstevel@tonic-gate bt_close.o \ 337c478bd9Sstevel@tonic-gate bt_conv.o \ 347c478bd9Sstevel@tonic-gate bt_debug.o \ 357c478bd9Sstevel@tonic-gate bt_delete.o \ 367c478bd9Sstevel@tonic-gate bt_get.o \ 377c478bd9Sstevel@tonic-gate bt_open.o \ 387c478bd9Sstevel@tonic-gate bt_overflow.o \ 397c478bd9Sstevel@tonic-gate bt_page.o \ 407c478bd9Sstevel@tonic-gate bt_put.o \ 417c478bd9Sstevel@tonic-gate bt_search.o \ 427c478bd9Sstevel@tonic-gate bt_seq.o \ 437c478bd9Sstevel@tonic-gate bt_split.o \ 44*241c90a0SRichard Lowe bt_utils.o 45*241c90a0SRichard Lowe 46*241c90a0SRichard Lowe# db 477c478bd9Sstevel@tonic-gateDB_OBJS= db.o 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# hash 507c478bd9Sstevel@tonic-gateHASH_OBJS= \ 517c478bd9Sstevel@tonic-gate hash.o \ 527c478bd9Sstevel@tonic-gate hash_bigkey.o \ 537c478bd9Sstevel@tonic-gate hash_func.o \ 547c478bd9Sstevel@tonic-gate hash_log2.o \ 557c478bd9Sstevel@tonic-gate hash_page.o \ 567c478bd9Sstevel@tonic-gate hsearch.o \ 577c478bd9Sstevel@tonic-gate dbm.o 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate# mpool 607c478bd9Sstevel@tonic-gateMPOOL_OBJS= mpool.o 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate# recno 637c478bd9Sstevel@tonic-gateRECNO_OBJS= \ 647c478bd9Sstevel@tonic-gate rec_close.o \ 657c478bd9Sstevel@tonic-gate rec_delete.o \ 667c478bd9Sstevel@tonic-gate rec_get.o \ 677c478bd9Sstevel@tonic-gate rec_open.o \ 687c478bd9Sstevel@tonic-gate rec_put.o \ 697c478bd9Sstevel@tonic-gate rec_search.o \ 707c478bd9Sstevel@tonic-gate rec_seq.o \ 717c478bd9Sstevel@tonic-gate rec_utils.o 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateOBJECTS= \ 747c478bd9Sstevel@tonic-gate $(BTREE_OBJS) $(DB_OBJS) $(HASH_OBJS) $(MPOOL_OBJS) $(RECNO_OBJS) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate# include library definitions 7754925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.lib 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateSRCS= $(BTREE_OBJS:%.o=../btree/%.c) \ 807c478bd9Sstevel@tonic-gate $(DB_OBJS:%.o=../db/%.c) \ 817c478bd9Sstevel@tonic-gate $(HASH_OBJS:%.o=../hash/%.c) \ 827c478bd9Sstevel@tonic-gate $(MPOOL_OBJS:%.o=../mpool/%.c) \ 837c478bd9Sstevel@tonic-gate $(RECNO_OBJS:%.o=../recno/%.c) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gateLIBS= $(DYNLIB) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gatePOFILE = $(LIBRARY:%.a=%.po) 907c478bd9Sstevel@tonic-gatePOFILES = generic.po 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate#override liblink 937c478bd9Sstevel@tonic-gateINS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 947c478bd9Sstevel@tonic-gate 95*241c90a0SRichard LoweCPPFLAGS += -DHAVE_CONFIG_H \ 9654925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/mpool \ 9754925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/db \ 9854925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/hash \ 9954925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/btree \ 10054925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/recno \ 10154925bf6Swillf -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/include \ 1027c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include #for db-ndbm.h 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) -I.. 105d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 10605ede3dbSJohn Levon 10705ede3dbSJohn Levon# not linted 10805ede3dbSJohn LevonSMATCH=off 10905ede3dbSJohn Levon 1107c478bd9Sstevel@tonic-gateLDLIBS += -lc 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate# Identify that this library is an interposer (on dbm_ routines from libc.so.1). 1137c478bd9Sstevel@tonic-gate# This identification insures runtime symbol lookup resolves to this library 1147c478bd9Sstevel@tonic-gate# (before libc.so.1) regardless of dependency link order. 1157c478bd9Sstevel@tonic-gateDYNFLAGS += $(ZINTERPOSE) 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate.KEEP_STATE: 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gateall: $(LIBS) 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate# include library targets 12354925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.targ 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gatepics/%.o: ../btree/%.c 1267c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1277c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1287c478bd9Sstevel@tonic-gate 1297c478bd9Sstevel@tonic-gatepics/%.o: ../db/%.c 1307c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1317c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1327c478bd9Sstevel@tonic-gate 1337c478bd9Sstevel@tonic-gatepics/%.o: ../hash/%.c 1347c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1357c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gatepics/%.o: ../mpool/%.c 1387c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1397c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gatepics/%.o: ../recno/%.c 1427c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1437c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1447c478bd9Sstevel@tonic-gate 1457c478bd9Sstevel@tonic-gateFRC: 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gategeneric.po: FRC 1487c478bd9Sstevel@tonic-gate $(RM) messages.po 1497c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../hash/*.[ch]` 1507c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 1517c478bd9Sstevel@tonic-gate $(RM) messages.po 152