Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A#
200N/A# uts/sun4u/fd/Makefile
3857N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
200N/A# Use is subject to license terms.
200N/A#
200N/A
200N/A#
814N/A# This makefile drives the production of the fd driver kernel module.
206N/A#
200N/A# sun4u implementation architecture dependent
4258N/A#
618N/A
200N/A#
200N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
4258N/AUTSBASE = ../..
903N/A
1273N/A#
4258N/A# Define the module and object file sets.
3661N/A#
3996N/AMODULE = fd
3996N/AOBJECTS = $(FD_OBJS:%=$(OBJS_DIR)/%)
3996N/ALINTS = $(FD_OBJS:%.o=$(LINTS_DIR)/%.ln)
200N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
200N/A
200N/AASSYM_H = $(OBJS_DIR)/fd_assym.h
200N/AFDOFF_C = $(OBJS_DIR)/fdoffsets.c
200N/AFDOFF_S = $(OBJS_DIR)/fdoffsets.s
3982N/AFDOFF_TMP = $(OBJS_DIR)/fdoffsets.tmp
200N/A
206N/A#
206N/A# Include common rules.
206N/A#
206N/Ainclude $(UTSBASE)/sun4u/Makefile.sun4u
206N/A
206N/A#
200N/A# Define targets
206N/A#
200N/AALL_TARGET = $(BINARY)
206N/ALINT_TARGET = $(MODULE).lint
206N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
206N/A
5075N/A#
5075N/A# Overrides
3866N/A#
200N/AMODSTUBS_DIR = $(OBJS_DIR)
200N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DFD_MODULE
200N/A$(OBJS_DIR)/fd_asm.o := AS_CPPFLAGS += -I$(OBJS_DIR)
200N/ACLEANFILES += $(MODSTUBS_O) $(ASSYM_H) \
903N/A $(FDOFF_C) $(FDOFF_S) $(FDOFF_TMP)
200N/A
200N/A#
200N/A# lint pass one enforcement
206N/A#
200N/ACFLAGS += $(CCVERBOSE)
200N/A
200N/A#
200N/A# For now, disable these lint checks; maintainers should endeavor
200N/A# to investigate and remove these for maximum lint coverage.
206N/A# Please do not carry these forward to new Makefiles.
200N/A#
200N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
206N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
200N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
200N/A
200N/ACERRWARN += -_gcc=-Wno-uninitialized
200N/ACERRWARN += -_gcc=-Wno-parentheses
200N/ACERRWARN += -_gcc=-Wno-char-subscripts
200N/A
200N/A#
3866N/A# Default build targets.
3866N/A#
3866N/A.KEEP_STATE:
3866N/A
3866N/Adef: $(DEF_DEPS)
3866N/A
3866N/Aall: $(ALL_DEPS)
3866N/A
3866N/Aclean: $(CLEAN_DEPS)
3866N/A
3866N/Aclobber: $(CLOBBER_DEPS)
3866N/A
3866N/Alint: $(LINT_DEPS)
200N/A
200N/Amodlintlib: $(MODLINTLIB_DEPS)
200N/A
200N/Aclean.lint: $(CLEAN_LINT_DEPS)
200N/A
3866N/Ainstall: $(INSTALL_DEPS)
200N/A
200N/A$(BINARY): $(ASSYM_H)
200N/A
200N/A#
200N/A# Include common targets.
200N/A#
3866N/Ainclude $(UTSBASE)/sun4u/Makefile.targ
200N/A
200N/A#
200N/A# Assym targets
3866N/A#
3866N/A$(ASSYM_H): $(FDOFFSETS)
200N/A $(OFFSETS_CREATE) <$(FDOFFSETS) >$@
200N/A