Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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
#
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
#
VERS= .2
OBJECTS = \
db_log.o \
db.o \
nis_db.o \
shim.o \
update.o \
X_FILES= \
DERIVED_SOURCES= $(X_FILES:%_c.x=%_c_xdr.c)
# delete the derived files when cleaning up
CLEANFILES += $(DERIVED_FILES)
# include library definitions
CLOBBERFILES += $(MAPFILE)
$(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
# Extra includes, from yp, for yptol files.
$(MAPFILE):
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
FRC: