Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle# If applicable, add the following below this CDDL HEADER, with the
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
9d12795f87b63c2e39e87bff369182edd34677d3Robert Mustacchi# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# uts/i86pc/gfx_private/Makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This makefile drives the production of the graphics private
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# interface kernel module.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# i86pc platform dependent
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Path to the base of the uts directory tree (usually /usr/src/uts).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweUTSBASE = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Define the module and object file sets.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweMODULE = gfx_private
9d12795f87b63c2e39e87bff369182edd34677d3Robert MustacchiOBJECTS = $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTS = $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweVGATEXT_FONT = 8859-1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweVGATEXT_SRC = $(UTSBASE)/intel/io/vgatext
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# dependency
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDFLAGS += -dy -Nmisc/pci_autoconfig
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Include common rules.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(UTSBASE)/i86pc/Makefile.i86pc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Define targets
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweALL_TARGET = $(BINARY)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINT_TARGET = $(MODULE).lint
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
89b9271284be1a4e3e3053d7bc12f9bbf8145b06Robert Mustacchi
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# For now, disable these lint checks; maintainers should endeavor
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# to investigate and remove these for maximum lint coverage.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Please do not carry these forward to new Makefiles.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTTAGS += -erroff=E_STATIC_UNUSED
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Default build targets.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowedef: $(DEF_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall: $(ALL_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean: $(CLEAN_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclobber: $(CLOBBER_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelint: $(LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowemodlintlib: $(MODLINTLIB_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean.lint: $(CLEAN_LINT_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: $(INSTALL_DEPS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Custom targets and rules
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(OBJS_DIR)/$(VGATEXT_FONT).c: $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe awk -f $(VGATEXT_SRC)/bdf_to_c.awk \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(OBJS_DIR)/$(VGATEXT_FONT).o: $(OBJS_DIR)/$(VGATEXT_FONT).c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(COMPILE.c) -o $@ $<
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(CTFCONVERT_O)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Include common targets.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(UTSBASE)/i86pc/Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe