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