xref: /illumos-gate/usr/src/uts/i86pc/fipe/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1eca2601cSRandy Fishel#
2eca2601cSRandy Fishel# CDDL HEADER START
3eca2601cSRandy Fishel#
4eca2601cSRandy Fishel# The contents of this file are subject to the terms of the
5eca2601cSRandy Fishel# Common Development and Distribution License (the "License").
6eca2601cSRandy Fishel# You may not use this file except in compliance with the License.
7eca2601cSRandy Fishel#
8eca2601cSRandy Fishel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9eca2601cSRandy Fishel# or http://www.opensolaris.org/os/licensing.
10eca2601cSRandy Fishel# See the License for the specific language governing permissions
11eca2601cSRandy Fishel# and limitations under the License.
12eca2601cSRandy Fishel#
13eca2601cSRandy Fishel# When distributing Covered Code, include this CDDL HEADER in each
14eca2601cSRandy Fishel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15eca2601cSRandy Fishel# If applicable, add the following below this CDDL HEADER, with the
16eca2601cSRandy Fishel# fields enclosed by brackets "[]" replaced with your own identifying
17eca2601cSRandy Fishel# information: Portions Copyright [yyyy] [name of copyright owner]
18eca2601cSRandy Fishel#
19eca2601cSRandy Fishel# CDDL HEADER END
20eca2601cSRandy Fishel#
21eca2601cSRandy Fishel#
22eca2601cSRandy Fishel# Copyright (c) 2009, Intel Corporation.
23eca2601cSRandy Fishel# All rights reserved.
24eca2601cSRandy Fishel#
25fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26fe7a23c8SAndy Fiddaman#
27eca2601cSRandy Fishel
28eca2601cSRandy Fishel#	This makefile drives the production of the fipe
29eca2601cSRandy Fishel#	driver kernel module.
30eca2601cSRandy Fishel#
31eca2601cSRandy Fishel#	i86pc architecture dependent
32eca2601cSRandy Fishel#
33eca2601cSRandy Fishel
34eca2601cSRandy Fishel#
35eca2601cSRandy Fishel#	Path to the base of the uts directory tree (usually /usr/src/uts).
36eca2601cSRandy Fishel#
37eca2601cSRandy FishelUTSBASE	= ../..
38eca2601cSRandy Fishel
39eca2601cSRandy Fishel#
40eca2601cSRandy Fishel#	Define the module and object file sets.
41eca2601cSRandy Fishel#
42eca2601cSRandy FishelMODULE		= fipe
43eca2601cSRandy FishelOBJECTS		= $(FIPE_OBJS:%=$(OBJS_DIR)/%)
44eca2601cSRandy FishelROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
45eca2601cSRandy FishelCONF_SRCDIR	= $(UTSBASE)/i86pc/io/fipe
46eca2601cSRandy Fishel
47eca2601cSRandy Fishel#
48eca2601cSRandy Fishel#	Include common rules.
49eca2601cSRandy Fishel#
50eca2601cSRandy Fishelinclude $(UTSBASE)/i86pc/Makefile.i86pc
51eca2601cSRandy Fishel
52eca2601cSRandy Fishel#
53eca2601cSRandy Fishel#	Define targets
54eca2601cSRandy Fishel#
55eca2601cSRandy FishelALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
56eca2601cSRandy FishelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
57eca2601cSRandy Fishel
58eca2601cSRandy Fishel#
59fe7a23c8SAndy Fiddaman# For now, disable these checks; maintainers should endeavor
60fe7a23c8SAndy Fiddaman# to investigate and remove these for maximum coverage.
61eca2601cSRandy Fishel# Please do not carry these forward to new Makefiles.
62eca2601cSRandy Fishel#
637014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
647014882cSRichard Lowe
65eca2601cSRandy Fishel#
66eca2601cSRandy Fishel#	Dependency
67eca2601cSRandy Fishel#
68*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/dcopy
69eca2601cSRandy Fishel
70eca2601cSRandy Fishel#
71eca2601cSRandy Fishel#	Default build targets.
72eca2601cSRandy Fishel#
73eca2601cSRandy Fishel.KEEP_STATE:
74eca2601cSRandy Fishel
75eca2601cSRandy Fisheldef:		$(DEF_DEPS)
76eca2601cSRandy Fishel
77eca2601cSRandy Fishelall:		$(ALL_DEPS)
78eca2601cSRandy Fishel
79eca2601cSRandy Fishelclean:		$(CLEAN_DEPS)
80eca2601cSRandy Fishel
81eca2601cSRandy Fishelclobber:	$(CLOBBER_DEPS)
82eca2601cSRandy Fishel
83eca2601cSRandy Fishelinstall:	$(INSTALL_DEPS)
84eca2601cSRandy Fishel
85eca2601cSRandy Fishel#
86eca2601cSRandy Fishel#	Include common targets.
87eca2601cSRandy Fishel#
88eca2601cSRandy Fishelinclude $(UTSBASE)/i86pc/Makefile.targ
89