154925bf6Swillf# 254925bf6Swillf# CDDL HEADER START 354925bf6Swillf# 454925bf6Swillf# The contents of this file are subject to the terms of the 554925bf6Swillf# Common Development and Distribution License (the "License"). 654925bf6Swillf# You may not use this file except in compliance with the License. 754925bf6Swillf# 854925bf6Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 954925bf6Swillf# or http://www.opensolaris.org/os/licensing. 1054925bf6Swillf# See the License for the specific language governing permissions 1154925bf6Swillf# and limitations under the License. 1254925bf6Swillf# 1354925bf6Swillf# When distributing Covered Code, include this CDDL HEADER in each 1454925bf6Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1554925bf6Swillf# If applicable, add the following below this CDDL HEADER, with the 1654925bf6Swillf# fields enclosed by brackets "[]" replaced with your own identifying 1754925bf6Swillf# information: Portions Copyright [yyyy] [name of copyright owner] 1854925bf6Swillf# 1954925bf6Swillf# CDDL HEADER END 2054925bf6Swillf# 2154925bf6Swillf# 2254925bf6Swillf# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2354925bf6Swillf# Use is subject to license terms. 2454925bf6Swillf# 2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 2654925bf6Swillf 2754925bf6SwillfLIBRARY= libdb2.a 2854925bf6SwillfVERS= .1 2954925bf6Swillf 3054925bf6Swillf# btree 3154925bf6SwillfBTREE_OBJS= \ 3254925bf6Swillf bt_close.o \ 3354925bf6Swillf bt_conv.o \ 3454925bf6Swillf bt_debug.o \ 3554925bf6Swillf bt_delete.o \ 3654925bf6Swillf bt_get.o \ 3754925bf6Swillf bt_open.o \ 3854925bf6Swillf bt_overflow.o \ 3954925bf6Swillf bt_page.o \ 4054925bf6Swillf bt_put.o \ 4154925bf6Swillf bt_search.o \ 4254925bf6Swillf bt_seq.o \ 4354925bf6Swillf bt_split.o \ 4454925bf6Swillf bt_utils.o 4554925bf6Swillf 4654925bf6Swillf# db 4754925bf6SwillfDB_OBJS= db.o 4854925bf6Swillf 4954925bf6Swillf# hash 5054925bf6SwillfHASH_OBJS= \ 5154925bf6Swillf hash.o \ 5254925bf6Swillf hash_bigkey.o \ 5354925bf6Swillf hash_func.o \ 5454925bf6Swillf hash_log2.o \ 5554925bf6Swillf hash_page.o \ 5654925bf6Swillf hsearch.o \ 5754925bf6Swillf dbm.o 5854925bf6Swillf 5954925bf6Swillf# mpool 6054925bf6SwillfMPOOL_OBJS= mpool.o 6154925bf6Swillf 6254925bf6Swillf# recno 6354925bf6SwillfRECNO_OBJS= \ 6454925bf6Swillf rec_close.o \ 6554925bf6Swillf rec_delete.o \ 6654925bf6Swillf rec_get.o \ 6754925bf6Swillf rec_open.o \ 6854925bf6Swillf rec_put.o \ 6954925bf6Swillf rec_search.o \ 7054925bf6Swillf rec_seq.o \ 7154925bf6Swillf rec_utils.o 7254925bf6Swillf 7354925bf6SwillfOBJECTS= \ 7454925bf6Swillf $(BTREE_OBJS) $(DB_OBJS) $(HASH_OBJS) $(MPOOL_OBJS) $(RECNO_OBJS) 7554925bf6Swillf 7654925bf6Swillf# include library definitions 7754925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.lib 7854925bf6Swillf 7954925bf6SwillfSRCS= $(BTREE_OBJS:%.o=../btree/%.c) \ 8054925bf6Swillf $(DB_OBJS:%.o=../db/%.c) \ 8154925bf6Swillf $(HASH_OBJS:%.o=../hash/%.c) \ 8254925bf6Swillf $(MPOOL_OBJS:%.o=../mpool/%.c) \ 8354925bf6Swillf $(RECNO_OBJS:%.o=../recno/%.c) 8454925bf6Swillf 8554925bf6SwillfLIBS= $(DYNLIB) 8654925bf6Swillf 8754925bf6Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 8854925bf6Swillf 8954925bf6SwillfPOFILE = $(LIBRARY:%.a=%.po) 9054925bf6SwillfPOFILES = generic.po 9154925bf6Swillf 9254925bf6Swillf#override liblink 9354925bf6SwillfINS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 9454925bf6Swillf 9554925bf6SwillfCPPFLAGS += -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 \ 10254925bf6Swillf -I$(SRC)/lib/gss_mechs/mech_krb5/include #for db-ndbm.h 10354925bf6Swillf 10454925bf6SwillfCFLAGS += $(CCVERBOSE) -I.. 105*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 10605ede3dbSJohn Levon 10705ede3dbSJohn Levon# not linted 10805ede3dbSJohn LevonSMATCH=off 10905ede3dbSJohn Levon 11054925bf6SwillfLDLIBS += -lc 11154925bf6Swillf 11254925bf6Swillf# Identify that this library is an interposer (on dbm_ routines from libc.so.1). 11354925bf6Swillf# This identification insures runtime symbol lookup resolves to this library 11454925bf6Swillf# (before libc.so.1) regardless of dependency link order. 11554925bf6SwillfDYNFLAGS += $(ZINTERPOSE) 11654925bf6Swillf 11754925bf6Swillf.KEEP_STATE: 11854925bf6Swillf 11954925bf6Swillfall: $(LIBS) 12054925bf6Swillf 12154925bf6Swillf 12254925bf6Swillf# include library targets 12354925bf6Swillfinclude $(SRC)/lib/krb5/Makefile.targ 12454925bf6Swillf 12554925bf6Swillfpics/%.o: ../btree/%.c 12654925bf6Swillf $(COMPILE.c) -o $@ $< 12754925bf6Swillf $(POST_PROCESS_O) 12854925bf6Swillf 12954925bf6Swillfpics/%.o: ../db/%.c 13054925bf6Swillf $(COMPILE.c) -o $@ $< 13154925bf6Swillf $(POST_PROCESS_O) 13254925bf6Swillf 13354925bf6Swillfpics/%.o: ../hash/%.c 13454925bf6Swillf $(COMPILE.c) -o $@ $< 13554925bf6Swillf $(POST_PROCESS_O) 13654925bf6Swillf 13754925bf6Swillfpics/%.o: ../mpool/%.c 13854925bf6Swillf $(COMPILE.c) -o $@ $< 13954925bf6Swillf $(POST_PROCESS_O) 14054925bf6Swillf 14154925bf6Swillfpics/%.o: ../recno/%.c 14254925bf6Swillf $(COMPILE.c) -o $@ $< 14354925bf6Swillf $(POST_PROCESS_O) 14454925bf6Swillf 14554925bf6SwillfFRC: 14654925bf6Swillf 14754925bf6Swillfgeneric.po: FRC 14854925bf6Swillf $(RM) messages.po 14954925bf6Swillf $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../hash/*.[ch]` 15054925bf6Swillf $(SED) "/^domain/d" messages.po > $@ 15154925bf6Swillf $(RM) messages.po 152