xref: /illumos-gate/usr/src/uts/intel/pppt/Makefile (revision 41e0a469c3dbc14deb2b200f6ca6f6e00b5865d0)
145039663SJohn Forte#
245039663SJohn Forte# CDDL HEADER START
345039663SJohn Forte#
445039663SJohn Forte# The contents of this file are subject to the terms of the
545039663SJohn Forte# Common Development and Distribution License (the "License").
645039663SJohn Forte# You may not use this file except in compliance with the License.
745039663SJohn Forte#
845039663SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
945039663SJohn Forte# or http://www.opensolaris.org/os/licensing.
1045039663SJohn Forte# See the License for the specific language governing permissions
1145039663SJohn Forte# and limitations under the License.
1245039663SJohn Forte#
1345039663SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
1445039663SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1545039663SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
1645039663SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
1745039663SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
1845039663SJohn Forte#
1945039663SJohn Forte# CDDL HEADER END
2045039663SJohn Forte#
2145039663SJohn Forte#
224558d122SViswanathan Kannappan# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2345039663SJohn Forte#
2445039663SJohn Forte#	This makefile drives the production of the pppt pseudo-driver for
2545039663SJohn Forte#	COMSTAR.
2645039663SJohn Forte
2745039663SJohn Forte#
2845039663SJohn Forte#	Path to the base of the uts directory tree (usually /usr/src/uts).
2945039663SJohn Forte#
3045039663SJohn Forte
3145039663SJohn Forte
3245039663SJohn ForteUTSBASE	= ../..
3345039663SJohn Forte
3445039663SJohn ForteARCHDIR:sh = cd ..; basename `pwd`
3545039663SJohn Forte
3645039663SJohn Forte#
3745039663SJohn Forte#	Define the module and object file sets.
3845039663SJohn Forte#
3945039663SJohn ForteMODULE		= pppt
4045039663SJohn ForteOBJECTS		= $(PPPT_OBJS:%=$(OBJS_DIR)/%)
4145039663SJohn ForteROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4245039663SJohn ForteCONF_SRCDIR	= $(UTSBASE)/common/io/comstar/port/pppt
4345039663SJohn Forte
4445039663SJohn Forte#
4545039663SJohn Forte#	Include common rules.
4645039663SJohn Forte#
4745039663SJohn Forteinclude ../Makefile.$(ARCHDIR)
4845039663SJohn Forte
4945039663SJohn Forte#
5045039663SJohn Forte#	Define targets
5145039663SJohn Forte#
5245039663SJohn ForteALL_TARGET	= $(BINARY) $(SRC_CONFILE)
5345039663SJohn ForteINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5445039663SJohn Forte
5545039663SJohn Forte#
5645039663SJohn Forte#	Overrides and depends_on
5745039663SJohn Forte#
58*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/stmf
5945039663SJohn Forte
607014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
61d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
627014882cSRichard Lowe
6345039663SJohn Forte#
6445039663SJohn Forte#	Default build targets.
6545039663SJohn Forte#
6645039663SJohn Forte.KEEP_STATE:
6745039663SJohn Forte
6845039663SJohn Fortedef:		$(DEF_DEPS)
6945039663SJohn Forte
7045039663SJohn Forteall:		$(ALL_DEPS)
7145039663SJohn Forte
7245039663SJohn Forteclean:		$(CLEAN_DEPS)
7345039663SJohn Forte
7445039663SJohn Forteclobber:	$(CLOBBER_DEPS)
7545039663SJohn Forte
7645039663SJohn Forteinstall:	$(INSTALL_DEPS)
7745039663SJohn Forte
7845039663SJohn Forte#
7945039663SJohn Forte#	Include common targets.
8045039663SJohn Forte#
8145039663SJohn Forteinclude ../Makefile.targ
82