Makefile.com revision 8afbae077394bf15b64633f006ff3cbba11fcd87
#
# 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
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# This target builds both a command (daemon) and various shared objects. This
# isn't a typical target, and the inclusion of both library and command
# Makefiles were probably not in their original design. However, there doesn't
# presently seem to be a clash of any required definitions.
include ../../Makefile.cmd
COMMON = ..
LINK_OBJS_CMN = \
LINK_OBJS = $(LINK_OBJS_CMN) \
LINT_MODULES = $(LINK_SRCS:%.c=%.ln)
# Define the dependencies required by devfsadm and all shared objects.
# All libraries are built from the same SUNW_%.so rule (see below), and define
# their own SONAME using -h explicitly. Null the generic -h macro that gets
# inherited from Makefile.lib, otherwise we'll get two -h definitions.
HSONAME =
# install specifics
FILEMODE= 755
$(ROOTLIB_DEVFSADM) \
$(ROOTUSRSBIN_DEVFSADM) \
$(ROOTETC_DEVLINKTAB) \
$(ROOTUSRINCLUDE) \
%.ln: $(DEVFSADM_SRC) %.c
include ../../Makefile.targ
$(DEVFSADM_MOD): $(DEVFSADM_OBJ)
$(POST_PROCESS)
%.o: $(COMMON)/%.c
$(COMPILE.c) -o $@ $< $(CTFCONVERT_HOOK)
$(DEVLINKTAB): $(DEVLINKTAB_SRC)
$(RM) $(DEVLINKTAB)
$(ROOTUSRSBIN):
$(INS.dir)
$(ROOTLIB_DEVFSADM):
$(INS.dir)
$(ROOTUSRINCLUDE):
$(INS.dir)
$(INS.dir)
$(ROOTLIB_DEVFSADM_LINKMOD)/%: %
$(INS.file)
#
# Source shared with add_drv/update_drv
#
../plcysubr.c:
rm -f $@