# Module for non-recursive mpg123 build system. # Gah! Not even re-defining that variable is allowed in automake! # I WANT TO USE PROPER MAKE! # makedir := src/libout123/modules # Experiment: Does automake pick that up in a Make variable? # Damn, no! It complains wildly. # I just want to use GNU Make and be done with it! # Perhaps the next build system rewrite ... #makenam=src_libout123_modules # Optionally containing the one static module to use. if !HAVE_MODULES noinst_LTLIBRARIES += src/libout123/modules/libdefaultmodule.la endif # Do not include uneeded headers from mpg123app.h . libout123_mod_cppflags = -DBUILDING_OUTPUT_MODULES=1 # These are not tested and _very_ likely need work: aix alib hp os2 sgi mint # Linker flags that all dynamic modules share. # The -shared avoids useless static archives of output modules in a build # that also produces normal static libs. MODULE_LDFLAGS= -module -no-undefined -avoid-version \ -export-dynamic -export-symbols-regex '^mpg123_' MODULE_CFLAGS= -shared # Use that sh/perl script to generate the module entries: # Confused as to when to use _LIBADD and when _LDADD. # _LDADD gives errors from autotools. #echo \ #dummy tinyalsa alsa qsa coreaudio esd jack nas oss portaudio \ #pulse sdl sndio sun win32 win32_wasapi aix alib arts hp os2 \ #sgi mint openal \ #| tr ' ' '\n' | #perl -ne 'chomp; $big = uc($_); # @guard= $big ne "DUMMY" ? ("if BUILD_LIBOUT123_MODULES\n", "endif\n") : ("",""); # print <