1*45039663SJohn Forte# 2*45039663SJohn Forte# CDDL HEADER START 3*45039663SJohn Forte# 4*45039663SJohn Forte# The contents of this file are subject to the terms of the 5*45039663SJohn Forte# Common Development and Distribution License (the "License"). 6*45039663SJohn Forte# You may not use this file except in compliance with the License. 7*45039663SJohn Forte# 8*45039663SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*45039663SJohn Forte# or http://www.opensolaris.org/os/licensing. 10*45039663SJohn Forte# See the License for the specific language governing permissions 11*45039663SJohn Forte# and limitations under the License. 12*45039663SJohn Forte# 13*45039663SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each 14*45039663SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*45039663SJohn Forte# If applicable, add the following below this CDDL HEADER, with the 16*45039663SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying 17*45039663SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner] 18*45039663SJohn Forte# 19*45039663SJohn Forte# CDDL HEADER END 20*45039663SJohn Forte# 21*45039663SJohn Forte# 22*45039663SJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*45039663SJohn Forte# Use is subject to license terms. 24*45039663SJohn Forte# 25*45039663SJohn Forte# This makefile drives the production of the pppt pseudo-driver for 26*45039663SJohn Forte# COMSTAR. 27*45039663SJohn Forte 28*45039663SJohn Forte# 29*45039663SJohn Forte# Path to the base of the uts directory tree (usually /usr/src/uts). 30*45039663SJohn Forte# 31*45039663SJohn Forte 32*45039663SJohn Forte 33*45039663SJohn ForteUTSBASE = ../.. 34*45039663SJohn Forte 35*45039663SJohn ForteARCHDIR:sh = cd ..; basename `pwd` 36*45039663SJohn Forte 37*45039663SJohn Forte# 38*45039663SJohn Forte# Define the module and object file sets. 39*45039663SJohn Forte# 40*45039663SJohn ForteMODULE = pppt 41*45039663SJohn ForteOBJECTS = $(PPPT_OBJS:%=$(OBJS_DIR)/%) 42*45039663SJohn ForteLINTS = $(PPPT_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*45039663SJohn ForteROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44*45039663SJohn ForteCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/pppt 45*45039663SJohn Forte 46*45039663SJohn Forte# 47*45039663SJohn Forte# Include common rules. 48*45039663SJohn Forte# 49*45039663SJohn Forteinclude ../Makefile.$(ARCHDIR) 50*45039663SJohn Forte 51*45039663SJohn Forte# 52*45039663SJohn Forte# Define targets 53*45039663SJohn Forte# 54*45039663SJohn ForteALL_TARGET = $(BINARY) $(SRC_CONFILE) 55*45039663SJohn ForteLINT_TARGET = $(MODULE).lint 56*45039663SJohn ForteINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 57*45039663SJohn Forte 58*45039663SJohn Forte# 59*45039663SJohn Forte# Overrides and depends_on 60*45039663SJohn Forte# 61*45039663SJohn ForteMODSTUBS_DIR = $(OBJS_DIR) 62*45039663SJohn ForteLDFLAGS += -dy -Ndrv/stmf 63*45039663SJohn Forte 64*45039663SJohn ForteINC_PATH += -I$(UTSBASE)/common/io/comstar/port/pppt 65*45039663SJohn Forte 66*45039663SJohn ForteC99MODE= -xc99=%all 67*45039663SJohn ForteC99LMODE= -Xc99=%all 68*45039663SJohn Forte 69*45039663SJohn Forte# 70*45039663SJohn Forte# Default build targets. 71*45039663SJohn Forte# 72*45039663SJohn Forte.KEEP_STATE: 73*45039663SJohn Forte 74*45039663SJohn Fortedef: $(DEF_DEPS) 75*45039663SJohn Forte 76*45039663SJohn Forteall: $(ALL_DEPS) 77*45039663SJohn Forte 78*45039663SJohn Forteclean: $(CLEAN_DEPS) 79*45039663SJohn Forte 80*45039663SJohn Forteclobber: $(CLOBBER_DEPS) 81*45039663SJohn Forte 82*45039663SJohn Fortelint: $(LINT_DEPS) 83*45039663SJohn Forte 84*45039663SJohn Fortemodlintlib: $(MODLINTLIB_DEPS) 85*45039663SJohn Forte 86*45039663SJohn Forteclean.lint: $(CLEAN_LINT_DEPS) 87*45039663SJohn Forte 88*45039663SJohn Forteinstall: $(INSTALL_DEPS) 89*45039663SJohn Forte 90*45039663SJohn Forte# 91*45039663SJohn Forte# Include common targets. 92*45039663SJohn Forte# 93*45039663SJohn Forteinclude ../Makefile.targ 94