df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# CDDL HEADER START
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# The contents of this file are subject to the terms of the
df14233e629298598736976c5bfcf4a31873745fab# Common Development and Distribution License (the "License").
df14233e629298598736976c5bfcf4a31873745fab# You may not use this file except in compliance with the License.
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
df14233e629298598736976c5bfcf4a31873745fab# or http://www.opensolaris.org/os/licensing.
df14233e629298598736976c5bfcf4a31873745fab# See the License for the specific language governing permissions
df14233e629298598736976c5bfcf4a31873745fab# and limitations under the License.
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# When distributing Covered Code, include this CDDL HEADER in each
df14233e629298598736976c5bfcf4a31873745fab# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
df14233e629298598736976c5bfcf4a31873745fab# If applicable, add the following below this CDDL HEADER, with the
df14233e629298598736976c5bfcf4a31873745fab# fields enclosed by brackets "[]" replaced with your own identifying
df14233e629298598736976c5bfcf4a31873745fab# information: Portions Copyright [yyyy] [name of copyright owner]
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# CDDL HEADER END
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
df14233e629298598736976c5bfcf4a31873745fab#
df14233e629298598736976c5bfcf4a31873745fab
df14233e629298598736976c5bfcf4a31873745fabARCH = $(TARGET_ARCH:-%=%)
df14233e629298598736976c5bfcf4a31873745fab
df14233e629298598736976c5bfcf4a31873745fabPROG = tbeadm
df14233e629298598736976c5bfcf4a31873745fab
df14233e629298598736976c5bfcf4a31873745fab
df14233e629298598736976c5bfcf4a31873745fabOBJS = tbeadm.o
SRCS = $(OBJS:%.o=../%.c)
include ../../Makefile.lib
#LIBS= $(DYNLIB)
INCLUDE = -I../common
STATICDEPLIBS = ../$(ARCH)/libbe.a
STATICLDLIBS += -linstzones -L/lib -L../$(ARCH) -lzfs -lnvpair \
-luuid -lgen -Bstatic -lbe -Bdynamic
DEPLIBS = ../$(ARCH)/libbe.so.1
LDLIBS += -L/lib -L../pics/$(ARCH) -lzfs -lnvpair -lbe
CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT ${INCLUDE}
CFLAGS += -g -DDEBUG
$(PROG): $(OBJS) $(STATICDEPLIBS)
$(LINK.c) -o $@ $@.c $(OBJS) $(STATICLDLIBS)
$(POST_PROCESS)
all: $(PROG)
install_h:
install: all
lint:
$(LINT.c) $(SRCS) $(LDLIBS)
clobber: clean
$(RM) tbeadm.o
clean:
$(RM) tbeadm