Makefile.com revision ecd6cf800b63704be73fb264c3f5b6e0dafc068d
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
c9431fa1e59a88c2f0abf611f25b97af964449e5ahl# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# ident "%Z%%M% %I% %E% SMI"
f808c858fa61e7769218966759510a8b1190dfcfraf#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensLIBRARY= libzpool.a
fa9e4066f08beec538e775443c5be79dd423fcabahrensVERS= .1
fa9e4066f08beec538e775443c5be79dd423fcabahrens
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrock# include the list of ZFS sources
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../../uts/common/Makefile.files
fa9e4066f08beec538e775443c5be79dd423fcabahrensKERNEL_OBJS = kernel.o taskq.o util.o
fa9e4066f08beec538e775443c5be79dd423fcabahrensLIST_OBJS = list.o
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensOBJECTS=$(ZFS_COMMON_OBJS) $(ZFS_SHARED_OBJS) $(KERNEL_OBJS) $(LIST_OBJS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# include library definitions
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../Makefile.lib
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensZFS_COMMON_SRCS= $(ZFS_COMMON_OBJS:%.o=../../../uts/common/fs/zfs/%.c)
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrockZFS_SHARED_SRCS= $(ZFS_SHARED_OBJS:%.o=../../../common/zfs/%.c)
fa9e4066f08beec538e775443c5be79dd423fcabahrensKERNEL_SRCS= $(KERNEL_OBJS:%.o=../common/%.c)
fa9e4066f08beec538e775443c5be79dd423fcabahrensLIST_SRCS= $(LIST_OBJS:%.o=../../../uts/common/os/%.c)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrockSRCS=$(ZFS_COMMON_SRCS) $(ZFS_SHARED_SRCS) $(KERNEL_SRCS) $(LIST_SRCS)
fa9e4066f08beec538e775443c5be79dd423fcabahrensSRCDIR= ../common
fa9e4066f08beec538e775443c5be79dd423fcabahrens
f808c858fa61e7769218966759510a8b1190dfcfraf# There should be a mapfile here
f808c858fa61e7769218966759510a8b1190dfcfrafMAPFILES =
f808c858fa61e7769218966759510a8b1190dfcfraf
fa9e4066f08beec538e775443c5be79dd423fcabahrensLIBS += $(LINTLIB)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensINCS += -I../common
fa9e4066f08beec538e775443c5be79dd423fcabahrensINCS += -I../../../uts/common/fs/zfs
fa9e4066f08beec538e775443c5be79dd423fcabahrensINCS += -I../../../common/zfs
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksINCS += -I../../../common
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensC99MODE= -xc99=%all
fa9e4066f08beec538e775443c5be79dd423fcabahrensC99LMODE= -Xc99=%all
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCFLAGS += -g $(CCVERBOSE) $(CNOGLOBAL)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCFLAGS64 += -g $(CCVERBOSE) $(CNOGLOBAL)
c9431fa1e59a88c2f0abf611f25b97af964449e5ahlLDLIBS += -lumem -lavl -lnvpair -lz -lc
fa9e4066f08beec538e775443c5be79dd423fcabahrensCPPFLAGS += $(INCS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens.KEEP_STATE:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensall: $(LIBS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenslint: $(LINTLIB)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../Makefile.targ
fa9e4066f08beec538e775443c5be79dd423fcabahrens
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrockpics/%.o: ../../../uts/common/fs/zfs/%.c
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(COMPILE.c) -o $@ $<
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(POST_PROCESS_O)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrockpics/%.o: ../../../common/zfs/%.c
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(COMPILE.c) -o $@ $<
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(POST_PROCESS_O)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
088e9d477eee66081e407fbc5a33c4da25f66f6aeschrockpics/%.o: ../../../uts/common/os/%.c
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(COMPILE.c) -o $@ $<
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(POST_PROCESS_O)