15cff7825Smh# 25cff7825Smh# CDDL HEADER START 35cff7825Smh# 45cff7825Smh# The contents of this file are subject to the terms of the 55cff7825Smh# Common Development and Distribution License (the "License"). 65cff7825Smh# You may not use this file except in compliance with the License. 75cff7825Smh# 85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95cff7825Smh# or http://www.opensolaris.org/os/licensing. 105cff7825Smh# See the License for the specific language governing permissions 115cff7825Smh# and limitations under the License. 125cff7825Smh# 135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each 145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the 165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying 175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner] 185cff7825Smh# 195cff7825Smh# CDDL HEADER END 205cff7825Smh# 21843e1988Sjohnlev 225cff7825Smh# 235cff7825Smh# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 245cff7825Smh# Use is subject to license terms. 255cff7825Smh# 26*7014882cSRichard Lowe 27843e1988Sjohnlev# 28843e1988Sjohnlev# This makefile drives the production of the graphics private 29843e1988Sjohnlev# interface kernel module. 305cff7825Smh# 31843e1988Sjohnlev# i86xpv platform dependent 325cff7825Smh# 335cff7825Smh 345cff7825Smh# 355cff7825Smh# Path to the base of the uts directory tree (usually /usr/src/uts). 365cff7825Smh# 37843e1988SjohnlevUTSBASE = ../.. 385cff7825Smh 395cff7825Smh# 405cff7825Smh# Define the module and object file sets. 415cff7825Smh# 42843e1988SjohnlevMODULE = gfx_private 43843e1988SjohnlevOBJECTS = $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o 44843e1988SjohnlevLINTS = $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln) 45843e1988SjohnlevROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 46843e1988SjohnlevVGATEXT_FONT = 8859-1 47843e1988SjohnlevVGATEXT_SRC = $(UTSBASE)/intel/io/vgatext 48843e1988Sjohnlev 49843e1988Sjohnlev# 50843e1988Sjohnlev# dependency 51843e1988Sjohnlev# 52843e1988SjohnlevLDFLAGS += -dy -Nmisc/pci_autoconfig 535cff7825Smh 545cff7825Smh# 555cff7825Smh# Include common rules. 565cff7825Smh# 57843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 585cff7825Smh 595cff7825Smh# 605cff7825Smh# Define targets 615cff7825Smh# 625cff7825SmhALL_TARGET = $(BINARY) 635cff7825SmhLINT_TARGET = $(MODULE).lint 645cff7825SmhINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 655cff7825Smh 66843e1988SjohnlevLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 67843e1988SjohnlevLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 68843e1988SjohnlevLINTTAGS += -erroff=E_STATIC_UNUSED 69843e1988Sjohnlev 70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 71*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 72*7014882cSRichard Lowe 735cff7825Smh# 745cff7825Smh# Default build targets. 755cff7825Smh# 765cff7825Smh.KEEP_STATE: 775cff7825Smh 785cff7825Smhdef: $(DEF_DEPS) 795cff7825Smh 805cff7825Smhall: $(ALL_DEPS) 815cff7825Smh 825cff7825Smhclean: $(CLEAN_DEPS) 835cff7825Smh 845cff7825Smhclobber: $(CLOBBER_DEPS) 855cff7825Smh 865cff7825Smhlint: $(LINT_DEPS) 875cff7825Smh 885cff7825Smhmodlintlib: $(MODLINTLIB_DEPS) 895cff7825Smh 905cff7825Smhclean.lint: $(CLEAN_LINT_DEPS) 915cff7825Smh 925cff7825Smhinstall: $(INSTALL_DEPS) 935cff7825Smh 94843e1988Sjohnlev# Custom targets and rules 95843e1988Sjohnlev 96843e1988Sjohnlev$(OBJS_DIR)/$(VGATEXT_FONT).c: $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf 97843e1988Sjohnlev awk -f $(VGATEXT_SRC)/bdf_to_c.awk \ 98843e1988Sjohnlev $(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@ 99843e1988Sjohnlev 100843e1988Sjohnlev$(OBJS_DIR)/$(VGATEXT_FONT).o: $(OBJS_DIR)/$(VGATEXT_FONT).c 101843e1988Sjohnlev $(COMPILE.c) -o $@ $< 102843e1988Sjohnlev $(CTFCONVERT_O) 103843e1988Sjohnlev 1045cff7825Smh# 1055cff7825Smh# Include common targets. 1065cff7825Smh# 107843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ 108