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