Makefile revision d291d9f21e8c0417aec99de243dd48bc400002d0
91N/A#
91N/A# CDDL HEADER START
91N/A#
292N/A# The contents of this file are subject to the terms of the
91N/A# Common Development and Distribution License, Version 1.0 only
91N/A# (the "License"). You may not use this file except in compliance
91N/A# with the License.
91N/A#
292N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
292N/A# or http://www.opensolaris.org/os/licensing.
292N/A# See the License for the specific language governing permissions
292N/A# and limitations under the License.
91N/A#
91N/A# When distributing Covered Code, include this CDDL HEADER in each
91N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
292N/A# If applicable, add the following below this CDDL HEADER, with the
292N/A# fields enclosed by brackets "[]" replaced with your own identifying
292N/A# information: Portions Copyright [yyyy] [name of copyright owner]
292N/A#
292N/A# CDDL HEADER END
292N/A#
292N/A#
292N/A# uts/sparc/dada/Makefile
292N/A#
292N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
292N/A# Use is subject to license terms.
91N/A#
91N/A
91N/A#ident "%Z%%M% %I% %E% SMI"
91N/A
91N/A#
91N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
91N/A#
91N/AUTSBASE = ../..
91N/A
91N/A#
91N/A# Define the module and object file sets.
91N/A#
91N/AMODULE = dada
91N/AOBJECTS = $(DADA_OBJS:%=$(OBJS_DIR)/%)
91N/ALINTS = $(DADA_OBJS:%.o=$(LINTS_DIR)/%.ln)
91N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
91N/AWARLOCK_OUT = $(DADA_OBJS:%.o=%.ll)
91N/AWARLOCK_OK = $(MODULE).ok
91N/A
91N/A#
91N/A# Include common rules.
91N/A#
91N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
91N/A
91N/A
91N/A#
91N/A# Define targets
290N/A#
91N/AALL_TARGET = $(BINARY)
91N/ALINT_TARGET = $(MODULE).lint
91N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
91N/A
91N/A#
91N/A# Overrides.
91N/A#
91N/ACFLAGS += $(CCVERBOSE)
91N/A
91N/A#
91N/A# Default build targets.
91N/A#
91N/A.KEEP_STATE:
91N/A
91N/Aall: $(ALL_DEPS)
91N/A
91N/Adef: $(DEF_DEPS)
91N/A
91N/Aclean: $(CLEAN_DEPS)
91N/A
91N/Aclean: $(CLEAN_DEPS); \
91N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91N/A
91N/Aclobber: $(CLOBBER_DEPS); \
91N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91N/A
91N/Amodlintlib: $(MODLINTLIB_DEPS) lint64
91N/A
91N/Aclean.lint: $(CLEAN_LINT_DEPS)
91N/A
91N/Ainstall: $(INSTALL_DEPS)
91N/A
91N/A#
91N/A# Include common targets.
91N/A#
91N/Ainclude $(UTSBASE)/sparc/Makefile.targ
91N/A
91N/A#
91N/A# Defines for local commands.
91N/A#
91N/AWLCC = wlcc
91N/ATOUCH = touch
91N/A
91N/A#
91N/A# Warlock targets
91N/A#
91N/AWARLOCK_OBJECTS = $(DADA_OBJS:%.o=%.ll)
91N/A
91N/Awarlock: $(MODULE).ok $(WARLOCK_OBJECTS)
91N/A
91N/A%.ok: $(WARLOCK_OBJECTS)
91N/A $(TOUCH) $@
91N/A
91N/A%.ll: $(UTSBASE)/sun/io/dada/impl/%.c
91N/A $(WLCC) $(CPPFLAGS) -o $@ $<
91N/A
91N/A%.ll: $(UTSBASE)/sun/io/dada/conf/%.c
91N/A $(WLCC) $(CPPFLAGS) -o $@ $<
91N/A