xref: /illumos-gate/usr/src/lib/libzutil/Makefile.com (revision 13b136d3061155363c62c9f6568d25b8b27da8f6)
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) $(LINTLIB)
30
31SRCDIR =	../common
32
33INCS += -I$(SRCDIR)
34INCS += -I../../../uts/common/fs/zfs
35INCS += -I../../libc/inc
36
37CSTD=		$(CSTD_GNU99)
38C99LMODE=	-Xc99=%all
39LDLIBS +=	-lc -lm -ldevid -lnvpair -ladm -lavl -lefi
40CPPFLAGS +=	$(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
41$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
42
43SRCS=	$(OBJECTS:%.o=$(SRCDIR)/%.c)
44
45.KEEP_STATE:
46
47all: $(LIBS)
48
49include ../../Makefile.targ
50