Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER START
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# The contents of this file are subject to the terms of the
080575042aba2197b425ebfd52061dea061a9aa1xy# Common Development and Distribution License (the "License").
080575042aba2197b425ebfd52061dea061a9aa1xy# You may not use this file except in compliance with the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# or http://www.opensolaris.org/os/licensing.
080575042aba2197b425ebfd52061dea061a9aa1xy# See the License for the specific language governing permissions
080575042aba2197b425ebfd52061dea061a9aa1xy# and limitations under the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# When distributing Covered Code, include this CDDL HEADER in each
080575042aba2197b425ebfd52061dea061a9aa1xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
080575042aba2197b425ebfd52061dea061a9aa1xy# If applicable, add the following below this CDDL HEADER, with the
080575042aba2197b425ebfd52061dea061a9aa1xy# fields enclosed by brackets "[]" replaced with your own identifying
080575042aba2197b425ebfd52061dea061a9aa1xy# information: Portions Copyright [yyyy] [name of copyright owner]
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER END
080575042aba2197b425ebfd52061dea061a9aa1xy#
47b7744cbea59975a6b583125b7ed1ff2ac45313yy# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy# Use is subject to license terms.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# usr/src/cmd/prtdscp/sparc/sun4u/Makefile
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyPROG= prtdscp
080575042aba2197b425ebfd52061dea061a9aa1xyROOTFS_PROG= $(PROG)
080575042aba2197b425ebfd52061dea061a9aa1xyPLATFORM= SUNW,SPARC-Enterprise
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCLASS= 32
080575042aba2197b425ebfd52061dea061a9aa1xySRCS= $(PROG:%=%.c)
080575042aba2197b425ebfd52061dea061a9aa1xyOBJS= $(PROG:%=%.o)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../../Makefile.cmd
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../../../Makefile.psm
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyLDLIBS += -ldscp -lnsl
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCFLAGS += $(CCVERBOSE)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyLDFLAGS += -L$(USR_PSM_LIB_DIR)
080575042aba2197b425ebfd52061dea061a9aa1xyLDFLAGS += -R\$$ORIGIN/../lib
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyLINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy.KEEP_STATE:
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# Definitions for installation of the program
080575042aba2197b425ebfd52061dea061a9aa1xyFILEMODE= 0755
080575042aba2197b425ebfd52061dea061a9aa1xyROOTPSMPROG = $(USR_PSM_SBIN_DIR)/$(PROG)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyall: $(ROOTFS_PROG)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinstall: all .WAIT $(ROOTPSMPROG)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyclean:
080575042aba2197b425ebfd52061dea061a9aa1xy $(RM) $(PROG) $(OBJS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xylint:
080575042aba2197b425ebfd52061dea061a9aa1xy $(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(SRCS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../../Makefile.targ
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../../../Makefile.psm.targ
080575042aba2197b425ebfd52061dea061a9aa1xy