mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
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
29 lines
775 B
Makefile
29 lines
775 B
Makefile
# Makefile.in for splat kernel module
|
|
|
|
src = @abs_top_srcdir@/module/splat
|
|
obj = @abs_builddir@
|
|
|
|
MODULE := splat
|
|
EXTRA_CFLAGS = $(SPL_MODULE_CFLAGS) @KERNELCPPFLAGS@
|
|
|
|
# Solaris Porting LAyer Tests
|
|
obj-$(CONFIG_SPL) := $(MODULE).o
|
|
|
|
$(MODULE)-objs += splat-ctl.o
|
|
$(MODULE)-objs += splat-kmem.o
|
|
$(MODULE)-objs += splat-taskq.o
|
|
$(MODULE)-objs += splat-random.o
|
|
$(MODULE)-objs += splat-mutex.o
|
|
$(MODULE)-objs += splat-condvar.o
|
|
$(MODULE)-objs += splat-thread.o
|
|
$(MODULE)-objs += splat-rwlock.o
|
|
$(MODULE)-objs += splat-time.o
|
|
$(MODULE)-objs += splat-vnode.o
|
|
$(MODULE)-objs += splat-kobj.o
|
|
$(MODULE)-objs += splat-atomic.o
|
|
$(MODULE)-objs += splat-list.o
|
|
$(MODULE)-objs += splat-generic.o
|
|
$(MODULE)-objs += splat-cred.o
|
|
$(MODULE)-objs += splat-zlib.o
|
|
$(MODULE)-objs += splat-linux.o
|