Makefile.am: move the MPD core to libmpd.a
Prepare for providing everything in a shared library, to be embedded in another process.
This commit is contained in:
parent
150443b014
commit
d9466cad0e
25
Makefile.am
25
Makefile.am
|
@ -8,6 +8,7 @@ AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
|
||||||
bin_PROGRAMS = src/mpd
|
bin_PROGRAMS = src/mpd
|
||||||
|
|
||||||
noinst_LIBRARIES = \
|
noinst_LIBRARIES = \
|
||||||
|
libmpd.a \
|
||||||
libutil.a \
|
libutil.a \
|
||||||
libthread.a \
|
libthread.a \
|
||||||
libsystem.a \
|
libsystem.a \
|
||||||
|
@ -23,12 +24,14 @@ noinst_LIBRARIES = \
|
||||||
libmixer_plugins.a \
|
libmixer_plugins.a \
|
||||||
liboutput_plugins.a
|
liboutput_plugins.a
|
||||||
|
|
||||||
src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
|
libmpd_a_CPPFLAGS = $(AM_CPPFLAGS) \
|
||||||
$(LIBMPDCLIENT_CFLAGS) \
|
$(LIBMPDCLIENT_CFLAGS) \
|
||||||
$(AVAHI_CFLAGS) \
|
$(AVAHI_CFLAGS) \
|
||||||
$(LIBWRAP_CFLAGS) \
|
$(LIBWRAP_CFLAGS) \
|
||||||
$(SQLITE_CFLAGS)
|
$(SQLITE_CFLAGS)
|
||||||
|
|
||||||
src_mpd_LDADD = \
|
src_mpd_LDADD = \
|
||||||
|
libmpd.a \
|
||||||
$(NEIGHBOR_LIBS) \
|
$(NEIGHBOR_LIBS) \
|
||||||
$(DB_LIBS) \
|
$(DB_LIBS) \
|
||||||
$(STORAGE_LIBS) \
|
$(STORAGE_LIBS) \
|
||||||
|
@ -54,6 +57,9 @@ src_mpd_LDADD = \
|
||||||
$(GLIB_LIBS)
|
$(GLIB_LIBS)
|
||||||
|
|
||||||
src_mpd_SOURCES = \
|
src_mpd_SOURCES = \
|
||||||
|
src/Main.cxx src/Main.hxx
|
||||||
|
|
||||||
|
libmpd_a_SOURCES = \
|
||||||
$(OUTPUT_API_SRC) \
|
$(OUTPUT_API_SRC) \
|
||||||
$(MIXER_API_SRC) \
|
$(MIXER_API_SRC) \
|
||||||
src/check.h \
|
src/check.h \
|
||||||
|
@ -116,7 +122,6 @@ src_mpd_SOURCES = \
|
||||||
src/LogLevel.hxx \
|
src/LogLevel.hxx \
|
||||||
src/ls.cxx src/ls.hxx \
|
src/ls.cxx src/ls.hxx \
|
||||||
src/IOThread.cxx src/IOThread.hxx \
|
src/IOThread.cxx src/IOThread.hxx \
|
||||||
src/Main.cxx src/Main.hxx \
|
|
||||||
src/Instance.cxx src/Instance.hxx \
|
src/Instance.cxx src/Instance.hxx \
|
||||||
src/win32/Win32Main.cxx \
|
src/win32/Win32Main.cxx \
|
||||||
src/GlobalEvents.cxx src/GlobalEvents.hxx \
|
src/GlobalEvents.cxx src/GlobalEvents.hxx \
|
||||||
|
@ -172,7 +177,7 @@ src_mpd_SOURCES = \
|
||||||
src/PlaylistFile.cxx src/PlaylistFile.hxx
|
src/PlaylistFile.cxx src/PlaylistFile.hxx
|
||||||
|
|
||||||
if ENABLE_DATABASE
|
if ENABLE_DATABASE
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/PlaylistUpdate.cxx \
|
src/PlaylistUpdate.cxx \
|
||||||
src/command/StorageCommands.cxx src/command/StorageCommands.hxx \
|
src/command/StorageCommands.cxx src/command/StorageCommands.hxx \
|
||||||
src/command/DatabaseCommands.cxx src/command/DatabaseCommands.hxx \
|
src/command/DatabaseCommands.cxx src/command/DatabaseCommands.hxx \
|
||||||
|
@ -238,7 +243,7 @@ endif
|
||||||
|
|
||||||
if ENABLE_DATABASE
|
if ENABLE_DATABASE
|
||||||
if ENABLE_INOTIFY
|
if ENABLE_INOTIFY
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/db/update/InotifyDomain.cxx src/db/update/InotifyDomain.hxx \
|
src/db/update/InotifyDomain.cxx src/db/update/InotifyDomain.hxx \
|
||||||
src/db/update/InotifySource.cxx src/db/update/InotifySource.hxx \
|
src/db/update/InotifySource.cxx src/db/update/InotifySource.hxx \
|
||||||
src/db/update/InotifyQueue.cxx src/db/update/InotifyQueue.hxx \
|
src/db/update/InotifyQueue.cxx src/db/update/InotifyQueue.hxx \
|
||||||
|
@ -247,7 +252,7 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ENABLE_SQLITE
|
if ENABLE_SQLITE
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/command/StickerCommands.cxx src/command/StickerCommands.hxx \
|
src/command/StickerCommands.cxx src/command/StickerCommands.hxx \
|
||||||
src/sticker/StickerDatabase.cxx src/sticker/StickerDatabase.hxx \
|
src/sticker/StickerDatabase.cxx src/sticker/StickerDatabase.hxx \
|
||||||
src/sticker/StickerPrint.cxx src/sticker/StickerPrint.hxx \
|
src/sticker/StickerPrint.cxx src/sticker/StickerPrint.hxx \
|
||||||
|
@ -447,7 +452,7 @@ endif
|
||||||
|
|
||||||
if ENABLE_NEIGHBOR_PLUGINS
|
if ENABLE_NEIGHBOR_PLUGINS
|
||||||
|
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/command/NeighborCommands.cxx \
|
src/command/NeighborCommands.cxx \
|
||||||
src/command/NeighborCommands.hxx
|
src/command/NeighborCommands.hxx
|
||||||
|
|
||||||
|
@ -530,7 +535,7 @@ if ENABLE_ARCHIVE
|
||||||
|
|
||||||
noinst_LIBRARIES += libarchive.a
|
noinst_LIBRARIES += libarchive.a
|
||||||
|
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/db/update/Archive.cxx
|
src/db/update/Archive.cxx
|
||||||
|
|
||||||
libarchive_a_SOURCES = \
|
libarchive_a_SOURCES = \
|
||||||
|
@ -892,18 +897,18 @@ endif
|
||||||
|
|
||||||
|
|
||||||
if HAVE_ZEROCONF
|
if HAVE_ZEROCONF
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/zeroconf/ZeroconfInternal.hxx \
|
src/zeroconf/ZeroconfInternal.hxx \
|
||||||
src/zeroconf/ZeroconfGlue.cxx src/zeroconf/ZeroconfGlue.hxx
|
src/zeroconf/ZeroconfGlue.cxx src/zeroconf/ZeroconfGlue.hxx
|
||||||
|
|
||||||
if HAVE_AVAHI
|
if HAVE_AVAHI
|
||||||
src_mpd_SOURCES += \
|
libmpd_a_SOURCES += \
|
||||||
src/zeroconf/AvahiPoll.cxx src/zeroconf/AvahiPoll.hxx \
|
src/zeroconf/AvahiPoll.cxx src/zeroconf/AvahiPoll.hxx \
|
||||||
src/zeroconf/ZeroconfAvahi.cxx src/zeroconf/ZeroconfAvahi.hxx
|
src/zeroconf/ZeroconfAvahi.cxx src/zeroconf/ZeroconfAvahi.hxx
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_BONJOUR
|
if HAVE_BONJOUR
|
||||||
src_mpd_SOURCES += src/zeroconf/ZeroconfBonjour.cxx src/zeroconf/ZeroconfBonjour.hxx
|
libmpd_a_SOURCES += src/zeroconf/ZeroconfBonjour.cxx src/zeroconf/ZeroconfBonjour.hxx
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue