xref: /illumos-gate/usr/src/uts/i86pc/apix/Makefile (revision dccbe85045092d9c23c58a4d604e7c57285ba30f)
17ff178cdSJimmy Vetayases#
27ff178cdSJimmy Vetayases# CDDL HEADER START
37ff178cdSJimmy Vetayases#
47ff178cdSJimmy Vetayases# The contents of this file are subject to the terms of the
57ff178cdSJimmy Vetayases# Common Development and Distribution License (the "License").
67ff178cdSJimmy Vetayases# You may not use this file except in compliance with the License.
77ff178cdSJimmy Vetayases#
87ff178cdSJimmy Vetayases# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97ff178cdSJimmy Vetayases# or http://www.opensolaris.org/os/licensing.
107ff178cdSJimmy Vetayases# See the License for the specific language governing permissions
117ff178cdSJimmy Vetayases# and limitations under the License.
127ff178cdSJimmy Vetayases#
137ff178cdSJimmy Vetayases# When distributing Covered Code, include this CDDL HEADER in each
147ff178cdSJimmy Vetayases# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157ff178cdSJimmy Vetayases# If applicable, add the following below this CDDL HEADER, with the
167ff178cdSJimmy Vetayases# fields enclosed by brackets "[]" replaced with your own identifying
177ff178cdSJimmy Vetayases# information: Portions Copyright [yyyy] [name of copyright owner]
187ff178cdSJimmy Vetayases#
197ff178cdSJimmy Vetayases# CDDL HEADER END
207ff178cdSJimmy Vetayases#
217ff178cdSJimmy Vetayases#
227ff178cdSJimmy Vetayases# uts/i86pc/apix/Makefile
237ff178cdSJimmy Vetayases#
247ff178cdSJimmy Vetayases# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
25*dccbe850SJohn Levon# Copyright (c) 2019, Joyent, Inc.
267ff178cdSJimmy Vetayases#
27583cd330SHans Rosenfeld#	This makefile drives the production of the apix "mach"
287ff178cdSJimmy Vetayases#	kernel module.
297ff178cdSJimmy Vetayases#
30583cd330SHans Rosenfeld#	apix implementation architecture dependent
317ff178cdSJimmy Vetayases#
327ff178cdSJimmy Vetayases
337ff178cdSJimmy Vetayases#
347ff178cdSJimmy Vetayases#	Path to the base of the uts directory tree (usually /usr/src/uts).
357ff178cdSJimmy Vetayases#
367ff178cdSJimmy VetayasesUTSBASE	= ../..
377ff178cdSJimmy Vetayases
387ff178cdSJimmy Vetayases#
397ff178cdSJimmy Vetayases#	Define the module and object file sets.
407ff178cdSJimmy Vetayases#
417ff178cdSJimmy VetayasesMODULE		= apix
427ff178cdSJimmy VetayasesOBJECTS		= $(APIX_OBJS:%=$(OBJS_DIR)/%)
437ff178cdSJimmy VetayasesLINTS		= $(APIX_OBJS:%.o=$(LINTS_DIR)/%.ln)
447ff178cdSJimmy VetayasesROOTMODULE	= $(ROOT_PSM_MACH_DIR)/$(MODULE)
457ff178cdSJimmy Vetayases
467ff178cdSJimmy Vetayases#
477ff178cdSJimmy Vetayases#	Include common rules.
487ff178cdSJimmy Vetayases#
497ff178cdSJimmy Vetayasesinclude $(UTSBASE)/i86pc/Makefile.i86pc
507ff178cdSJimmy Vetayases
517ff178cdSJimmy Vetayases#
527ff178cdSJimmy Vetayases#	Define targets
537ff178cdSJimmy Vetayases#
547ff178cdSJimmy VetayasesALL_TARGET	= $(BINARY)
557ff178cdSJimmy VetayasesLINT_TARGET	= $(MODULE).lint
567ff178cdSJimmy VetayasesINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
577ff178cdSJimmy Vetayases
587ff178cdSJimmy VetayasesDEBUG_FLGS      =
597ff178cdSJimmy Vetayases$(NOT_RELEASE_BUILD)DEBUG_DEFS	+= $(DEBUG_FLGS)
607ff178cdSJimmy Vetayases
617ff178cdSJimmy Vetayases#
627ff178cdSJimmy Vetayases# Depends on ACPI CA interpreter
637ff178cdSJimmy Vetayases#
647ff178cdSJimmy VetayasesLDFLAGS		+= -dy -N misc/acpica
657ff178cdSJimmy Vetayases
66b6b206fcSJohn Levon# needs work
67b6b206fcSJohn Levon$(OBJS_DIR)/psm_common.o := SMOFF += deref_check
68b6b206fcSJohn Levon
697ff178cdSJimmy Vetayases#
707ff178cdSJimmy Vetayases#	Default build targets.
717ff178cdSJimmy Vetayases#
727ff178cdSJimmy Vetayases.KEEP_STATE:
737ff178cdSJimmy Vetayases
747ff178cdSJimmy Vetayasesdef:		$(DEF_DEPS)
757ff178cdSJimmy Vetayases
767ff178cdSJimmy Vetayasesall:		$(ALL_DEPS)
777ff178cdSJimmy Vetayases
787ff178cdSJimmy Vetayasesclean:		$(CLEAN_DEPS)
797ff178cdSJimmy Vetayases
807ff178cdSJimmy Vetayasesclobber:	$(CLOBBER_DEPS)
817ff178cdSJimmy Vetayases
827ff178cdSJimmy Vetayaseslint:		$(LINT_DEPS)
837ff178cdSJimmy Vetayases
847ff178cdSJimmy Vetayasesmodlintlib:	$(MODLINTLIB_DEPS)
857ff178cdSJimmy Vetayases
867ff178cdSJimmy Vetayasesclean.lint:	$(CLEAN_LINT_DEPS)
877ff178cdSJimmy Vetayases
887ff178cdSJimmy Vetayasesinstall:	$(INSTALL_DEPS)
897ff178cdSJimmy Vetayases
907ff178cdSJimmy Vetayases#
917ff178cdSJimmy Vetayases#	Include common targets.
927ff178cdSJimmy Vetayases#
937ff178cdSJimmy Vetayasesinclude $(UTSBASE)/i86pc/Makefile.targ
947ff178cdSJimmy Vetayases
95