Commit b70d38dc authored by Max Kellermann's avatar Max Kellermann

Makefile.am: move sources to libsystem.a

parent a27d105d
......@@ -9,6 +9,7 @@ bin_PROGRAMS = src/mpd
noinst_LIBRARIES = \
libutil.a \
libsystem.a \
libevent.a \
libpcm.a \
libconf.a \
......@@ -43,6 +44,7 @@ src_mpd_LDADD = \
$(MIXER_LIBS) \
libconf.a \
libevent.a \
libsystem.a \
libutil.a \
libfs.a \
$(SYSTEMD_DAEMON_LIBS) \
......@@ -54,7 +56,6 @@ mpd_headers = \
src/filter_internal.h \
src/command.h \
src/conf.h \
src/fd_util.h \
src/gerror.h \
src/glib_compat.h \
src/gcc.h \
......@@ -91,8 +92,6 @@ src_mpd_SOURCES = \
src/thread/PosixCond.hxx \
src/thread/WindowsCond.hxx \
src/thread/GLibCond.hxx \
src/FatalError.cxx src/FatalError.hxx \
src/clock.c src/clock.h \
src/notify.cxx src/notify.hxx \
src/AudioConfig.cxx src/AudioConfig.hxx \
src/CheckAudioFormat.cxx src/CheckAudioFormat.hxx \
......@@ -135,7 +134,6 @@ src_mpd_SOURCES = \
src/DatabaseVisitor.hxx \
src/DatabaseSelection.cxx src/DatabaseSelection.hxx \
src/ExcludeList.cxx src/ExcludeList.hxx \
src/fd_util.c \
src/FilterConfig.cxx src/FilterConfig.hxx \
src/FilterPlugin.cxx src/FilterPlugin.hxx \
src/FilterRegistry.cxx src/FilterRegistry.hxx \
......@@ -166,7 +164,6 @@ src_mpd_SOURCES = \
src/Listen.cxx src/Listen.hxx \
src/Log.cxx src/Log.hxx \
src/ls.cxx \
src/SocketError.hxx \
src/io_error.h \
src/IOThread.cxx src/IOThread.hxx \
src/Main.cxx src/Main.hxx \
......@@ -210,8 +207,6 @@ src_mpd_SOURCES = \
src/SongPrint.cxx src/SongPrint.hxx \
src/SongSave.cxx src/SongSave.hxx \
src/SongSort.cxx src/SongSort.hxx \
src/resolver.c src/resolver.h \
src/SocketUtil.cxx src/SocketUtil.hxx \
src/StateFile.cxx src/StateFile.hxx \
src/Stats.cxx \
src/TagType.h \
......@@ -285,6 +280,16 @@ libutil_a_SOURCES = \
src/util/byte_reverse.c src/util/byte_reverse.h \
src/util/bit_reverse.c src/util/bit_reverse.h
# System library
libsystem_a_SOURCES = \
src/system/FatalError.cxx src/system/FatalError.hxx \
src/system/fd_util.c src/system/fd_util.h \
src/system/SocketUtil.cxx src/system/SocketUtil.hxx \
src/system/SocketError.hxx \
src/system/resolver.c src/system/resolver.h \
src/system/clock.c src/system/clock.h
# Event loop library
libevent_a_SOURCES = \
......@@ -1057,9 +1062,9 @@ test_read_conf_LDADD = \
test_read_conf_SOURCES = test/read_conf.cxx
test_run_resolver_LDADD = \
libsystem.a \
$(GLIB_LIBS)
test_run_resolver_SOURCES = test/run_resolver.c \
src/resolver.c
test_run_resolver_SOURCES = test/run_resolver.c
test_DumpDatabase_LDADD = \
$(DB_LIBS) \
......@@ -1084,13 +1089,13 @@ test_run_input_LDADD = \
libconf.a \
libutil.a \
libevent.a \
libsystem.a \
libfs.a \
$(GLIB_LIBS)
test_run_input_SOURCES = test/run_input.cxx \
test/stdbin.h \
src/IOThread.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \
src/fd_util.c
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx
if ENABLE_ARCHIVE
......@@ -1100,13 +1105,13 @@ test_visit_archive_LDADD = \
libconf.a \
libutil.a \
libevent.a \
libsystem.a \
libfs.a \
$(GLIB_LIBS)
test_visit_archive_SOURCES = test/visit_archive.cxx \
src/IOThread.cxx \
src/InputStream.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/fd_util.c
src/Tag.cxx src/TagNames.c src/TagPool.cxx
if ENABLE_DESPOTIFY
test_visit_archive_SOURCES += src/DespotifyUtils.cxx
......@@ -1120,14 +1125,14 @@ test_dump_text_file_LDADD = \
libconf.a \
libevent.a \
libfs.a \
libsystem.a \
libutil.a \
$(GLIB_LIBS)
test_dump_text_file_SOURCES = test/dump_text_file.cxx \
test/stdbin.h \
src/IOThread.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/TextInputStream.cxx \
src/fd_util.c
src/TextInputStream.cxx
test_dump_playlist_LDADD = \
$(PLAYLIST_LIBS) \
......@@ -1138,6 +1143,7 @@ test_dump_playlist_LDADD = \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libsystem.a \
libfs.a \
libutil.a \
libpcm.a \
......@@ -1149,8 +1155,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
src/TagHandler.cxx src/TagFile.cxx \
src/CheckAudioFormat.cxx \
src/TextInputStream.cxx \
src/cue/CueParser.cxx src/cue/CueParser.hxx \
src/fd_util.c
src/cue/CueParser.cxx src/cue/CueParser.hxx
if HAVE_FLAC
test_dump_playlist_SOURCES += \
......@@ -1166,6 +1171,7 @@ test_run_decoder_LDADD = \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
......@@ -1174,7 +1180,6 @@ test_run_decoder_SOURCES = test/run_decoder.cxx \
src/IOThread.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagHandler.cxx \
src/ReplayGainInfo.cxx \
src/fd_util.c \
src/AudioFormat.cxx src/CheckAudioFormat.cxx \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
......@@ -1189,6 +1194,7 @@ test_read_tags_LDADD = \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
......@@ -1196,7 +1202,6 @@ test_read_tags_SOURCES = test/read_tags.cxx \
src/IOThread.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagHandler.cxx \
src/ReplayGainInfo.cxx \
src/fd_util.c \
src/CheckAudioFormat.cxx \
$(DECODER_SRC)
......@@ -1307,6 +1312,7 @@ test_run_output_LDADD = $(MPD_LIBS) \
libconf.a \
libevent.a \
libfs.a \
libsystem.a \
libutil.a \
$(GLIB_LIBS)
test_run_output_SOURCES = test/run_output.cxx \
......@@ -1316,11 +1322,9 @@ test_run_output_SOURCES = test/run_output.cxx \
src/CheckAudioFormat.cxx \
src/AudioFormat.cxx \
src/AudioParser.cxx \
src/Timer.cxx src/clock.c \
src/Timer.cxx \
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/Page.cxx \
src/SocketUtil.cxx \
src/resolver.c \
src/OutputInit.cxx src/OutputFinish.cxx src/OutputList.cxx \
src/OutputPlugin.cxx \
src/MixerControl.cxx \
......@@ -1328,8 +1332,7 @@ test_run_output_SOURCES = test/run_output.cxx \
src/FilterPlugin.cxx \
src/FilterConfig.cxx \
src/AudioCompress/compress.c \
src/ReplayGainInfo.cxx \
src/fd_util.c
src/ReplayGainInfo.cxx
test_read_mixer_LDADD = \
libpcm.a \
......@@ -1338,13 +1341,13 @@ test_read_mixer_LDADD = \
libconf.a \
libutil.a \
libevent.a \
libsystem.a \
libfs.a \
$(GLIB_LIBS)
test_read_mixer_SOURCES = test/read_mixer.cxx \
src/MixerControl.cxx \
src/FilterPlugin.cxx \
src/filter/VolumeFilterPlugin.cxx \
src/fd_util.c
src/filter/VolumeFilterPlugin.cxx
if ENABLE_BZIP2_TEST
TESTS += test/test_archive_bzip2.sh
......@@ -1361,11 +1364,10 @@ endif
if ENABLE_INOTIFY
noinst_PROGRAMS += test/run_inotify
test_run_inotify_SOURCES = test/run_inotify.cxx \
src/FatalError.cxx \
src/fd_util.c \
src/InotifySource.cxx
test_run_inotify_LDADD = \
libevent.a \
libsystem.a \
libutil.a \
$(GLIB_LIBS)
endif
......@@ -1393,9 +1395,9 @@ test_test_pcm_LDADD = \
test_test_queue_priority_SOURCES = \
src/Queue.cxx \
src/fd_util.c \
test/test_queue_priority.cxx
test_test_queue_priority_LDADD = \
libsystem.a \
libutil.a \
$(GLIB_LIBS)
......
......@@ -22,9 +22,9 @@
#include "ClientList.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
extern "C" {
#include "resolver.h"
#include "system/resolver.h"
}
#include "Permission.hxx"
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "Daemon.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include <glib.h>
......
......@@ -46,7 +46,7 @@ daemonize_finish(void)
void
daemonize_kill(void);
#else
#include "FatalError.hxx"
#include "system/FatalError.hxx"
static inline void
daemonize_kill(void)
{
......
......@@ -24,7 +24,7 @@
#include "DecoderError.hxx"
#include "DecoderPlugin.hxx"
#include "Song.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include "Mapper.hxx"
#include "fs/Path.hxx"
#include "DecoderAPI.hxx"
......
......@@ -20,8 +20,8 @@
#include "config.h"
#include "InotifySource.hxx"
#include "util/fifo_buffer.h"
#include "fd_util.h"
#include "FatalError.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include <glib.h>
......
......@@ -20,8 +20,8 @@
#include "config.h"
#include "Log.hxx"
#include "conf.h"
#include "fd_util.h"
#include "FatalError.hxx"
#include "system/fd_util.h"
#include "system/FatalError.hxx"
#include "mpd_error.h"
#include <assert.h>
......
......@@ -55,7 +55,7 @@
#include "AudioConfig.hxx"
#include "pcm/PcmResample.hxx"
#include "Daemon.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
extern "C" {
#include "stats.h"
......
......@@ -22,7 +22,7 @@
#include "MusicChunk.hxx"
#include "thread/Mutex.hxx"
#include "util/SliceBuffer.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include <assert.h>
......
......@@ -26,7 +26,7 @@
#include "MusicBuffer.hxx"
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include "conf.h"
#include "notify.hxx"
......
......@@ -29,7 +29,7 @@
#include "PlayerControl.hxx"
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include "gcc.h"
#include <glib.h>
......
......@@ -26,7 +26,7 @@
#include "MusicChunk.hxx"
#include "Song.hxx"
#include "Main.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include "CrossFade.hxx"
#include "PlayerControl.hxx"
#include "OutputAll.hxx"
......
......@@ -26,7 +26,7 @@
#include "Main.hxx"
#include "event/Loop.hxx"
#include "GlobalEvents.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include <glib.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "Timer.hxx"
#include "AudioFormat.hxx"
#include "clock.h"
#include "system/clock.h"
#include <glib.h>
......
......@@ -33,7 +33,7 @@ extern "C" {
#include "Main.hxx"
#include "Instance.hxx"
#include "FatalError.hxx"
#include "system/FatalError.hxx"
#include <glib.h>
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "BufferedSocket.hxx"
#include "SocketError.hxx"
#include "system/SocketError.hxx"
#include "util/fifo_buffer.h"
#include <assert.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#ifdef USE_EVENTFD
#include "EventFD.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "gcc.h"
#include <unistd.h>
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "EventPipe.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "gcc.h"
#include <unistd.h>
......
......@@ -19,7 +19,7 @@
#include "config.h"
#include "FullyBufferedSocket.hxx"
#include "SocketError.hxx"
#include "system/SocketError.hxx"
#include "util/fifo_buffer.h"
#include <assert.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "MultiSocketMonitor.hxx"
#include "Loop.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "gcc.h"
#include <assert.h>
......
......@@ -24,11 +24,11 @@
#endif
#include "ServerSocket.hxx"
#include "SocketUtil.hxx"
#include "SocketError.hxx"
#include "system/SocketUtil.hxx"
#include "system/SocketError.hxx"
#include "event/SocketMonitor.hxx"
#include "resolver.h"
#include "fd_util.h"
#include "system/resolver.h"
#include "system/fd_util.h"
#include <sys/types.h>
#include <sys/stat.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "SocketMonitor.hxx"
#include "Loop.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "gcc.h"
#include <assert.h>
......
......@@ -21,7 +21,7 @@
#define MPD_FS_FILESYSTEM_HXX
#include "check.h"
#include "fd_util.h"
#include "system/fd_util.h"
#include "Path.hxx"
......
......@@ -22,7 +22,7 @@
#include "InputInternal.hxx"
#include "InputStream.hxx"
#include "InputPlugin.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "open.h"
#include "io_error.h"
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "MixerInternal.hxx"
#include "OutputAPI.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include <glib.h>
......
......@@ -21,7 +21,7 @@
#include "FifoOutputPlugin.hxx"
#include "OutputAPI.hxx"
#include "Timer.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "open.h"
#include <glib.h>
......
......@@ -23,7 +23,7 @@
#include "util/fifo_buffer.h"
#include "Page.hxx"
#include "IcyMetaDataServer.hxx"
#include "SocketError.hxx"
#include "system/SocketError.hxx"
#include <assert.h>
#include <string.h>
......
......@@ -24,10 +24,10 @@
#include "OutputAPI.hxx"
#include "EncoderPlugin.hxx"
#include "EncoderList.hxx"
#include "resolver.h"
#include "system/resolver.h"
#include "Page.hxx"
#include "IcyMetaDataServer.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "Main.hxx"
#include <assert.h>
......
......@@ -21,7 +21,7 @@
#include "OssOutputPlugin.hxx"
#include "OutputAPI.hxx"
#include "MixerList.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include <glib.h>
......
......@@ -22,7 +22,7 @@
#include "OutputAPI.hxx"
#include "EncoderPlugin.hxx"
#include "EncoderList.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include "open.h"
#include <assert.h>
......
......@@ -20,7 +20,7 @@
#include "config.h"
#include "SolarisOutputPlugin.hxx"
#include "OutputAPI.hxx"
#include "fd_util.h"
#include "system/fd_util.h"
#include <glib.h>
......
......@@ -18,7 +18,7 @@
*/
#include "config.h"
#include "resolver.h"
#include "system/resolver.h"
#ifdef WIN32
#include <ws2tcpip.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment