450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER START
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# The contents of this file are subject to the terms of the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Common Development and Distribution License (the "License").
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You may not use this file except in compliance with the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# or http://www.opensolaris.org/os/licensing.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# See the License for the specific language governing permissions
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and limitations under the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# If applicable, add the following below this CDDL HEADER, with the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER END
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
4558d122136f151d62acbbc02ddb42df89a5ef66Viswanathan Kannappan# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# This makefile drives the production of the pppt pseudo-driver for
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# COMSTAR.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Path to the base of the uts directory tree (usually /usr/src/uts).
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteUTSBASE = ../..
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteARCHDIR:sh = cd ..; basename `pwd`
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Define the module and object file sets.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteMODULE = pppt
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteOBJECTS = $(PPPT_OBJS:%=$(OBJS_DIR)/%)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLINTS = $(PPPT_OBJS:%.o=$(LINTS_DIR)/%.ln)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/pppt
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Include common rules.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../Makefile.$(ARCHDIR)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Define targets
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteALL_TARGET = $(BINARY) $(SRC_CONFILE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLINT_TARGET = $(MODULE).lint
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Overrides and depends_on
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteMODSTUBS_DIR = $(OBJS_DIR)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteLDFLAGS += -dy -Ndrv/stmf
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteC99MODE= -xc99=%all
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteC99LMODE= -Xc99=%all
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Default build targets.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte.KEEP_STATE:
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortedef: $(DEF_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteall: $(ALL_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteclean: $(CLEAN_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteclobber: $(CLOBBER_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortelint: $(LINT_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortemodlintlib: $(MODLINTLIB_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteclean.lint: $(CLEAN_LINT_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinstall: $(INSTALL_DEPS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Include common targets.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../Makefile.targ