summaryrefslogtreecommitdiff
path: root/usr/src/boot/libsa/zfs/Makefile.inc
blob: 83d5a9e998c7125370948daa6496e972857fbad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2021 Toomas Soome <tsoome@me.com>
#

SRCS +=	$(ZFSSRC)/zfs.c
SRCS +=	$(ZFSSRC)/gzip.c
SRCS +=	$(SRC)/common/list/list.c
OBJECTS +=	zfs.o
OBJECTS +=	gzip.o
OBJECTS +=	nvlist.o
OBJECTS +=	list.o

objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../common
objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../sys/cddl/boot/zfs -I$(LZ4)
objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(SRC)/uts/common/fs/zfs
objs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(CRYPTOSRC)
objs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../common
objs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../sys/cddl/boot/zfs

pics/%.o objs/%.o:	$(ZFSSRC)/%.c
	$(COMPILE.c) -o $@ $<

pics/%.o objs/%.o:	$(SRC)/common/list/%.c
	$(COMPILE.c) -DNDEBUG -o $@ $<

zfs.o: $(ZFSSRC)/zfsimpl.c