2008-02-26 23:36:04 +03:00
|
|
|
# Makefile.in for spl kernel module
|
|
|
|
|
|
|
|
MODULES := spl
|
|
|
|
DISTFILES = Makefile.in \
|
2008-02-28 03:48:31 +03:00
|
|
|
spl-kmem.c spl-rwlock.c spl-taskq.c \
|
|
|
|
spl-thread.c spl-generic.c
|
2008-02-27 03:59:48 +03:00
|
|
|
CPPFLAGS += @KERNELCPPFLAGS@
|
2008-02-26 23:36:04 +03:00
|
|
|
|
|
|
|
# Solaris porting layer module
|
|
|
|
obj-m := spl.o
|
|
|
|
|
2008-02-28 03:48:31 +03:00
|
|
|
spl-objs += spl-kmem.o
|
|
|
|
spl-objs += spl-thread.o
|
|
|
|
spl-objs += spl-taskq.o
|
|
|
|
spl-objs += spl-rwlock.o
|
2008-03-08 02:07:02 +03:00
|
|
|
spl-objs += spl-vnode.o
|
2008-03-08 03:18:21 +03:00
|
|
|
spl-objs += spl-err.o
|
2008-02-28 03:48:31 +03:00
|
|
|
spl-objs += spl-generic.o
|
2008-02-26 23:36:04 +03:00
|
|
|
|
|
|
|
splmodule := spl.ko
|
|
|
|
splmoduledir := @kmoduledir@/kernel/lib/
|
|
|
|
|
2008-02-27 23:52:44 +03:00
|
|
|
install:
|
2008-02-26 23:36:04 +03:00
|
|
|
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)
|