2008-02-26 20:36:04 +00:00
|
|
|
# Makefile.in for spl kernel module
|
|
|
|
|
|
|
|
MODULES := spl
|
|
|
|
DISTFILES = Makefile.in \
|
2008-02-27 19:09:51 +00:00
|
|
|
linux-kmem.c linux-rwlock.c linux-taskq.c \
|
|
|
|
linux-thread.c linux-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
|
|
|
|
|
|
|
|
spl-objs += linux-kmem.o
|
|
|
|
spl-objs += linux-thread.o
|
|
|
|
spl-objs += linux-taskq.o
|
|
|
|
spl-objs += linux-rwlock.o
|
|
|
|
|
|
|
|
splmodule := spl.ko
|
|
|
|
splmoduledir := @kmoduledir@/kernel/lib/
|
|
|
|
|
|
|
|
all: all-spec
|
|
|
|
|
|
|
|
install: all
|
|
|
|
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)
|
|
|
|
|
|
|
|
all-spec:
|
|
|
|
$(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
|