Print this page
8115 parallel zfs mount
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libfakekernel/Makefile.com
+++ new/usr/src/lib/libfakekernel/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
14 +# Copyright 2017 RackTop Systems.
14 15 #
15 16
16 17 LIBRARY = libfakekernel.a
17 18 VERS = .1
18 19
19 20 COBJS = \
20 21 cred.o \
21 22 clock.o \
22 23 cond.o \
23 24 copy.o \
25 + buf.o \
24 26 kiconv.o \
25 27 kmem.o \
26 28 kmisc.o \
29 + ksid.o \
27 30 ksocket.o \
28 31 kstat.o \
29 32 mutex.o \
30 33 printf.o \
31 34 random.o \
32 35 rwlock.o \
33 36 sema.o \
34 37 taskq.o \
35 38 thread.o \
36 39 uio.o
37 40
38 41 OBJECTS= $(COBJS)
39 42
40 43 include ../../Makefile.lib
41 44
45 +# libfakekernel must be installed in the root filesystem for libzfs
46 +include ../../Makefile.rootfs
47 +
42 48 SRCDIR= ../common
43 49
44 50 LIBS = $(DYNLIB) $(LINTLIB)
45 51 SRCS= $(COBJS:%.o=$(SRCDIR)/%.c)
46 52
47 53 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
48 54
49 55 C99MODE = -xc99=%all
50 56 C99LMODE = -Xc99=%all
51 57
52 58 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
53 59 CPPFLAGS.first += -I../common
54 60
55 61 CFLAGS += $(CCVERBOSE)
56 62 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
57 63 CPPFLAGS += -D_FILE_OFFSET_BITS=64
58 64
59 65 # Could make this $(NOT_RELEASE_BUILD) but as the main purpose of
60 66 # this library is for debugging, let's always define DEBUG here.
61 67 CPPFLAGS += -DDEBUG
62 68
63 69 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
64 70 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
65 71 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
66 72
67 73 LDLIBS += -lumem -lcryptoutil -lsocket -lc
68 74
69 75 .KEEP_STATE:
70 76
71 77 all: $(LIBS)
72 78
73 79 lint: lintcheck
74 80
75 81 include ../../Makefile.targ
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX