aboutsummaryrefslogtreecommitdiffstats
path: root/src/spl/Makefile.in
blob: d052fc370151bbd44aff0ec6c93137ba5e392744 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
# Makefile.in for spl kernel module

MODULES := spl

DISTFILES = Makefile.in \
            linux-kmem.c linux-rwlock.c linux-taskq.c linux-thread.c

# Removed '-std=gnu99' does to compile issues with i386 SPIN_LOCK_UNLOCKED
# EXTRA_CFLAGS += -I$(src)
# EXTRA_CFLAGS += -Wall -Wno-unknown-pragmas -Wno-missing-braces \
#         -Wno-sign-compare -Wno-parentheses -Wno-uninitialized \
#         -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs \
#         -Wno-char-subscripts -Wno-switch

# Solaris porting layer module
obj-m := spl.o

spl-objs += linux-kmem.o
spl-objs += linux-thread.o
spl-objs += linux-taskq.o
spl-objs += linux-rwlock.o

splmodule := spl.ko
splmoduledir := @kmoduledir@/kernel/lib/

all: all-spec

install: all
	mkdir -p $(DESTDIR)$(splmoduledir)
	$(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
	-/sbin/depmod -a

uninstall:
	rm -f $(DESTDIR)$(splmoduledir)/$(splmodule)
	-/sbin/depmod -a

clean:
	-rm -f $(splmodule) *.o .*.cmd *.mod.c *.ko *.s */*.o

distclean: clean
	rm -f Makefile
	rm -rf .tmp_versions

maintainer-clean: distclean

distdir: $(DISTFILES)
	cp -p $(DISTFILES) $(distdir)

all-spec:
	$(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules