diff --git a/lib/libspl/asm-powerpc64/Makefile.am b/lib/libspl/asm-powerpc64/Makefile.am index 75d9fc6028..f302dc8369 100644 --- a/lib/libspl/asm-powerpc64/Makefile.am +++ b/lib/libspl/asm-powerpc64/Makefile.am @@ -2,11 +2,14 @@ include $(top_srcdir)/config/Rules.am DEFAULT_INCLUDES += \ -I${top_srcdir}/lib/libspl/include -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + atomic_SOURCE = atomic.c atomic_ASM = atomic.S +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +EXTRA_DIST = ${atomic_SOURCE} + # Generates assembly to simplify inclusion in ../Makefile.am all-am: $(COMPILE) -c -S ${atomic_SOURCE} -o ${atomic_ASM} diff --git a/lib/libspl/asm-powerpc64/atomic.S b/lib/libspl/asm-powerpc64/atomic.S new file mode 100644 index 0000000000..7550fd92b2 --- /dev/null +++ b/lib/libspl/asm-powerpc64/atomic.S @@ -0,0 +1,6 @@ +Stub file for 'make dist' distdir rule. + +This file is directly referenced by ../Makefile.am as a source +file and thus will be expected by 'make dist'. To avoid this +being a problem this stub file was added. It will be overwritten +at build time based on assmebly generated from atomic.c.