Makefile revision f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2
32N/A#
32N/A# CDDL HEADER START
911N/A#
851N/A# The contents of this file are subject to the terms of the
32N/A# Common Development and Distribution License (the "License").
32N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
32N/A#
32N/A
32N/AARCH = $(TARGET_ARCH:-%=%)
32N/A
493N/APROG = tbeadm
32N/A
32N/A
851N/AOBJS = tbeadm.o
32N/ASRCS = $(OBJS:%.o=../%.c)
911N/A
911N/Ainclude ../../Makefile.lib
911N/A
911N/A#LIBS= $(DYNLIB)
32N/A
32N/AINCLUDE = -I../common
32N/A
32N/ASTATICDEPLIBS = ../$(ARCH)/libbe.a
32N/ASTATICLDLIBS += -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