xref: /titanic_50/usr/src/uts/i86xpv/gfx_private/Makefile (revision 7b07063d906859b2be1e88791f801b3c96e432f6)
1843e1988Sjohnlev#
2843e1988Sjohnlev# CDDL HEADER START
3843e1988Sjohnlev#
4843e1988Sjohnlev# The contents of this file are subject to the terms of the
5843e1988Sjohnlev# Common Development and Distribution License (the "License").
6843e1988Sjohnlev# You may not use this file except in compliance with the License.
7843e1988Sjohnlev#
8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing.
10843e1988Sjohnlev# See the License for the specific language governing permissions
11843e1988Sjohnlev# and limitations under the License.
12843e1988Sjohnlev#
13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18843e1988Sjohnlev#
19843e1988Sjohnlev# CDDL HEADER END
20843e1988Sjohnlev#
21843e1988Sjohnlev
22843e1988Sjohnlev#
23843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24843e1988Sjohnlev# Use is subject to license terms.
25*7b07063dSIgor Kozhukhov# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
26843e1988Sjohnlev#
277014882cSRichard Lowe
28843e1988Sjohnlev#
29843e1988Sjohnlev#	This makefile drives the production of the graphics private
30843e1988Sjohnlev#	interface kernel module.
31843e1988Sjohnlev#
32843e1988Sjohnlev#	i86xpv platform dependent
33843e1988Sjohnlev#
34843e1988Sjohnlev
35843e1988Sjohnlev#
36843e1988Sjohnlev#	Path to the base of the uts directory tree (usually /usr/src/uts).
37843e1988Sjohnlev#
38843e1988SjohnlevUTSBASE	= ../..
39843e1988Sjohnlev
40843e1988Sjohnlev#
41843e1988Sjohnlev#	Define the module and object file sets.
42843e1988Sjohnlev#
43843e1988SjohnlevMODULE		= gfx_private
44843e1988SjohnlevOBJECTS		= $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o
45843e1988SjohnlevLINTS		= $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
46843e1988SjohnlevROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
47843e1988SjohnlevVGATEXT_FONT	= 8859-1
48843e1988SjohnlevVGATEXT_SRC	= $(UTSBASE)/intel/io/vgatext
49843e1988Sjohnlev
50843e1988Sjohnlev#
51843e1988Sjohnlev#	dependency
52843e1988Sjohnlev#
53843e1988SjohnlevLDFLAGS	+=      -dy -Nmisc/pci_autoconfig
54843e1988Sjohnlev
55843e1988Sjohnlev#
56843e1988Sjohnlev#	Include common rules.
57843e1988Sjohnlev#
58843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
59843e1988Sjohnlev
60843e1988Sjohnlev#
61843e1988Sjohnlev#	Define targets
62843e1988Sjohnlev#
63843e1988SjohnlevALL_TARGET	= $(BINARY)
64843e1988SjohnlevLINT_TARGET	= $(MODULE).lint
65843e1988SjohnlevINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
66843e1988Sjohnlev
67843e1988SjohnlevLINTTAGS +=	-erroff=E_ASSIGN_NARROW_CONV
68843e1988SjohnlevLINTTAGS +=	-erroff=E_BAD_PTR_CAST_ALIGN
69843e1988SjohnlevLINTTAGS +=	-erroff=E_STATIC_UNUSED
70843e1988Sjohnlev
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
737014882cSRichard Lowe
74b6805bf7SGordon RossCLOBBERFILES	+= $(OBJS_DIR)/$(VGATEXT_FONT).c
75b6805bf7SGordon Ross
76843e1988Sjohnlev#
77843e1988Sjohnlev#	Default build targets.
78843e1988Sjohnlev#
79843e1988Sjohnlev.KEEP_STATE:
80843e1988Sjohnlev
81843e1988Sjohnlevdef:		$(DEF_DEPS)
82843e1988Sjohnlev
83843e1988Sjohnlevall:		$(ALL_DEPS)
84843e1988Sjohnlev
85843e1988Sjohnlevclean:		$(CLEAN_DEPS)
86843e1988Sjohnlev
87843e1988Sjohnlevclobber:	$(CLOBBER_DEPS)
88843e1988Sjohnlev
89843e1988Sjohnlevlint:		$(LINT_DEPS)
90843e1988Sjohnlev
91843e1988Sjohnlevmodlintlib:	$(MODLINTLIB_DEPS)
92843e1988Sjohnlev
93843e1988Sjohnlevclean.lint:	$(CLEAN_LINT_DEPS)
94843e1988Sjohnlev
95843e1988Sjohnlevinstall:	$(INSTALL_DEPS)
96843e1988Sjohnlev
97843e1988Sjohnlev# Custom targets and rules
98843e1988Sjohnlev
99843e1988Sjohnlev$(OBJS_DIR)/$(VGATEXT_FONT).c:	$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf
100*7b07063dSIgor Kozhukhov	$(AWK) -f $(VGATEXT_SRC)/bdf_to_c.awk	\
101843e1988Sjohnlev		$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@
102843e1988Sjohnlev
103843e1988Sjohnlev$(OBJS_DIR)/$(VGATEXT_FONT).o:	$(OBJS_DIR)/$(VGATEXT_FONT).c
104843e1988Sjohnlev	$(COMPILE.c) -o $@ $<
105843e1988Sjohnlev	$(CTFCONVERT_O)
106843e1988Sjohnlev
107843e1988Sjohnlev#
108843e1988Sjohnlev#	Include common targets.
109843e1988Sjohnlev#
110843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
111