xref: /illumos-gate/usr/src/lib/libzutil/Makefile.com (revision c686756220120076a07be0dcce54be698101a3d1)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2020 Joyent, Inc.
14#
15
16LIBRARY= libzutil.a
17VERS= .1
18
19OBJECTS=			\
20	zutil_import.o		\
21	zutil_nicenum.o		\
22	zutil_pool.o
23
24include ../../Makefile.lib
25
26# libzutil must be installed in the root filesystem for mount(1M)
27include ../../Makefile.rootfs
28
29LIBS=	$(DYNLIB)
30
31SRCDIR =	../common
32
33INCS += -I$(SRCDIR)
34INCS += -I../../../uts/common/fs/zfs
35INCS += -I../../libc/inc
36
37CSTD=		$(CSTD_GNU99)
38LDLIBS +=	-lc -lm -ldevid -lnvpair -ladm -lavl -lefi
39CPPFLAGS +=	$(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
40$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
41
42SRCS=	$(OBJECTS:%.o=$(SRCDIR)/%.c)
43
44.KEEP_STATE:
45
46all: $(LIBS)
47
48include ../../Makefile.targ
49