xref: /titanic_50/usr/src/cmd/zinject/Makefile.com (revision 80ab886d233f514d54c2a6bdeb9fdfd951bd6881)
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# ident	"%Z%%M%	%I%	%E% SMI"
26ea8dc4b6Seschrock#
27ea8dc4b6Seschrock
28ea8dc4b6SeschrockPROG:sh=	cd ..; basename `pwd`
29*80ab886dSwesolowsOBJS= $(PROG).o translate.o
30*80ab886dSwesolowsSRCS= $(OBJS:%.o=../%.c)
31ea8dc4b6Seschrock
32ea8dc4b6Seschrockinclude ../../Makefile.cmd
33ea8dc4b6Seschrock
34ea8dc4b6SeschrockINCS +=	-I../../../lib/libzpool/common
35ea8dc4b6SeschrockINCS +=	-I../../../uts/common/fs/zfs
36ea8dc4b6Seschrock
37ea8dc4b6SeschrockLDLIBS += -lzpool -lzfs
38ea8dc4b6Seschrock
39ea8dc4b6SeschrockC99MODE=	-xc99=%all
40ea8dc4b6SeschrockC99LMODE=	-Xc99=%all
41ea8dc4b6Seschrock
42ea8dc4b6SeschrockCPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
43ea8dc4b6Seschrock
44ea8dc4b6Seschrock.KEEP_STATE:
45ea8dc4b6Seschrock
46ea8dc4b6Seschrockall: $(PROG)
47ea8dc4b6Seschrock
48*80ab886dSwesolows$(PROG): $(OBJS)
49*80ab886dSwesolows	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
50ea8dc4b6Seschrock	$(POST_PROCESS)
51ea8dc4b6Seschrock
52ea8dc4b6Seschrockclean:
53ea8dc4b6Seschrock
54ea8dc4b6Seschrocklint:	lint_SRCS
55ea8dc4b6Seschrock
56*80ab886dSwesolows%.o: ../%.c
57*80ab886dSwesolows	$(COMPILE.c) $<
58*80ab886dSwesolows	$(POST_PROCESS_O)
59*80ab886dSwesolows
60ea8dc4b6Seschrockinclude ../../Makefile.targ
61