xref: /titanic_44/usr/src/cmd/ldmad/Makefile (revision 49bfb42b00abac0958a1308f4233e366fd083366)
1*49bfb42bSAlexandre Chartre#
2*49bfb42bSAlexandre Chartre# CDDL HEADER START
3*49bfb42bSAlexandre Chartre#
4*49bfb42bSAlexandre Chartre# The contents of this file are subject to the terms of the
5*49bfb42bSAlexandre Chartre# Common Development and Distribution License (the "License").
6*49bfb42bSAlexandre Chartre# You may not use this file except in compliance with the License.
7*49bfb42bSAlexandre Chartre#
8*49bfb42bSAlexandre Chartre# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*49bfb42bSAlexandre Chartre# or http://www.opensolaris.org/os/licensing.
10*49bfb42bSAlexandre Chartre# See the License for the specific language governing permissions
11*49bfb42bSAlexandre Chartre# and limitations under the License.
12*49bfb42bSAlexandre Chartre#
13*49bfb42bSAlexandre Chartre# When distributing Covered Code, include this CDDL HEADER in each
14*49bfb42bSAlexandre Chartre# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*49bfb42bSAlexandre Chartre# If applicable, add the following below this CDDL HEADER, with the
16*49bfb42bSAlexandre Chartre# fields enclosed by brackets "[]" replaced with your own identifying
17*49bfb42bSAlexandre Chartre# information: Portions Copyright [yyyy] [name of copyright owner]
18*49bfb42bSAlexandre Chartre#
19*49bfb42bSAlexandre Chartre# CDDL HEADER END
20*49bfb42bSAlexandre Chartre#
21*49bfb42bSAlexandre Chartre#
22*49bfb42bSAlexandre Chartre#
23*49bfb42bSAlexandre Chartre# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*49bfb42bSAlexandre Chartre# Use is subject to license terms.
25*49bfb42bSAlexandre Chartre#
26*49bfb42bSAlexandre Chartre
27*49bfb42bSAlexandre ChartrePROG=		ldmad
28*49bfb42bSAlexandre ChartreMANIFEST=	ldoms-agents.xml
29*49bfb42bSAlexandre ChartreSVCMETHOD=	ldoms-agents
30*49bfb42bSAlexandre Chartre
31*49bfb42bSAlexandre Chartreinclude ../Makefile.cmd
32*49bfb42bSAlexandre Chartre
33*49bfb42bSAlexandre ChartreSRCS=		ldmad.c			\
34*49bfb42bSAlexandre Chartre		ldma_log.c		\
35*49bfb42bSAlexandre Chartre		ldma_device.c		\
36*49bfb42bSAlexandre Chartre		ldma_system.c
37*49bfb42bSAlexandre Chartre
38*49bfb42bSAlexandre Chartre
39*49bfb42bSAlexandre ChartreOBJS=		$(SRCS:%.c=%.o)
40*49bfb42bSAlexandre Chartre
41*49bfb42bSAlexandre ChartreROOTCMDDIR=		$(ROOTLIB)/ldoms
42*49bfb42bSAlexandre ChartreROOTMANIFESTDIR=	$(ROOTSVCPLATFORMSUN4V)
43*49bfb42bSAlexandre Chartre$(ROOTMANIFEST)		:= FILEMODE= 444
44*49bfb42bSAlexandre Chartre
45*49bfb42bSAlexandre ChartreLDLIBS +=	-lds -ldladm
46*49bfb42bSAlexandre ChartreINCS +=		-I$(ROOT)/usr/platform/sun4v/include/sys
47*49bfb42bSAlexandre ChartreCPPFLAGS += 	$(INCS)
48*49bfb42bSAlexandre ChartreC99MODE =	$(C99_ENABLE)
49*49bfb42bSAlexandre Chartre
50*49bfb42bSAlexandre Chartre.KEEP_STATE:
51*49bfb42bSAlexandre Chartre
52*49bfb42bSAlexandre Chartreall: $(PROG)
53*49bfb42bSAlexandre Chartre
54*49bfb42bSAlexandre Chartre$(PROG): $(OBJS)
55*49bfb42bSAlexandre Chartre	$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
56*49bfb42bSAlexandre Chartre	$(POST_PROCESS)
57*49bfb42bSAlexandre Chartre
58*49bfb42bSAlexandre Chartreinstall: all .WAIT $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
59*49bfb42bSAlexandre Chartre
60*49bfb42bSAlexandre Chartrecheck: $(CHKMANIFEST)
61*49bfb42bSAlexandre Chartre
62*49bfb42bSAlexandre Chartrelint: lint_SRCS
63*49bfb42bSAlexandre Chartre
64*49bfb42bSAlexandre Chartreclean:
65*49bfb42bSAlexandre Chartre	$(RM) $(PROG) $(OBJS) $(LINT_FILES)
66*49bfb42bSAlexandre Chartre
67*49bfb42bSAlexandre Chartreinclude ../Makefile.targ
68