xref: /titanic_52/usr/src/cmd/drd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
11d4b38e0Srsmaeda#
21d4b38e0Srsmaeda# CDDL HEADER START
31d4b38e0Srsmaeda#
41d4b38e0Srsmaeda# The contents of this file are subject to the terms of the
51d4b38e0Srsmaeda# Common Development and Distribution License (the "License").
61d4b38e0Srsmaeda# You may not use this file except in compliance with the License.
71d4b38e0Srsmaeda#
81d4b38e0Srsmaeda# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91d4b38e0Srsmaeda# or http://www.opensolaris.org/os/licensing.
101d4b38e0Srsmaeda# See the License for the specific language governing permissions
111d4b38e0Srsmaeda# and limitations under the License.
121d4b38e0Srsmaeda#
131d4b38e0Srsmaeda# When distributing Covered Code, include this CDDL HEADER in each
141d4b38e0Srsmaeda# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151d4b38e0Srsmaeda# If applicable, add the following below this CDDL HEADER, with the
161d4b38e0Srsmaeda# fields enclosed by brackets "[]" replaced with your own identifying
171d4b38e0Srsmaeda# information: Portions Copyright [yyyy] [name of copyright owner]
181d4b38e0Srsmaeda#
191d4b38e0Srsmaeda# CDDL HEADER END
201d4b38e0Srsmaeda#
211d4b38e0Srsmaeda
221d4b38e0Srsmaeda#
231d4b38e0Srsmaeda# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
241d4b38e0Srsmaeda# Use is subject to license terms.
251d4b38e0Srsmaeda#
26*7014882cSRichard Lowe
271d4b38e0Srsmaeda#
281d4b38e0Srsmaeda# Makefile definitions for sun4v DR Daemon (drd)
291d4b38e0Srsmaeda#
301d4b38e0Srsmaeda
311d4b38e0SrsmaedaPROG=		drd
321d4b38e0SrsmaedaMANIFEST=	drd.xml
331d4b38e0SrsmaedaSVCMETHOD=	svc-drd
341d4b38e0Srsmaeda
351d4b38e0Srsmaedainclude ../Makefile.cmd
361d4b38e0Srsmaedainclude ../../Makefile.psm
371d4b38e0Srsmaeda
381d4b38e0SrsmaedaCLASS=		32
391d4b38e0Srsmaeda
401d4b38e0SrsmaedaPLATFORM=	sun4v
411d4b38e0Srsmaeda
421d4b38e0SrsmaedaSRCS=		drd.c		\
431d4b38e0Srsmaeda		drd_log.c	\
441d4b38e0Srsmaeda		drd_rcm.c
451d4b38e0Srsmaeda
461d4b38e0SrsmaedaHDRS=		drd.h
471d4b38e0Srsmaeda
481d4b38e0SrsmaedaOBJS=		$(SRCS:%.c=%.o)
491d4b38e0Srsmaeda
501d4b38e0SrsmaedaLINT_SRCS=	$(SRCS)
511d4b38e0SrsmaedaLINT_FILES=	$(LINT_SRCS:%.c=%.ln)
521d4b38e0Srsmaeda
531d4b38e0SrsmaedaROOTCMDDIR=		$(ROOTLIB)/ldoms
541d4b38e0SrsmaedaROOTMANIFESTDIR=	$(ROOTSVCPLATFORMSUN4V)
551d4b38e0Srsmaeda$(ROOTMANIFEST)		:= FILEMODE= 444
561d4b38e0Srsmaeda
571d4b38e0Srsmaeda#
581d4b38e0Srsmaeda# FLAGS:
591d4b38e0Srsmaeda#
601d4b38e0SrsmaedaCPPFLAGS= 	-I$(SRC)/uts/sun4v $(CPPFLAGS.master) -D_REENTRANT
611d4b38e0Srsmaeda
621d4b38e0SrsmaedaLINT_FLAGS=	-c -Nlevel=4 -Ncheck
631d4b38e0Srsmaeda
641d4b38e0SrsmaedaXGETFLAGS +=	-a -s -x $(PROG).xcl
651d4b38e0Srsmaeda
66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
67*7014882cSRichard Lowe
681d4b38e0Srsmaeda
691d4b38e0Srsmaeda#
701d4b38e0Srsmaeda# LIBRARIES:
711d4b38e0Srsmaeda#
721d4b38e0SrsmaedaLDLIBS +=	-lkstat		\
731d4b38e0Srsmaeda		-lnvpair	\
741d4b38e0Srsmaeda		-lrcm
751d4b38e0Srsmaeda
761d4b38e0Srsmaeda.KEEP_STATE:
771d4b38e0Srsmaeda
781d4b38e0Srsmaeda
791d4b38e0Srsmaedaall: $(PROG)
801d4b38e0Srsmaeda
811d4b38e0Srsmaeda$(PROG): $(OBJS) $(HDRS)
821d4b38e0Srsmaeda	$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
831d4b38e0Srsmaeda	$(POST_PROCESS)
841d4b38e0Srsmaeda
851d4b38e0Srsmaedainstall: all .WAIT $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
861d4b38e0Srsmaeda
871d4b38e0Srsmaedacheck:	$(CHKMANIFEST)
881d4b38e0Srsmaeda
891d4b38e0Srsmaedalint:
901d4b38e0Srsmaeda	$(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
911d4b38e0Srsmaeda
921d4b38e0Srsmaedaclean:
931d4b38e0Srsmaeda	$(RM) $(PROG) $(OBJS) $(LINT_FILES)
941d4b38e0Srsmaeda
951d4b38e0Srsmaedainclude ../Makefile.targ
961d4b38e0Srsmaedainclude ../../Makefile.psm.targ
97