]>
Commit | Line | Data |
---|---|---|
f1ca4da6 | 1 | # Makefile.in for spl kernel module |
2 | ||
3 | MODULES := spl | |
f1ca4da6 | 4 | DISTFILES = Makefile.in \ |
f1b59d26 | 5 | linux-kmem.c linux-rwlock.c linux-taskq.c \ |
6 | linux-thread.c linux-generic.c | |
3d4ea0ce | 7 | CPPFLAGS += @KERNELCPPFLAGS@ |
f1ca4da6 | 8 | |
9 | # Solaris porting layer module | |
10 | obj-m := spl.o | |
11 | ||
12 | spl-objs += linux-kmem.o | |
13 | spl-objs += linux-thread.o | |
14 | spl-objs += linux-taskq.o | |
15 | spl-objs += linux-rwlock.o | |
16 | ||
17 | splmodule := spl.ko | |
18 | splmoduledir := @kmoduledir@/kernel/lib/ | |
19 | ||
20 | all: all-spec | |
21 | ||
22 | install: all | |
23 | mkdir -p $(DESTDIR)$(splmoduledir) | |
24 | $(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule) | |
25 | -/sbin/depmod -a | |
26 | ||
27 | uninstall: | |
28 | rm -f $(DESTDIR)$(splmoduledir)/$(splmodule) | |
29 | -/sbin/depmod -a | |
30 | ||
31 | clean: | |
32 | -rm -f $(splmodule) *.o .*.cmd *.mod.c *.ko *.s */*.o | |
33 | ||
34 | distclean: clean | |
35 | rm -f Makefile | |
36 | rm -rf .tmp_versions | |
37 | ||
38 | maintainer-clean: distclean | |
39 | ||
40 | distdir: $(DISTFILES) | |
41 | cp -p $(DISTFILES) $(distdir) | |
42 | ||
43 | all-spec: | |
44 | $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules |