mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
596e65b4e8
We've dropped all the linux- prefixes on the file in favor of spl- which makes more sense. And we've cleaned up some of the includes so everybody should be including their own dependencies properly. All a module which wants to use the spl support needs to do in include spl.h and ensure it has access to Module.symvers. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@16 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
41 lines
842 B
Makefile
41 lines
842 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-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)
|