Makefile.com revision 3c112a2b34403220c06c3e2fcac403358cfba168
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# CDDL HEADER START
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# The contents of this file are subject to the terms of the
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Common Development and Distribution License (the "License").
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# You may not use this file except in compliance with the License.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# or http://www.opensolaris.org/os/licensing.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# See the License for the specific language governing permissions
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# and limitations under the License.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# If applicable, add the following below this CDDL HEADER, with the
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner]
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# CDDL HEADER END
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyPROG= ztest
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyOBJS= $(PROG).o
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbySRCS= $(OBJS:%.o=../%.c)
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltbyinclude ../../Makefile.cmd
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltbyinclude ../../Makefile.ctf
INCS += -I../../../lib/libzpool/common
INCS += -I../../../uts/common/fs/zfs
LDLIBS += -lumem -lzpool -lcmdutils -lm -lnvpair
C99MODE= -xc99=%all
C99LMODE= -Xc99=%all
CFLAGS += -g $(CCVERBOSE)
CFLAGS64 += -g $(CCVERBOSE)
CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
# lint complains about unused _umem_* functions
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
$(POST_PROCESS)
clean:
lint: lint_SRCS
include ../../Makefile.targ
%.o: ../%.c
$(COMPILE.c) $<
$(POST_PROCESS_O)