2008-02-26 20:36:04 +00:00
|
|
|
# Makefile.in for spl kernel module
|
|
|
|
|
|
|
|
MODULES := spl
|
|
|
|
DISTFILES = Makefile.in \
|
2008-02-28 00:48:31 +00:00
|
|
|
spl-kmem.c spl-rwlock.c spl-taskq.c \
|
|
|
|
spl-thread.c spl-generic.c
|
2008-02-27 00:59:48 +00:00
|
|
|
CPPFLAGS += @KERNELCPPFLAGS@
|
2008-02-26 20:36:04 +00:00
|
|
|
|
|
|
|
# Solaris porting layer module
|
|
|
|
obj-m := spl.o
|
|
|
|
|
2008-04-18 23:39:58 +00:00
|
|
|
spl-objs += spl-debug.o
|
|
|
|
spl-objs += spl-proc.o
|
2008-02-28 00:48:31 +00:00
|
|
|
spl-objs += spl-kmem.o
|
|
|
|
spl-objs += spl-thread.o
|
|
|
|
spl-objs += spl-taskq.o
|
|
|
|
spl-objs += spl-rwlock.o
|
2008-03-07 23:07:02 +00:00
|
|
|
spl-objs += spl-vnode.o
|
2008-03-08 00:18:21 +00:00
|
|
|
spl-objs += spl-err.o
|
2008-03-10 21:38:39 +00:00
|
|
|
spl-objs += spl-time.o
|
2008-03-11 20:54:40 +00:00
|
|
|
spl-objs += spl-kobj.o
|
2008-03-20 23:30:15 +00:00
|
|
|
spl-objs += spl-module.o
|
2008-02-28 00:48:31 +00:00
|
|
|
spl-objs += spl-generic.o
|
2008-03-28 18:21:09 +00:00
|
|
|
spl-objs += spl-atomic.o
|
2008-05-05 20:18:49 +00:00
|
|
|
spl-objs += spl-mutex.o
|
2008-05-08 23:21:47 +00:00
|
|
|
spl-objs += spl-kstat.o
|
2008-02-26 20:36:04 +00:00
|
|
|
|
|
|
|
splmodule := spl.ko
|
|
|
|
splmoduledir := @kmoduledir@/kernel/lib/
|
|
|
|
|
2008-02-27 20:52:44 +00:00
|
|
|
install:
|
2008-02-26 20:36:04 +00: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)
|