37d7cd94f3
Build products from an out of tree build should be written relative to the build directory. Sources should be referred to by their locations in the source directory. This is accomplished by adding the 'src' and 'obj' variables for the module Makefile.am, using relative paths to reference source files, and by setting VPATH when source files are not co-located with the Makefile. This enables the following: $ mkdir build $ cd build $ ../configure $ make -s This change also has the advantage of resolving the following warning which is generated by modern versions of automake. Makefile.am:00: warning: source file 'xxx' is in a subdirectory, Makefile.am:00: but option 'subdir-objects' is disabled Signed-off-by: Turbo Fredriksson <turbo@bayour.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue zfsonlinux/zfs#1082
31 lines
796 B
Makefile
31 lines
796 B
Makefile
# Makefile.in for spl kernel module
|
|
|
|
src = @abs_top_srcdir@/module/spl
|
|
obj = @abs_builddir@
|
|
|
|
MODULE := spl
|
|
EXTRA_CFLAGS = $(SPL_MODULE_CFLAGS) @KERNELCPPFLAGS@
|
|
|
|
# Solaris porting layer module
|
|
obj-$(CONFIG_SPL) := $(MODULE).o
|
|
|
|
$(MODULE)-objs += spl-proc.o
|
|
$(MODULE)-objs += spl-kmem.o
|
|
$(MODULE)-objs += spl-kmem-cache.o
|
|
$(MODULE)-objs += spl-vmem.o
|
|
$(MODULE)-objs += spl-thread.o
|
|
$(MODULE)-objs += spl-taskq.o
|
|
$(MODULE)-objs += spl-rwlock.o
|
|
$(MODULE)-objs += spl-vnode.o
|
|
$(MODULE)-objs += spl-err.o
|
|
$(MODULE)-objs += spl-kobj.o
|
|
$(MODULE)-objs += spl-generic.o
|
|
$(MODULE)-objs += spl-atomic.o
|
|
$(MODULE)-objs += spl-mutex.o
|
|
$(MODULE)-objs += spl-kstat.o
|
|
$(MODULE)-objs += spl-condvar.o
|
|
$(MODULE)-objs += spl-xdr.o
|
|
$(MODULE)-objs += spl-cred.o
|
|
$(MODULE)-objs += spl-tsd.o
|
|
$(MODULE)-objs += spl-zlib.o
|