the directories at the top level but that proved troublesome. The
kernel buildsystem and autoconf were conflicting too much. To
resolve the issue I moved the kernel bits in to a modules directory
which can then only use the kernel build system. We just pass
along the likely make targets to the kernel build system.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@11
7e1ea52c-4ff2-0310-8f11-
9dd32ca42a1c
AUTOMAKE_OPTIONS = foreign dist-zip
-SUBDIRS = src include scripts
+SUBDIRS = lib cmd modules include scripts
CONFIG_CLEAN_FILES = aclocal.m4 config.guess config.sub
CONFIG_CLEAN_FILES += depcomp install-sh missing mkinstalldirs
EXTRA_DIST = autogen.sh
rpms: dist Makefile
rpmbuild -ta $(distdir).tar.gz
+
INCLUDES = -I$(top_srcdir)/include
sbin_PROGRAMS = splat
splat_SOURCES = splat.c
-splat_LDFLAGS = $(top_builddir)/src/lib/libcommon.la
+splat_LDFLAGS = $(top_builddir)/lib/libcommon.la
AC_SUBST(KERNELCFLAGS)
AC_CONFIG_FILES([ Makefile
- src/Makefile
- src/lib/Makefile
- src/cmd/Makefile
- src/spl/Makefile
- src/splat/Makefile
+ lib/Makefile
+ cmd/Makefile
+ modules/Makefile
+ modules/spl/Makefile
+ modules/splat/Makefile
include/Makefile
scripts/Makefile
scripts/spl.spec
--- /dev/null
+subdir-m += spl
+subdir-m += splat
+
+all:
+ $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
+
+install uninstall clean distclean maintainer-clean distdir:
+ $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+
+
+
+
spl-objs += linux-thread.o
spl-objs += linux-taskq.o
spl-objs += linux-rwlock.o
+spl-objs += linux-generic.o
splmodule := spl.ko
splmoduledir := @kmoduledir@/kernel/lib/
-all: all-spec
-
-install: all
+install:
mkdir -p $(DESTDIR)$(splmoduledir)
$(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
-/sbin/depmod -a
distdir: $(DISTFILES)
cp -p $(DISTFILES) $(distdir)
-
-all-spec:
- $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
splatmodule := splat.ko
splatmoduledir := @kmoduledir@/kernel/lib/
-all: all-spec
-
-install: all
+install:
mkdir -p $(DESTDIR)$(splatmoduledir)
$(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule)
-/sbin/depmod -a
distdir: $(DISTFILES)
cp -p $(DISTFILES) $(distdir)
-
-all-spec:
- $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
+++ /dev/null
-SUBDIRS = lib cmd spl splat