Makefile revision aecfc01d1bad84e66649703f7fc2926ef70b34ba
5887N/A#
5887N/A# CDDL HEADER START
5887N/A#
5887N/A# The contents of this file are subject to the terms of the
5887N/A# Common Development and Distribution License (the "License").
5887N/A# You may not use this file except in compliance with the License.
5887N/A#
5887N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5887N/A# or http://www.opensolaris.org/os/licensing.
5887N/A# See the License for the specific language governing permissions
5887N/A# and limitations under the License.
5887N/A#
5887N/A# When distributing Covered Code, include this CDDL HEADER in each
5887N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5887N/A# If applicable, add the following below this CDDL HEADER, with the
5887N/A# fields enclosed by brackets "[]" replaced with your own identifying
5887N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5887N/A#
5887N/A# CDDL HEADER END
5887N/A#
5887N/A
5887N/A#
5887N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5887N/A# Use is subject to license terms.
5887N/A#
5887N/A# This makefile drives the production of the wc driver
5887N/A#
5887N/A# sparc architecture dependent
5887N/A#
5887N/A
5887N/A#
5887N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5887N/A#
5887N/AUTSBASE = ../..
5887N/A
5887N/A#
5887N/A# Define the module and object file sets.
5887N/A#
5887N/AMODULE = wc
5887N/AOBJECTS = $(WC_OBJS:%=$(OBJS_DIR)/%)
5887N/ALINTS = $(WC_OBJS:%.o=$(LINTS_DIR)/%.ln)
5887N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5887N/ACONF_SRCDIR = $(UTSBASE)/sun/io
5887N/AWARLOCK_OUT = $(WC_OBJS:%.o=%.ll)
5887N/AWARLOCK_OK = $(MODULE).ok
5887N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
5887N/A
5887N/A#
5887N/A# Include common rules.
5887N/A#
5887N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
5887N/A
5887N/A#
5887N/A# Define targets
5887N/A#
5887N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
5887N/ALINT_TARGET = $(MODULE).lint
5887N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5887N/A
5887N/A#
5887N/A# Override defaults to build a unique, local modstubs.o.
5887N/A#
5887N/AMODSTUBS_DIR = $(OBJS_DIR)
5887N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DWC_MODULE
5887N/ACLEANFILES += $(MODSTUBS_O)
5887N/A
5887N/A#
5887N/A# lint pass one enforcement
5887N/A#
5887N/ACFLAGS += $(CCVERBOSE)
5887N/ALDFLAGS += -dy -Nmisc/tem -Ndacf/consconfig_dacf
5887N/A
5887N/A#
5887N/A# Default build targets.
5887N/A#
5887N/A.KEEP_STATE:
5887N/A
5887N/Adef: $(DEF_DEPS)
5887N/A
5887N/Aall: $(ALL_DEPS)
5887N/A
5887N/Aclean: $(CLEAN_DEPS)
5887N/A
5887N/Aclobber: $(CLOBBER_DEPS)
5887N/A
5887N/Alint: $(LINT_DEPS)
5887N/A
5887N/Amodlintlib: $(MODLINTLIB_DEPS)
5887N/A
5887N/Aclean.lint: $(CLEAN_LINT_DEPS)
5887N/A
5887N/Ainstall: $(INSTALL_DEPS)
5887N/A
5887N/A#
5887N/A# Include common targets.
5887N/A#
5887N/Ainclude $(UTSBASE)/sparc/Makefile.targ
5887N/A
5887N/A#
5887N/A# Defines for local commands
5887N/A#
5887N/ATEST = test
5887N/AWLCC = wlcc
5887N/ATOUCH = touch
5887N/AWARLOCK = warlock
5887N/A
5887N/A#
5887N/A# warlock targets
5887N/A#
5887N/A
5887N/A#
5887N/A# vcons_conf.c is compiled to genunix, add it to WARLOCK_OUT
5887N/A#
5887N/AWARLOCK_OUT += vcons_conf.ll
5887N/A
5887N/Awarlock: $(WARLOCK_OUT) sdev_vtops.file warlock_ddi.files
5887N/A $(WARLOCK) -c $(WLCMD_DIR)/wc.wlcmd $(WARLOCK_OUT) \
5887N/A -l ../../sparc/warlock/ddi_dki_impl.ll
5887N/A $(WARLOCK) -c $(WLCMD_DIR)/wc_devfs.wlcmd sdev_vtops.ll vcons_conf.ll \
5887N/A -l ../../sparc/warlock/ddi_dki_impl.ll
5887N/A $(TOUCH) $(WARLOCK_OK)
5887N/A
5887N/A%.ll: $(UTSBASE)/common/io/%.c
5887N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
5887N/A
5887N/Asdev_vtops.file:
5887N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o sdev_vtops.ll -c \
5887N/A ../../common/fs/dev/sdev_vtops.c
5887N/A
5887N/Awarlock_ddi.files:
5887N/A @cd ../../sparc/warlock; pwd; $(MAKE) warlock
5887N/A