Makefile revision 2df1fe9ca32bb227b9158c67f5c00b54c20b10fd
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# CDDL HEADER START
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License (the "License").
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# You may not use this file except in compliance with the License.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# or http://www.opensolaris.org/os/licensing.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# See the License for the specific language governing permissions
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# and limitations under the License.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# When distributing Covered Code, include this CDDL HEADER in each
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# If applicable, add the following below this CDDL HEADER, with the
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# fields enclosed by brackets "[]" replaced with your own identifying
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# information: Portions Copyright [yyyy] [name of copyright owner]
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# CDDL HEADER END
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# uts/i86pc/gfx_private/Makefile
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Use is subject to license terms.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#ident "%Z%%M% %I% %E% SMI"
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# This makefile drives the production of the graphics private
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# interface kernel module.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# i86pc platform dependent
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Path to the base of the uts directory tree (usually /usr/src/uts).
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratUTSBASE = ../..
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Define the module and object file sets.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratMODULE = gfx_private
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratOBJECTS = $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratLINTS = $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratVGATEXT_FONT = 8859-1
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratVGATEXT_SRC = $(UTSBASE)/intel/io/vgatext
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfGFXP_VGATEXT = gfxp_vgatext
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfGFXP_VGATEXT_SRC = $(UTSBASE)/i86pc/io/gfx_private
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# dependency
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratLDFLAGS += -dy -Nmisc/pci_autoconfig
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Include common rules.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratinclude $(UTSBASE)/i86pc/Makefile.i86pc
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Define targets
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratALL_TARGET = $(BINARY)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratLINT_TARGET = $(MODULE).lint
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Default build targets.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat.KEEP_STATE:
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratdef: $(DEF_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratall: $(ALL_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratclean: $(CLEAN_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratclobber: $(CLOBBER_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratlint: $(LINT_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratmodlintlib: $(MODLINTLIB_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratclean.lint: $(CLEAN_LINT_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratinstall: $(INSTALL_DEPS)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Custom targets and rules
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat$(OBJS_DIR)/$(VGATEXT_FONT).c: $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat awk -f $(VGATEXT_SRC)/bdf_to_c.awk \
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat$(OBJS_DIR)/$(VGATEXT_FONT).o: $(OBJS_DIR)/$(VGATEXT_FONT).c
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat $(COMPILE.c) -o $@ $<
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat $(CTFCONVERT_O)
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat# Include common targets.
fc1821fee2e1f208a4b5ff3e229e97b87979208arugrat#
fc1821fee2e1f208a4b5ff3e229e97b87979208arugratinclude $(UTSBASE)/i86pc/Makefile.targ