]> git.proxmox.com Git - mirror_spl-debian.git/blob - src/spl/Makefile.in
User space build fixes:
[mirror_spl-debian.git] / src / spl / Makefile.in
1 # Makefile.in for spl kernel module
2
3 MODULES := spl
4
5 DISTFILES = Makefile.in \
6 linux-kmem.c linux-rwlock.c linux-taskq.c linux-thread.c
7
8 EXTRA_CFLAGS += -I$(src)
9
10 # Removed '-std=gnu99' does to compile issues with i386 SPIN_LOCK_UNLOCKED
11 # EXTRA_CFLAGS += -Wall -Wno-unknown-pragmas -Wno-missing-braces \
12 # -Wno-sign-compare -Wno-parentheses -Wno-uninitialized \
13 # -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs \
14 # -Wno-char-subscripts -Wno-switch
15
16 # Solaris porting layer module
17 obj-m := spl.o
18
19 spl-objs += linux-kmem.o
20 spl-objs += linux-thread.o
21 spl-objs += linux-taskq.o
22 spl-objs += linux-rwlock.o
23
24 splmodule := spl.ko
25 splmoduledir := @kmoduledir@/kernel/lib/
26
27 all: all-spec
28
29 install: all
30 mkdir -p $(DESTDIR)$(splmoduledir)
31 $(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
32 -/sbin/depmod -a
33
34 uninstall:
35 rm -f $(DESTDIR)$(splmoduledir)/$(splmodule)
36 -/sbin/depmod -a
37
38 clean:
39 -rm -f $(splmodule) *.o .*.cmd *.mod.c *.ko *.s */*.o
40
41 distclean: clean
42 rm -f Makefile
43 rm -rf .tmp_versions
44
45 maintainer-clean: distclean
46
47 distdir: $(DISTFILES)
48 cp -p $(DISTFILES) $(distdir)
49
50 all-spec:
51 $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules