Makefile revision 450396635f70344c58b6b1e4db38cf17ff34445c
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# CDDL HEADER START
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# The contents of this file are subject to the terms of the
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# Common Development and Distribution License (the "License").
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# You may not use this file except in compliance with the License.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# or http://www.opensolaris.org/os/licensing.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# See the License for the specific language governing permissions
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# and limitations under the License.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
68843c99b695bf194b019d465f6d33e6297fd02aMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# CDDL HEADER END
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# Use is subject to license terms.
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# This makefile drives the production of the pppt pseudo-driver for
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# COMSTAR.
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews#
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews
95317501208f3bf5b159e6a40801b7069f68c486Mark Andrews
73cac2175470e9068829589476dda8bd6d88036fMark AndrewsUTSBASE = ../..
73cac2175470e9068829589476dda8bd6d88036fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark AndrewsARCHDIR:sh = cd ..; basename `pwd`
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# Define the module and object file sets.
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews#
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark AndrewsMODULE = pppt
d9b4174233b951f25cd53a2787b9f14314258c2fMark AndrewsOBJECTS = $(PPPT_OBJS:%=$(OBJS_DIR)/%)
01163d188b89911c3a23fe1125a4cab6764a408cMark AndrewsLINTS = $(PPPT_OBJS:%.o=$(LINTS_DIR)/%.ln)
01163d188b89911c3a23fe1125a4cab6764a408cMark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
01163d188b89911c3a23fe1125a4cab6764a408cMark AndrewsCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/pppt
01163d188b89911c3a23fe1125a4cab6764a408cMark Andrews
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews#
648ba62b1f156cbca14d54d06c535385f1193d13Mark Andrews# Include common rules.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsinclude ../Makefile.$(ARCHDIR)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# Define targets
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
35665db4e49e3e4c0e3776e635449f931f3732cfMark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
c6313caa6cd9d011ac075048d2b62fd3410162dfMark AndrewsLINT_TARGET = $(MODULE).lint
d6dc0d4f584352d2e4305435599ae8c93776d9b4Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
bdfd62f497fe0d5281c25b61271595a4c821a040Mark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# Overrides and depends_on
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews#
bdfd62f497fe0d5281c25b61271595a4c821a040Mark AndrewsMODSTUBS_DIR = $(OBJS_DIR)
bdfd62f497fe0d5281c25b61271595a4c821a040Mark AndrewsLDFLAGS += -dy -Ndrv/stmf
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark AndrewsINC_PATH += -I$(UTSBASE)/common/io/comstar/port/pppt
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews
bdfd62f497fe0d5281c25b61271595a4c821a040Mark AndrewsC99MODE= -xc99=%all
bdfd62f497fe0d5281c25b61271595a4c821a040Mark AndrewsC99LMODE= -Xc99=%all
bdfd62f497fe0d5281c25b61271595a4c821a040Mark Andrews
bdfd62f497fe0d5281c25b61271595a4c821a040Mark Andrews#
bdfd62f497fe0d5281c25b61271595a4c821a040Mark Andrews# Default build targets.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d6dc0d4f584352d2e4305435599ae8c93776d9b4Mark Andrews.KEEP_STATE:
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsdef: $(DEF_DEPS)
64cde9d94a2f6c7050f00d9651df6b05e63d09f2Mark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsall: $(ALL_DEPS)
cbb94d52f98b48e8c3a8866dbf8c67860764f349Mark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsclean: $(CLEAN_DEPS)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsclobber: $(CLOBBER_DEPS)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewslint: $(LINT_DEPS)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews
d6dc0d4f584352d2e4305435599ae8c93776d9b4Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
d6dc0d4f584352d2e4305435599ae8c93776d9b4Mark Andrews
d6dc0d4f584352d2e4305435599ae8c93776d9b4Mark Andrewsinstall: $(INSTALL_DEPS)
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews# Include common targets.
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrews#
d9b4174233b951f25cd53a2787b9f14314258c2fMark Andrewsinclude ../Makefile.targ
b08e3be5dbfba22719ae9c428bd6853ac6f09798Mark Andrews