186fec011SToomas Soome#
286fec011SToomas Soome# This file and its contents are supplied under the terms of the
386fec011SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
486fec011SToomas Soome# You may only use this file in accordance with the terms of version
586fec011SToomas Soome# 1.0 of the CDDL.
686fec011SToomas Soome#
786fec011SToomas Soome# A full copy of the text of the CDDL should have accompanied this
886fec011SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
986fec011SToomas Soome# http://www.illumos.org/license/CDDL.
1086fec011SToomas Soome#
1186fec011SToomas Soome
1286fec011SToomas Soome#
13411d06f4SToomas Soome# Copyright 2021 Toomas Soome <tsoome@me.com>
1486fec011SToomas Soome#
1586fec011SToomas Soome
16*ff5d4039SToomas SoomeSRCS +=	$(ZFSSRC)/zfs.c
17*ff5d4039SToomas SoomeSRCS +=	$(ZFSSRC)/gzip.c
18*ff5d4039SToomas SoomeSRCS +=	$(SRC)/common/list/list.c
19*ff5d4039SToomas SoomeOBJECTS +=	zfs.o
20*ff5d4039SToomas SoomeOBJECTS +=	gzip.o
21*ff5d4039SToomas SoomeOBJECTS +=	nvlist.o
22*ff5d4039SToomas SoomeOBJECTS +=	list.o
2386fec011SToomas Soome
24*ff5d4039SToomas Soomeobjs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../common
25*ff5d4039SToomas Soomeobjs/zfs.o pics/zfs.o := CPPFLAGS +=	-I../../../cddl/boot/zfs -I$(LZ4)
26*ff5d4039SToomas Soomeobjs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(SRC)/uts/common/fs/zfs
27*ff5d4039SToomas Soomeobjs/zfs.o pics/zfs.o := CPPFLAGS +=	-I$(CRYPTOSRC)
28*ff5d4039SToomas Soomeobjs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../common
29*ff5d4039SToomas Soomeobjs/nvlist.o pics/nvlist.o := CPPFLAGS +=	-I../../../cddl/boot/zfs
3086fec011SToomas Soome
31*ff5d4039SToomas Soomepics/%.o objs/%.o:	$(ZFSSRC)/%.c
3286fec011SToomas Soome	$(COMPILE.c) -o $@ $<
3386fec011SToomas Soome
34*ff5d4039SToomas Soomepics/%.o objs/%.o:	$(SRC)/common/list/%.c
35*ff5d4039SToomas Soome	$(COMPILE.c) -DNDEBUG -o $@ $<
36c023f651SToomas Soome
3786fec011SToomas Soomezfs.o: $(ZFSSRC)/zfsimpl.c
38