xref: /illumos-gate/usr/src/boot/libsa/zfs/Makefile.inc (revision dd72704bd9e794056c558153663c739e2012d721)
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 2021 Toomas Soome <tsoome@me.com>
14#
15
16SRCS +=	$(ZFSSRC)/zfs.c
17SRCS +=	$(ZFSSRC)/gzip.c
18SRCS +=	$(SRC)/common/list/list.c
19OBJECTS +=	zfs.o
20OBJECTS +=	gzip.o
21OBJECTS +=	nvlist.o
22OBJECTS +=	list.o
23
24objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../common
25objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../sys/cddl/boot/zfs -I$(LZ4)
26objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(SRC)/uts/common/fs/zfs
27objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(CRYPTOSRC)
28objs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../common
29objs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../sys/cddl/boot/zfs
30
31pics/%.o objs/%.o:	$(ZFSSRC)/%.c
32	$(COMPILE.c) -o $@ $<
33
34pics/%.o objs/%.o:	$(SRC)/common/list/%.c
35	$(COMPILE.c) -DNDEBUG -o $@ $<
36
37zfs.o: $(ZFSSRC)/zfsimpl.c
38