#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
#
OBJECTS = \
db_log.o \
db.o \
nis_db.o \
shim.o \
update.o \
X_FILES= \
# delete the derived files when cleaning up
CLEANFILES += $(DERIVED_FILES)
# include library definitions
$(YPTOL_DIR)/dit_access.c \
$(YPTOL_DIR)/lock_update.c \
$(YPTOL_DIR)/map_conv.c \
$(YPTOL_DIR)/map_ctrl.c \
$(YPTOL_DIR)/yptol_utils.c \
$(YPTOL_DIR)/shim_ancil.c \
$(YPTOL_DIR)/shim_lockmap.c \
$(YPTOL_DIR)/ttl_utils.c \
# Libnisdb has grown large enough that there may be too many symbols
# wanting `small' PIC references. Hence, compile some files with
# `large' PIC references; the parser files are good candidates, since
# they're only used at startup, and performance isn't too important.
shim.o \
update.o \
stubs.o \
CPPFLAGS += -D_REENTRANT
# This is 32-bit C++ code that was originally developed with -compat=4
CCFLAGS += $(CCCNOLOCALFOR)
# Extra includes, from yp, for yptol files.
# A number of interfaces are interposed by numerous applications, therefore
# prevent direct binding to anything in libnisdb. Disable libnisdb from
# directly binding to itself, but allow libnisdb to directly bind to its
# dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is
# established (which is enabled automatically with -Bdirect). In addition,
# libnisdb interposes on socket(), so tag this library as an interposer.
# dependencies (lazyload).
BDIRECT =
pics/%.o: %.c
$(COMPILE.c) -o $@ $<
$(COMPILE.cc) -o $@ $<
$(COMPILE.c) -o $@ $<
#
# Pattern matching rules that define how to build the derived files.
#
$(RM) $@
%.h: %_c.x
$(RM) $@
$(RPCGEN) -h -o $@ $<
$(RM) $@
# rename the xdr_db_free_entry() in the db_table_c_xdr.c. So the one
# in db_index_entry_c is used instead.
$(RM) $@
$(SED) -e 's/^xdr_db_free_entry(/__OBSOLETED_xdr_db_free_entry(/' > $@
# include library targets