1*1d4b38e0Srsmaeda# 2*1d4b38e0Srsmaeda# CDDL HEADER START 3*1d4b38e0Srsmaeda# 4*1d4b38e0Srsmaeda# The contents of this file are subject to the terms of the 5*1d4b38e0Srsmaeda# Common Development and Distribution License (the "License"). 6*1d4b38e0Srsmaeda# You may not use this file except in compliance with the License. 7*1d4b38e0Srsmaeda# 8*1d4b38e0Srsmaeda# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1d4b38e0Srsmaeda# or http://www.opensolaris.org/os/licensing. 10*1d4b38e0Srsmaeda# See the License for the specific language governing permissions 11*1d4b38e0Srsmaeda# and limitations under the License. 12*1d4b38e0Srsmaeda# 13*1d4b38e0Srsmaeda# When distributing Covered Code, include this CDDL HEADER in each 14*1d4b38e0Srsmaeda# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1d4b38e0Srsmaeda# If applicable, add the following below this CDDL HEADER, with the 16*1d4b38e0Srsmaeda# fields enclosed by brackets "[]" replaced with your own identifying 17*1d4b38e0Srsmaeda# information: Portions Copyright [yyyy] [name of copyright owner] 18*1d4b38e0Srsmaeda# 19*1d4b38e0Srsmaeda# CDDL HEADER END 20*1d4b38e0Srsmaeda# 21*1d4b38e0Srsmaeda 22*1d4b38e0Srsmaeda# 23*1d4b38e0Srsmaeda# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1d4b38e0Srsmaeda# Use is subject to license terms. 25*1d4b38e0Srsmaeda# 26*1d4b38e0Srsmaeda# ident "%Z%%M% %I% %E% SMI" 27*1d4b38e0Srsmaeda# 28*1d4b38e0Srsmaeda# Makefile definitions for sun4v DR Daemon (drd) 29*1d4b38e0Srsmaeda# 30*1d4b38e0Srsmaeda 31*1d4b38e0SrsmaedaPROG= drd 32*1d4b38e0SrsmaedaMANIFEST= drd.xml 33*1d4b38e0SrsmaedaSVCMETHOD= svc-drd 34*1d4b38e0Srsmaeda 35*1d4b38e0Srsmaedainclude ../Makefile.cmd 36*1d4b38e0Srsmaedainclude ../../Makefile.psm 37*1d4b38e0Srsmaeda 38*1d4b38e0SrsmaedaCLASS= 32 39*1d4b38e0Srsmaeda 40*1d4b38e0SrsmaedaPLATFORM= sun4v 41*1d4b38e0Srsmaeda 42*1d4b38e0SrsmaedaSRCS= drd.c \ 43*1d4b38e0Srsmaeda drd_log.c \ 44*1d4b38e0Srsmaeda drd_rcm.c 45*1d4b38e0Srsmaeda 46*1d4b38e0SrsmaedaHDRS= drd.h 47*1d4b38e0Srsmaeda 48*1d4b38e0SrsmaedaOBJS= $(SRCS:%.c=%.o) 49*1d4b38e0Srsmaeda 50*1d4b38e0SrsmaedaLINT_SRCS= $(SRCS) 51*1d4b38e0SrsmaedaLINT_FILES= $(LINT_SRCS:%.c=%.ln) 52*1d4b38e0Srsmaeda 53*1d4b38e0SrsmaedaROOTCMDDIR= $(ROOTLIB)/ldoms 54*1d4b38e0SrsmaedaROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4V) 55*1d4b38e0Srsmaeda$(ROOTMANIFEST) := FILEMODE= 444 56*1d4b38e0Srsmaeda 57*1d4b38e0Srsmaeda# 58*1d4b38e0Srsmaeda# FLAGS: 59*1d4b38e0Srsmaeda# 60*1d4b38e0SrsmaedaCPPFLAGS= -I$(SRC)/uts/sun4v $(CPPFLAGS.master) -D_REENTRANT 61*1d4b38e0Srsmaeda 62*1d4b38e0SrsmaedaLINT_FLAGS= -c -Nlevel=4 -Ncheck 63*1d4b38e0Srsmaeda 64*1d4b38e0SrsmaedaXGETFLAGS += -a -s -x $(PROG).xcl 65*1d4b38e0Srsmaeda 66*1d4b38e0Srsmaeda 67*1d4b38e0Srsmaeda# 68*1d4b38e0Srsmaeda# LIBRARIES: 69*1d4b38e0Srsmaeda# 70*1d4b38e0SrsmaedaLDLIBS += -lkstat \ 71*1d4b38e0Srsmaeda -lnvpair \ 72*1d4b38e0Srsmaeda -lrcm 73*1d4b38e0Srsmaeda 74*1d4b38e0Srsmaeda.KEEP_STATE: 75*1d4b38e0Srsmaeda 76*1d4b38e0Srsmaeda 77*1d4b38e0Srsmaedaall: $(PROG) 78*1d4b38e0Srsmaeda 79*1d4b38e0Srsmaeda$(PROG): $(OBJS) $(HDRS) 80*1d4b38e0Srsmaeda $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 81*1d4b38e0Srsmaeda $(POST_PROCESS) 82*1d4b38e0Srsmaeda 83*1d4b38e0Srsmaedainstall: all .WAIT $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 84*1d4b38e0Srsmaeda 85*1d4b38e0Srsmaedacheck: $(CHKMANIFEST) 86*1d4b38e0Srsmaeda 87*1d4b38e0Srsmaedalint: 88*1d4b38e0Srsmaeda $(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS) 89*1d4b38e0Srsmaeda 90*1d4b38e0Srsmaedaclean: 91*1d4b38e0Srsmaeda $(RM) $(PROG) $(OBJS) $(LINT_FILES) 92*1d4b38e0Srsmaeda 93*1d4b38e0Srsmaedainclude ../Makefile.targ 94*1d4b38e0Srsmaedainclude ../../Makefile.psm.targ 95