Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
4419N/A#
4419N/A# CDDL HEADER START
4419N/A#
4419N/A# The contents of this file are subject to the terms of the
4419N/A# Common Development and Distribution License (the "License").
4419N/A# You may not use this file except in compliance with the License.
4419N/A#
4419N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4419N/A# or http://www.opensolaris.org/os/licensing.
4419N/A# See the License for the specific language governing permissions
4419N/A# and limitations under the License.
4419N/A#
4419N/A# When distributing Covered Code, include this CDDL HEADER in each
4419N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4419N/A# If applicable, add the following below this CDDL HEADER, with the
4419N/A# fields enclosed by brackets "[]" replaced with your own identifying
4419N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4419N/A#
4419N/A# CDDL HEADER END
4419N/A#
4419N/A#
4419N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4419N/A# Use is subject to license terms.
4419N/A#
4419N/A
4419N/A#
4419N/A# cmd/oplhpd/Makefile
4419N/A#
4419N/A
5680N/APROG = oplhpd
4419N/APLATFORM = SUNW,SPARC-Enterprise
4419N/AMANIFEST = oplhpd.xml
4419N/ASVCMETHOD = svc-oplhpd
4419N/A
4419N/Ainclude ../Makefile.cmd
4419N/Ainclude ../Makefile.cmd.64
4419N/Ainclude ../../Makefile.psm
4419N/A
4419N/ASRCS = oplhpd.c scf_notify.c
4419N/AOBJS = $(SRCS:%.c=%.o)
4419N/ALINTFILES = $(SRCS:%.c=%.ln)
4419N/A
4419N/AROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4U)
4419N/A
4419N/ACPPFLAGS += -I$(SRC)/uts/sun4u/opl
LDLIBS64 += -lsysevent -lnvpair -lcfgadm -ldevinfo
PSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG)
$(PSMPROG) := FILEMODE = 0755
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
install: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
$(USR_PLAT_DIR):
-$(INS.dir.root.sys)
$(USR_PSM_DIR): $(USR_PLAT_DIR)
-$(INS.dir.root.sys)
$(USR_PSM_LIB_DIR): $(USR_PSM_DIR)
-$(INS.dir.root.sys)
$(USR_PSM_LIB64_DIR): $(USR_PSM_LIB_DIR)
-$(INS.dir.root.sys)
$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR)
$(INS.file)
include ../Makefile.targ