xref: /titanic_41/usr/src/uts/i86pc/gfx_private/Makefile (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
1fc1821feSrugrat#
2fc1821feSrugrat# CDDL HEADER START
3fc1821feSrugrat#
4fc1821feSrugrat# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7fc1821feSrugrat#
8fc1821feSrugrat# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fc1821feSrugrat# or http://www.opensolaris.org/os/licensing.
10fc1821feSrugrat# See the License for the specific language governing permissions
11fc1821feSrugrat# and limitations under the License.
12fc1821feSrugrat#
13fc1821feSrugrat# When distributing Covered Code, include this CDDL HEADER in each
14fc1821feSrugrat# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fc1821feSrugrat# If applicable, add the following below this CDDL HEADER, with the
16fc1821feSrugrat# fields enclosed by brackets "[]" replaced with your own identifying
17fc1821feSrugrat# information: Portions Copyright [yyyy] [name of copyright owner]
18fc1821feSrugrat#
19fc1821feSrugrat# CDDL HEADER END
20fc1821feSrugrat#
21fc1821feSrugrat#
22fc1821feSrugrat# uts/i86pc/gfx_private/Makefile
232df1fe9cSrandyf# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24fc1821feSrugrat# Use is subject to license terms.
25fc1821feSrugrat#
267014882cSRichard Lowe
27fc1821feSrugrat#
28fc1821feSrugrat#	i86pc platform dependent
29fc1821feSrugrat#
30fc1821feSrugrat
31fc1821feSrugrat#
32fc1821feSrugrat#	Path to the base of the uts directory tree (usually /usr/src/uts).
33fc1821feSrugrat#
34fc1821feSrugratUTSBASE	= ../..
35fc1821feSrugrat
36fc1821feSrugrat#
37fc1821feSrugrat#	Define the module and object file sets.
38fc1821feSrugrat#
39fc1821feSrugratMODULE		= gfx_private
40fc1821feSrugratOBJECTS		= $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o
41fc1821feSrugratLINTS		= $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
42fc1821feSrugratROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
43fc1821feSrugratVGATEXT_FONT	= 8859-1
44fc1821feSrugratVGATEXT_SRC	= $(UTSBASE)/intel/io/vgatext
452df1fe9cSrandyfGFXP_VGATEXT	= gfxp_vgatext
462df1fe9cSrandyfGFXP_VGATEXT_SRC	= $(UTSBASE)/i86pc/io/gfx_private
47fc1821feSrugrat
48fc1821feSrugrat#
49fc1821feSrugrat#	dependency
50fc1821feSrugrat#
51fc1821feSrugratLDFLAGS	+=      -dy -Nmisc/pci_autoconfig
52fc1821feSrugrat
53fc1821feSrugrat#
54fc1821feSrugrat#	Include common rules.
55fc1821feSrugrat#
56fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.i86pc
57fc1821feSrugrat
58fc1821feSrugrat#
59fc1821feSrugrat#	Define targets
60fc1821feSrugrat#
61fc1821feSrugratALL_TARGET	= $(BINARY)
62fc1821feSrugratLINT_TARGET	= $(MODULE).lint
63fc1821feSrugratINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
64fc1821feSrugrat
65fc1821feSrugrat#
66bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
67bb25c06cSjg# to investigate and remove these for maximum lint coverage.
68bb25c06cSjg# Please do not carry these forward to new Makefiles.
69bb25c06cSjg#
70bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
71bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
72bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
73bb25c06cSjg
747014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
757014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
767014882cSRichard Lowe
77*b6805bf7SGordon RossCLOBBERFILES	+= $(OBJS_DIR)/$(VGATEXT_FONT).c
78*b6805bf7SGordon Ross
79bb25c06cSjg#
80fc1821feSrugrat#	Default build targets.
81fc1821feSrugrat#
82fc1821feSrugrat.KEEP_STATE:
83fc1821feSrugrat
84fc1821feSrugratdef:		$(DEF_DEPS)
85fc1821feSrugrat
86fc1821feSrugratall:		$(ALL_DEPS)
87fc1821feSrugrat
88fc1821feSrugratclean:		$(CLEAN_DEPS)
89fc1821feSrugrat
90fc1821feSrugratclobber:	$(CLOBBER_DEPS)
91fc1821feSrugrat
92fc1821feSrugratlint:		$(LINT_DEPS)
93fc1821feSrugrat
94fc1821feSrugratmodlintlib:	$(MODLINTLIB_DEPS)
95fc1821feSrugrat
96fc1821feSrugratclean.lint:	$(CLEAN_LINT_DEPS)
97fc1821feSrugrat
98fc1821feSrugratinstall:	$(INSTALL_DEPS)
99fc1821feSrugrat
100fc1821feSrugrat# Custom targets and rules
101fc1821feSrugrat
102fc1821feSrugrat$(OBJS_DIR)/$(VGATEXT_FONT).c:	$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf
103fc1821feSrugrat	awk -f $(VGATEXT_SRC)/bdf_to_c.awk	\
104fc1821feSrugrat		$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@
105fc1821feSrugrat
106fc1821feSrugrat$(OBJS_DIR)/$(VGATEXT_FONT).o:	$(OBJS_DIR)/$(VGATEXT_FONT).c
107fc1821feSrugrat	$(COMPILE.c) -o $@ $<
108fc1821feSrugrat	$(CTFCONVERT_O)
109fc1821feSrugrat
110fc1821feSrugrat#
111fc1821feSrugrat#	Include common targets.
112fc1821feSrugrat#
113fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.targ
114