xref: /titanic_44/usr/src/uts/intel/pppt/Makefile (revision 4558d122136f151d62acbbc02ddb42df89a5ef66)
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#
22*4558d122SViswanathan 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 ForteLINTS		= $(PPPT_OBJS:%.o=$(LINTS_DIR)/%.ln)
4245039663SJohn ForteROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4345039663SJohn ForteCONF_SRCDIR	= $(UTSBASE)/common/io/comstar/port/pppt
4445039663SJohn Forte
4545039663SJohn Forte#
4645039663SJohn Forte#	Include common rules.
4745039663SJohn Forte#
4845039663SJohn Forteinclude ../Makefile.$(ARCHDIR)
4945039663SJohn Forte
5045039663SJohn Forte#
5145039663SJohn Forte#	Define targets
5245039663SJohn Forte#
5345039663SJohn ForteALL_TARGET	= $(BINARY) $(SRC_CONFILE)
5445039663SJohn ForteLINT_TARGET	= $(MODULE).lint
5545039663SJohn ForteINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5645039663SJohn Forte
5745039663SJohn Forte#
5845039663SJohn Forte#	Overrides and depends_on
5945039663SJohn Forte#
6045039663SJohn ForteMODSTUBS_DIR	 = $(OBJS_DIR)
6145039663SJohn ForteLDFLAGS		+= -dy -Ndrv/stmf
6245039663SJohn Forte
6345039663SJohn ForteC99MODE=	-xc99=%all
6445039663SJohn ForteC99LMODE=	-Xc99=%all
6545039663SJohn Forte
6645039663SJohn Forte#
6745039663SJohn Forte#	Default build targets.
6845039663SJohn Forte#
6945039663SJohn Forte.KEEP_STATE:
7045039663SJohn Forte
7145039663SJohn Fortedef:		$(DEF_DEPS)
7245039663SJohn Forte
7345039663SJohn Forteall:		$(ALL_DEPS)
7445039663SJohn Forte
7545039663SJohn Forteclean:		$(CLEAN_DEPS)
7645039663SJohn Forte
7745039663SJohn Forteclobber:	$(CLOBBER_DEPS)
7845039663SJohn Forte
7945039663SJohn Fortelint:		$(LINT_DEPS)
8045039663SJohn Forte
8145039663SJohn Fortemodlintlib:	$(MODLINTLIB_DEPS)
8245039663SJohn Forte
8345039663SJohn Forteclean.lint:	$(CLEAN_LINT_DEPS)
8445039663SJohn Forte
8545039663SJohn Forteinstall:	$(INSTALL_DEPS)
8645039663SJohn Forte
8745039663SJohn Forte#
8845039663SJohn Forte#	Include common targets.
8945039663SJohn Forte#
9045039663SJohn Forteinclude ../Makefile.targ
91