xref: /titanic_50/usr/src/cmd/zinject/Makefile.com (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
1ea8dc4b6Seschrock#
2ea8dc4b6Seschrock# CDDL HEADER START
3ea8dc4b6Seschrock#
4ea8dc4b6Seschrock# The contents of this file are subject to the terms of the
5ea8dc4b6Seschrock# Common Development and Distribution License (the "License").
6ea8dc4b6Seschrock# You may not use this file except in compliance with the License.
7ea8dc4b6Seschrock#
8ea8dc4b6Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ea8dc4b6Seschrock# or http://www.opensolaris.org/os/licensing.
10ea8dc4b6Seschrock# See the License for the specific language governing permissions
11ea8dc4b6Seschrock# and limitations under the License.
12ea8dc4b6Seschrock#
13ea8dc4b6Seschrock# When distributing Covered Code, include this CDDL HEADER in each
14ea8dc4b6Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ea8dc4b6Seschrock# If applicable, add the following below this CDDL HEADER, with the
16ea8dc4b6Seschrock# fields enclosed by brackets "[]" replaced with your own identifying
17ea8dc4b6Seschrock# information: Portions Copyright [yyyy] [name of copyright owner]
18ea8dc4b6Seschrock#
19ea8dc4b6Seschrock# CDDL HEADER END
20ea8dc4b6Seschrock#
21ea8dc4b6Seschrock#
22ea8dc4b6Seschrock# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23ea8dc4b6Seschrock# Use is subject to license terms.
24ea8dc4b6Seschrock#
25ea8dc4b6Seschrock
26ea8dc4b6SeschrockPROG:sh=	cd ..; basename `pwd`
2780ab886dSwesolowsOBJS= $(PROG).o translate.o
2880ab886dSwesolowsSRCS= $(OBJS:%.o=../%.c)
29ea8dc4b6Seschrock
30ea8dc4b6Seschrockinclude ../../Makefile.cmd
31ea8dc4b6Seschrock
32ea8dc4b6SeschrockINCS +=	-I../../../lib/libzpool/common
33ea8dc4b6SeschrockINCS +=	-I../../../uts/common/fs/zfs
34ea8dc4b6Seschrock
3599653d4eSeschrockLDLIBS += -lzpool -lzfs -lnvpair
36ea8dc4b6Seschrock
37ea8dc4b6SeschrockC99MODE=	-xc99=%all
38ea8dc4b6SeschrockC99LMODE=	-Xc99=%all
39ea8dc4b6Seschrock
40ea8dc4b6SeschrockCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
41ea8dc4b6Seschrock
427014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
437014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch
447014882cSRichard Lowe
45ea8dc4b6Seschrock.KEEP_STATE:
46ea8dc4b6Seschrock
47ea8dc4b6Seschrockall: $(PROG)
48ea8dc4b6Seschrock
4980ab886dSwesolows$(PROG): $(OBJS)
5080ab886dSwesolows	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
51ea8dc4b6Seschrock	$(POST_PROCESS)
52ea8dc4b6Seschrock
53ea8dc4b6Seschrockclean:
54*b6805bf7SGordon Ross	$(RM) $(OBJS)
55ea8dc4b6Seschrock
56ea8dc4b6Seschrocklint:	lint_SRCS
57ea8dc4b6Seschrock
5880ab886dSwesolows%.o: ../%.c
5980ab886dSwesolows	$(COMPILE.c) $<
6080ab886dSwesolows	$(POST_PROCESS_O)
6180ab886dSwesolows
62ea8dc4b6Seschrockinclude ../../Makefile.targ
63