4265 remove INTERNAL_RELEASE_BUILD
[illumos-gate.git] / usr / src / uts / sun4u / i2bsc / Makefile
blob0c984165b1d48b36636574b84d45869a8ca18eb7
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
27 # This makefile drives the production of the i2bsc nexus driver.
29 # Path to the base of the uts directory tree (usually /usr/src/uts).
31 UTSBASE = ../..
34 # Define the module and object file sets.
36 MODULE = i2bsc
37 OBJECTS = $(I2BSC_OBJS:%=$(OBJS_DIR)/%)
38 LINTS = $(I2BSC_OBJS:%.o=$(LINTS_DIR)/%.ln)
39 ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
40 CONF_SRCDIR = $(UTSBASE)/sun4u/io/i2c/nexus
43 # Include common rules.
45 include $(UTSBASE)/sun4u/Makefile.sun4u
48 # lint pass one enforcement
50 CFLAGS += $(CCVERBOSE) -I$(UTSBASE)/sun4u
52 LDFLAGS += -dy -N misc/i2c_svc
55 # Define targets
57 ALL_TARGET = $(BINARY)
58 LINT_TARGET = $(MODULE).lint
59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
62 # For now, disable these lint checks; maintainers should endeavor
63 # to investigate and remove these for maximum lint coverage.
64 # Please do not carry these forward to new Makefiles.
66 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
67 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
68 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
70 .KEEP_STATE:
72 def: $(DEF_DEPS)
74 all: $(ALL_DEPS)
76 clean: $(CLEAN_DEPS)
78 clobber: $(CLOBBER_DEPS)
80 lint: $(LINT_DEPS)
82 modlintlib: $(MODLINTLIB_DEPS)
84 clean.lint: $(CLEAN_LINT_DEPS)
86 install: $(INSTALL_DEPS)
89 # Defines for local commands.
91 WLCC = wlcc
92 TOUCH = touch
93 WARLOCK = warlock
96 # Warlock targets
99 I2BSC = $(I2BSC_OBJS:%.o=%.ll)
101 warlock: $(MODULE).ok
103 %.ok: $(I2BSC_FILES)
104 $(TOUCH) $@
106 %.ll: $(UTSBASE)/sun4u/io/i2c/nexus/i2bsc/%.c
107 $(WLCC) $(CFLAGS) $(CPPFLAGS) -DDEBUG -o $@ $<
110 # Include common targets
112 include $(UTSBASE)/sun4u/Makefile.targ