Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim# CDDL HEADER START
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim# The contents of this file are subject to the terms of the
6988b3c9a24f46e053cd8de93b010199fa470254jim# Common Development and Distribution License (the "License").
6988b3c9a24f46e053cd8de93b010199fa470254jim# You may not use this file except in compliance with the License.
349af90d35df141de9f6eef9ca4feed545c93431jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e191199a0aeab09d78df8f5579e745572e8b7bcwsanchez# or http://www.opensolaris.org/os/licensing.
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# See the License for the specific language governing permissions
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# and limitations under the License.
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim#
4e191199a0aeab09d78df8f5579e745572e8b7bcwsanchez# When distributing Covered Code, include this CDDL HEADER in each
4e191199a0aeab09d78df8f5579e745572e8b7bcwsanchez# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# If applicable, add the following below this CDDL HEADER, with the
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# fields enclosed by brackets "[]" replaced with your own identifying
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# information: Portions Copyright [yyyy] [name of copyright owner]
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim#
52da115a47affa898750b7bd0784e2104478dafdwsanchez# CDDL HEADER END
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim#
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim#
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantz#
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantz# This makefile drives the production of the pppt pseudo-driver for
40e8f581ca6f52dba940601f0e7c93a7c132bc30jim# COMSTAR.
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantz
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantz#
6988b3c9a24f46e053cd8de93b010199fa470254jim# Path to the base of the uts directory tree (usually /usr/src/uts).
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim
6988b3c9a24f46e053cd8de93b010199fa470254jim
6988b3c9a24f46e053cd8de93b010199fa470254jimUTSBASE = ../..
6988b3c9a24f46e053cd8de93b010199fa470254jim
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantzARCHDIR:sh = cd ..; basename `pwd`
6988b3c9a24f46e053cd8de93b010199fa470254jim
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim# Define the module and object file sets.
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jimMODULE = pppt
6988b3c9a24f46e053cd8de93b010199fa470254jimOBJECTS = $(PPPT_OBJS:%=$(OBJS_DIR)/%)
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantzLINTS = $(PPPT_OBJS:%.o=$(LINTS_DIR)/%.ln)
4e329cef87cc240c00b3008f1fac2b157b2f7881jerenkrantzROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
6988b3c9a24f46e053cd8de93b010199fa470254jimCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/pppt
6988b3c9a24f46e053cd8de93b010199fa470254jim
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jim# Include common rules.
6988b3c9a24f46e053cd8de93b010199fa470254jim#
6988b3c9a24f46e053cd8de93b010199fa470254jiminclude ../Makefile.$(ARCHDIR)
6988b3c9a24f46e053cd8de93b010199fa470254jim
349af90d35df141de9f6eef9ca4feed545c93431jim#
349af90d35df141de9f6eef9ca4feed545c93431jim# Define targets
349af90d35df141de9f6eef9ca4feed545c93431jim#
349af90d35df141de9f6eef9ca4feed545c93431jimALL_TARGET = $(BINARY) $(SRC_CONFILE)
349af90d35df141de9f6eef9ca4feed545c93431jimLINT_TARGET = $(MODULE).lint
349af90d35df141de9f6eef9ca4feed545c93431jimINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
349af90d35df141de9f6eef9ca4feed545c93431jim
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantz#
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantz# Overrides and depends_on
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantz#
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantzMODSTUBS_DIR = $(OBJS_DIR)
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantzLDFLAGS += -dy -Ndrv/stmf
942f9b7d835bb864a76719c131efcf3861450c96jerenkrantz
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyC99MODE= -xc99=%all
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyC99LMODE= -Xc99=%all
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyCERRWARN += -_gcc=-Wno-switch
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyCERRWARN += -_gcc=-Wno-uninitialized
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolley#
acd876b8000ff4112cfecb981491b3789b06e753jwoolley# Default build targets.
acd876b8000ff4112cfecb981491b3789b06e753jwoolley#
acd876b8000ff4112cfecb981491b3789b06e753jwoolley.KEEP_STATE:
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleydef: $(DEF_DEPS)
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyall: $(ALL_DEPS)
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyclean: $(CLEAN_DEPS)
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleyclobber: $(CLOBBER_DEPS)
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleylint: $(LINT_DEPS)
acd876b8000ff4112cfecb981491b3789b06e753jwoolley
acd876b8000ff4112cfecb981491b3789b06e753jwoolleymodlintlib: $(MODLINTLIB_DEPS)
6f81bc7054b74627e507a7cad40181d3b0b14032trawick
6f81bc7054b74627e507a7cad40181d3b0b14032trawickclean.lint: $(CLEAN_LINT_DEPS)
6f81bc7054b74627e507a7cad40181d3b0b14032trawick
6f81bc7054b74627e507a7cad40181d3b0b14032trawickinstall: $(INSTALL_DEPS)
6f81bc7054b74627e507a7cad40181d3b0b14032trawick
6f81bc7054b74627e507a7cad40181d3b0b14032trawick#
6f81bc7054b74627e507a7cad40181d3b0b14032trawick# Include common targets.
6f81bc7054b74627e507a7cad40181d3b0b14032trawick#
6f81bc7054b74627e507a7cad40181d3b0b14032trawickinclude ../Makefile.targ
6f81bc7054b74627e507a7cad40181d3b0b14032trawick