xref: /illumos-gate/usr/src/cmd/raidz_test/Makefile (revision d17be682a2c70b4505d43c830bbd2603da11918d)
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
16include ../Makefile.cmd
17include ../Makefile.cmd.64
18
19PROG= raidz_test
20OBJS= raidz_test.o raidz_bench.o
21SRCS= $(OBJS:%.o=%.c)
22POFILES= $(PROG:%=%.po)
23
24# No msg catalog here.
25POFILE=
26
27LDLIBS += -lzpool -lfakekernel -lumem
28
29INCS += -I../../lib/libzpool/common
30INCS += -I../../uts/common/fs/zfs
31
32CPPFLAGS.first = -I$(SRC)/lib/libfakekernel/common -D_FAKE_KERNEL
33CPPFLAGS += -D_LARGEFILE64_SOURCE=1
34CPPFLAGS += $(INCS)
35
36CSTD =   $(CSTD_GNU99)
37
38CERRWARN += -_gcc=-Wno-type-limits
39
40SMATCH=off
41
42.KEEP_STATE:
43
44all: $(PROG)
45
46$(PROG): $(OBJS)
47	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
48	$(POST_PROCESS)
49
50install: all $(ROOTPROG)
51
52clean:
53	$(RM) $(OBJS)
54
55_msg: $(MSGDOMAIN) $(POFILES)
56	$(CP) $(POFILES) $(MSGDOMAIN)
57
58$(MSGDOMAIN):
59	$(INS.dir)
60
61include ../Makefile.targ
62