14445fffbSMatthew Ahrens# 24445fffbSMatthew Ahrens# CDDL HEADER START 34445fffbSMatthew Ahrens# 44445fffbSMatthew Ahrens# The contents of this file are subject to the terms of the 54445fffbSMatthew Ahrens# Common Development and Distribution License (the "License"). 64445fffbSMatthew Ahrens# You may not use this file except in compliance with the License. 74445fffbSMatthew Ahrens# 84445fffbSMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94445fffbSMatthew Ahrens# or http://www.opensolaris.org/os/licensing. 104445fffbSMatthew Ahrens# See the License for the specific language governing permissions 114445fffbSMatthew Ahrens# and limitations under the License. 124445fffbSMatthew Ahrens# 134445fffbSMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each 144445fffbSMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154445fffbSMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the 164445fffbSMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying 174445fffbSMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner] 184445fffbSMatthew Ahrens# 194445fffbSMatthew Ahrens# CDDL HEADER END 204445fffbSMatthew Ahrens# 214445fffbSMatthew Ahrens# 224445fffbSMatthew Ahrens# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 237c13517fSSerapheim Dimitropoulos# Copyright (c) 2012, 2016 by Delphix. All rights reserved. 244445fffbSMatthew Ahrens# 254445fffbSMatthew Ahrens 264445fffbSMatthew AhrensLIBRARY= libzfs_core.a 274445fffbSMatthew AhrensVERS= .1 284445fffbSMatthew Ahrens 294445fffbSMatthew AhrensOBJS_SHARED= 304445fffbSMatthew Ahrens 314445fffbSMatthew AhrensOBJS_COMMON= \ 324445fffbSMatthew Ahrens libzfs_core.o 334445fffbSMatthew Ahrens 344445fffbSMatthew AhrensOBJECTS= $(OBJS_COMMON) $(OBJS_SHARED) 354445fffbSMatthew Ahrens 364445fffbSMatthew Ahrensinclude ../../Makefile.lib 374445fffbSMatthew Ahrens 38*bbf21555SRichard Lowe# libzfs_core must be installed in the root filesystem for mount(8) 394445fffbSMatthew Ahrensinclude ../../Makefile.rootfs 404445fffbSMatthew Ahrens 41241c90a0SRichard LoweLIBS= $(DYNLIB) 424445fffbSMatthew Ahrens 434445fffbSMatthew AhrensSRCDIR = ../common 444445fffbSMatthew Ahrens 454445fffbSMatthew AhrensINCS += -I$(SRCDIR) 464445fffbSMatthew AhrensINCS += -I../../../uts/common/fs/zfs 474445fffbSMatthew AhrensINCS += -I../../../common/zfs 484445fffbSMatthew AhrensINCS += -I../../libc/inc 494445fffbSMatthew Ahrens 50bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 514445fffbSMatthew AhrensLDLIBS += -lc -lnvpair 524445fffbSMatthew AhrensCPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT 537c13517fSSerapheim Dimitropoulos$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 544445fffbSMatthew Ahrens 554445fffbSMatthew AhrensSRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ 564445fffbSMatthew Ahrens $(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c) 574445fffbSMatthew Ahrens 584445fffbSMatthew Ahrens.KEEP_STATE: 594445fffbSMatthew Ahrens 604445fffbSMatthew Ahrensall: $(LIBS) 614445fffbSMatthew Ahrens 624445fffbSMatthew Ahrens 634445fffbSMatthew Ahrenspics/%.o: ../../../common/zfs/%.c 644445fffbSMatthew Ahrens $(COMPILE.c) -o $@ $< 654445fffbSMatthew Ahrens $(POST_PROCESS_O) 664445fffbSMatthew Ahrens 674445fffbSMatthew Ahrensinclude ../../Makefile.targ 68