Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
530N/A#
530N/A# uts/intel/io/cmlb/Makefile
1339N/A#
530N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1339N/A# Use is subject to license terms.
530N/A#
530N/A#ident "%Z%%M% %I% %E% SMI"
919N/A#
919N/A# This makefile drives the production of the cmlb "misc"
919N/A# kernel module.
919N/A#
919N/A# intel architecture dependent
919N/A#
919N/A
919N/A#
919N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
919N/A#
919N/AUTSBASE = ../..
919N/A
919N/A#
919N/A# Define the module and object file sets.
919N/A#
919N/AMODULE = cmlb
919N/AOBJECTS = $(CMLB_OBJS:%=$(OBJS_DIR)/%)
530N/ALINTS = $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln)
530N/AWARLOCK_OUT = $(CMLB_OBJS:%.o=%.ll)
530N/AWARLOCK_OK = $(MODULE).ok
530N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
530N/A
530N/A#
970N/A# Include common rules.
970N/A#
970N/Ainclude $(UTSBASE)/intel/Makefile.intel
970N/A
970N/A#
970N/A# Define targets
970N/A#
1003N/AALL_TARGET = $(BINARY)
1003N/ALINT_TARGET = $(MODULE).lint
1003N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1339N/A
1339N/A#
1339N/A# Overrides.
1339N/A#
1339N/ADEBUG_FLGS =
1003N/ADEBUG_DEFS += $(DEBUG_FLGS)
970N/A
970N/A#
970N/A# For now, disable these lint checks; maintainers should endeavor
530N/A# to investigate and remove these for maximum lint coverage.
530N/A# Please do not carry these forward to new Makefiles.
530N/A#
530N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
530N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
530N/ALINTTAGS += -erroff=E_STATIC_UNUSED
530N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
530N/A
530N/A#
530N/A# Default build targets.
530N/A#
530N/A.KEEP_STATE:
530N/A
530N/Adef: $(DEF_DEPS)
530N/A
530N/Aall: $(ALL_DEPS)
530N/A
970N/Aclean: $(CLEAN_DEPS)
970N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
970N/A
530N/Aclobber: $(CLOBBER_DEPS)
530N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
#
# Defines for local commands.
#
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
SCCS = sccs
#
# Warlock targets
#
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT)
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<