1# 2# uts/intel/io/cmlb/Makefile 3# 4# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5# Use is subject to license terms. 6# 7#ident "%Z%%M% %I% %E% SMI" 8# 9# This makefile drives the production of the cmlb "misc" 10# kernel module. 11# 12# intel architecture dependent 13# 14 15# 16# Path to the base of the uts directory tree (usually /usr/src/uts). 17# 18UTSBASE = ../.. 19 20# 21# Define the module and object file sets. 22# 23MODULE = cmlb 24OBJECTS = $(CMLB_OBJS:%=$(OBJS_DIR)/%) 25LINTS = $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln) 26WARLOCK_OUT = $(CMLB_OBJS:%.o=%.ll) 27WARLOCK_OK = $(MODULE).ok 28ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 29 30# 31# Include common rules. 32# 33include $(UTSBASE)/intel/Makefile.intel 34 35# 36# Define targets 37# 38ALL_TARGET = $(BINARY) 39LINT_TARGET = $(MODULE).lint 40INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 41 42# 43# Overrides. 44# 45DEBUG_FLGS = 46DEBUG_DEFS += $(DEBUG_FLGS) 47 48# 49# For now, disable these lint checks; maintainers should endeavor 50# to investigate and remove these for maximum lint coverage. 51# Please do not carry these forward to new Makefiles. 52# 53LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 54LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 55LINTTAGS += -erroff=E_STATIC_UNUSED 56LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 57 58# 59# Default build targets. 60# 61.KEEP_STATE: 62 63def: $(DEF_DEPS) 64 65all: $(ALL_DEPS) 66 67clean: $(CLEAN_DEPS) 68 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 69 70clobber: $(CLOBBER_DEPS) 71 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 72 73lint: $(LINT_DEPS) 74 75modlintlib: $(MODLINTLIB_DEPS) 76 77clean.lint: $(CLEAN_LINT_DEPS) 78 79install: $(INSTALL_DEPS) 80 81# 82# Include common targets. 83# 84include $(UTSBASE)/intel/Makefile.targ 85 86# 87# Defines for local commands. 88# 89WLCC = wlcc 90TOUCH = touch 91WARLOCK = warlock 92SCCS = sccs 93 94# 95# Warlock targets 96# 97warlock: $(WARLOCK_OK) 98 99$(WARLOCK_OK): $(WARLOCK_OUT) 100 $(TOUCH) $@ 101 102%.ll: $(UTSBASE)/common/io/%.c 103 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 104