mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
4e62fd4104
This should handle the absolute minimum I need for ZFS. It will register the chdev with the right callbacks. Then the generic registered linux callback will find the right registered solaris callback for the function and munge the args just right before passing it on. Should work, but untested (just compiled), so I expect bugs. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@52 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
46 lines
959 B
Makefile
46 lines
959 B
Makefile
# Makefile.in for spl kernel module
|
|
|
|
MODULES := spl
|
|
DISTFILES = Makefile.in \
|
|
spl-kmem.c spl-rwlock.c spl-taskq.c \
|
|
spl-thread.c spl-generic.c
|
|
CPPFLAGS += @KERNELCPPFLAGS@
|
|
|
|
# Solaris porting layer module
|
|
obj-m := spl.o
|
|
|
|
spl-objs += spl-kmem.o
|
|
spl-objs += spl-thread.o
|
|
spl-objs += spl-taskq.o
|
|
spl-objs += spl-rwlock.o
|
|
spl-objs += spl-vnode.o
|
|
spl-objs += spl-err.o
|
|
spl-objs += spl-time.o
|
|
spl-objs += spl-kobj.o
|
|
spl-objs += spl-module.o
|
|
spl-objs += spl-generic.o
|
|
|
|
splmodule := spl.ko
|
|
splmoduledir := @kmoduledir@/kernel/lib/
|
|
|
|
install:
|
|
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)
|