xref: /onnv-gate/usr/src/cmd/wbem/provider/tools/rds/Makefile.com (revision 10207:87c40ea3fc4b)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
56543Srie# Common Development and Distribution License (the "License").
66543Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# cmd/wbem/provider/tools/rds/Makefile.com
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gate
290Sstevel@tonic-gatePROG = rds
300Sstevel@tonic-gateOBJS = rds.o rdutil.o rdfile.o rdtable.o rdimpl.o rdprot.o rdlist.o prtelement.o
310Sstevel@tonic-gateSRCS = $(OBJS:%.o=../%.c)
320Sstevel@tonic-gate
330Sstevel@tonic-gateinclude $(SRC)/cmd/wbem/Makefile.cmd
340Sstevel@tonic-gate
350Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT
360Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
370Sstevel@tonic-gateCFLAGS64 += $(CCVERBOSE)
386543SrieLDLIBS += -lproject
390Sstevel@tonic-gateLINTFLAGS += -u
400Sstevel@tonic-gateLINTFLAGS64 += -u
410Sstevel@tonic-gate
420Sstevel@tonic-gate# i.e. permission and group for /usr/bin-style executables
430Sstevel@tonic-gateFILEMODE = 0555
440Sstevel@tonic-gate
450Sstevel@tonic-gate.KEEP_STATE:
460Sstevel@tonic-gate
470Sstevel@tonic-gate.PARALLEL : $(OBJS)
480Sstevel@tonic-gate
490Sstevel@tonic-gateall: $(PROG)
500Sstevel@tonic-gate
510Sstevel@tonic-gatetest:
520Sstevel@tonic-gate	echo WBEMPROG32 $(ROOTWBEMPROG32)
530Sstevel@tonic-gate
540Sstevel@tonic-gateclean:
550Sstevel@tonic-gate	$(RM) $(OBJS)
560Sstevel@tonic-gate
570Sstevel@tonic-gate$(PROG): $(OBJS)
580Sstevel@tonic-gate	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
590Sstevel@tonic-gate	$(POST_PROCESS)
600Sstevel@tonic-gate
610Sstevel@tonic-gate%.o:	../%.c
620Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
630Sstevel@tonic-gate	$(POST_PROCESS_O)
640Sstevel@tonic-gate
650Sstevel@tonic-gatelint:
660Sstevel@tonic-gate	$(LINT.c) $(SRCS) $(LDLIBS)
670Sstevel@tonic-gate
680Sstevel@tonic-gateinclude $(SRC)/cmd/Makefile.targ
69