Merge 1. Support DOCK Audio 2. Fix build breaks
[framework/multimedia/libmm-sound.git] / server / Makefile.am
1 SUBDIRS = plugin
2
3 bin_PROGRAMS = sound_server
4 sound_server_SOURCES = mm_sound_mgr_codec.c \
5                                                 mm_sound_mgr_ipc.c \
6                                                 mm_sound_mgr_pulse.c \
7                                                 mm_sound_mgr_asm.c \
8                                                 mm_sound_mgr_device.c \
9                                                 mm_sound_mgr_headset.c \
10                                                 mm_sound_mgr_dock.c \
11                                                 mm_sound_mgr_session.c \
12                                                 mm_sound_mgr_run.c \
13                                                 mm_sound_plugin.c \
14                                                 mm_sound_server.c \
15                                                 mm_sound_thread_pool.c \
16                                                 mm_sound_recovery.c
17
18 sound_server_CFLAGS = -I$(srcdir)/../include \
19                                           -I$(srcdir)/include \
20                                           $(MMCOMMON_CFLAGS) \
21                                           $(MMLOGSVR_CFLAGS) \
22                                           -DMMF_LOG_OWNER=0x020 \
23                                           -DMMF_DEBUG_PREFIX=\"MMF-SOUND\" \
24                                           -D__DEBUG_MODE__ -DUSE_VCONF -D__USE_LOGMANAGER__ \
25                                           $(MMSESSION_CFLAGS) \
26                                           $(AVSYSTEM_CFLAGS) \
27                                           $(AUDIOSESSIONMGR_CFLAGS) \
28                                           $(VCONF_CFLAGS) \
29                                           $(GLIB2_CFLAGS) \
30                                           $(HEYNOTI_CFLAGS)
31
32 sound_server_LDADD = $(MMLOGSVR_LIBS) \
33                      -ldl \
34                      $(MMCOMMON_LIBS) \
35                      $(MMSESSION_LIBS) \
36                      $(AVSYSTEM_LIBS) \
37                      $(AUDIOSESSIONMGR_LIBS) \
38                      $(GLIB2_LIBS) \
39                      $(VCONF_LIBS) \
40                      $(HEYNOTI_LIBS) \
41                      $(srcdir)/../libmmfsound.la \
42                      $(srcdir)/../common/libmmfsoundcommon.la 
43
44 if USE_PULSE
45 sound_server_CFLAGS += -DPULSE_CLIENT $(PULSE_CFLAGS)
46 sound_server_LDADD += $(PULSE_LIBS)
47 endif
48
49 if USE_SECURITY
50 sound_server_CFLAGS += $(SECURITY_CFLAGS) -DUSE_SECURITY
51 sound_server_LDADD += $(SECURITY_LIBS)
52 endif
53
54 sound_server_DEPENDENCIES = $(srcdir)/../common/libmmfsoundcommon.la