diff options
author | Brian Behlendorf <[email protected]> | 2009-03-05 09:08:07 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-03-09 15:56:55 -0700 |
commit | c5f704607bbdc5e6a89b4ac088dff16a6c1eeb5e (patch) | |
tree | 182cb70d67bde33e9697623ca0b0533985407528 /module/splat/Makefile.in | |
parent | 32f74c5280ca9a753991b97370e7c4c1a4e34ede (diff) |
Build system and packaging (RPM support)
An update to the build system to properly support all commonly
used Makefile targets these include:
make all # Build everything
make install # Install everything
make clean # Clean up build products
make distclean # Clean up everything
make dist # Create package tarball
make srpm # Create package source RPM
make rpm # Create package binary RPMs
make tags # Create ctags and etags for everything
Extra care was taken to ensure that the source RPMs are fully
rebuildable against Fedora/RHEL/Chaos kernels. To build binary
RPMs from the source RPM for your system simply run:
rpmbuild --rebuild spl-x.y.z-1.src.rpm
This will produce two binary RPMs with correct 'requires'
dependencies for your kernel. One will contain all spl modules
and support utilities, the other is a devel package for compiling
additional kernel modules which are dependant on the spl.
spl-x.y.z-1_<kernel version>.x86_64.rpm
spl-devel-x.y.2-1_<kernel version>.x86_64.rpm
Diffstat (limited to 'module/splat/Makefile.in')
-rw-r--r-- | module/splat/Makefile.in | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/module/splat/Makefile.in b/module/splat/Makefile.in index 33b2865c1..c2d4c3f22 100644 --- a/module/splat/Makefile.in +++ b/module/splat/Makefile.in @@ -1,7 +1,6 @@ # Makefile.in for splat kernel module MODULES := splat -DISTFILES = Makefile.in *.c *.h EXTRA_CFLAGS = @KERNELCPPFLAGS@ # Solaris Porting LAyer Tests @@ -21,27 +20,3 @@ splat-objs += splat-kobj.o splat-objs += splat-atomic.o splat-objs += splat-list.o splat-objs += splat-generic.o - -splatmodule := splat.ko -splatmoduledir := @kmoduledir@/kernel/lib/ - -install: - mkdir -p $(DESTDIR)$(splatmoduledir) - $(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule) - -/sbin/depmod -a - -uninstall: - rm -f $(DESTDIR)$(splatmoduledir)/$(splatmodule) - -/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) |