usr/src/lib/libzfs/Makefile.com
author ahrens
Mon, 31 Oct 2005 11:33:35 -0800
changeset 789 b348f31ed315
child 998 d84ba40739f6
permissions -rw-r--r--
PSARC 2002/240 ZFS 6338653 Integrate ZFS PSARC 2004/652 - DKIOCFLUSH 5096886 Write caching disks need mechanism to flush cache to physical media
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
789
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     1
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     2
# CDDL HEADER START
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     3
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     5
# Common Development and Distribution License, Version 1.0 only
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     6
# (the "License").  You may not use this file except in compliance
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     7
# with the License.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     8
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
     9
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    11
# See the License for the specific language governing permissions
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    12
# and limitations under the License.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    13
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    15
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    19
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    20
# CDDL HEADER END
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    21
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    22
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    23
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    24
# Use is subject to license terms.
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    25
#
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    26
#ident	"%Z%%M%	%I%	%E% SMI"
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    27
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    28
LIBRARY= libzfs.a
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    29
VERS= .1
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    30
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    31
OBJS_SHARED= zfs_namecheck.o zfs_prop.o
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    32
OBJS_COMMON= libzfs_dataset.o libzfs_util.o libzfs_graph.o libzfs_mount.o \
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    33
	libzfs_pool.o libzfs_changelist.o libzfs_config.o libzfs_import.o \
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    34
	libzfs_status.o
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    35
OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    36
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    37
include ../../Makefile.lib
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    38
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    39
LIBS=	$(DYNLIB) $(LINTLIB)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    40
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    41
INCS += -I$(SRCDIR)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    42
INCS += -I../../../uts/common/fs/zfs
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    43
INCS += -I../../../common/zfs
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    44
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    45
C99MODE=	-xc99=%all
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    46
C99LMODE=	-Xc99=%all
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    47
LDLIBS +=	-lc -lm -ldevinfo -ldevid -lgen -lnvpair -luutil
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    48
CPPFLAGS +=	$(INCS) -D_REENTRANT
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    49
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    50
SRCS=	$(OBJS_COMMON:%.o=$(SRCDIR)/%.c)	\
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    51
	$(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    52
$(LINTLIB) := SRCS=	$(SRCDIR)/$(LINTSRC)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    53
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    54
SRCDIR=		../common
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    55
MAPDIR=		../spec/$(TRANSMACH)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    56
SPECMAPFILE=	$(MAPDIR)/mapfile
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    57
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    58
.KEEP_STATE:
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    59
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    60
all: $(LIBS)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    61
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    62
lint: lintcheck
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    63
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    64
pics/%.o: ../../../common/zfs/%.c
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    65
	$(COMPILE.c) -o $@ $<
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    66
	$(POST_PROCESS_O)
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    67
b348f31ed315 PSARC 2002/240 ZFS
ahrens
parents:
diff changeset
    68
include ../../Makefile.targ