Let's start tizen audio 3.0
[platform/core/multimedia/libmm-sound.git] / Makefile.am
1 SUBDIRS = common \
2                 pkgconfig \
3                 . \
4                 server \
5                 testsuite
6
7 lib_LTLIBRARIES = libmmfsound.la
8
9 includelibmmfsounddir = $(includedir)/mmf
10 includelibmmfsound_HEADERS = include/mm_sound.h \
11                                                         include/mm_sound_private.h \
12                                                         include/mm_sound_pa_client.h \
13                                                         include/mm_sound_pcm_async.h \
14                                                         include/mm_sound_focus.h
15
16 libmmfsound_la_SOURCES = mm_sound.c \
17                         mm_sound_client.c \
18                         mm_sound_client_dbus.c \
19                         mm_sound_device.c \
20                         mm_sound_pcm.c \
21                         mm_sound_pa_client.c \
22                         mm_sound_pcm_async.c
23 if USE_FOCUS
24 libmmfsound_la_SOURCES += mm_sound_focus.c
25 endif
26
27 libmmfsound_la_DEPENDENCIES = common/libmmfsoundcommon.la
28
29 libmmfsound_la_CFLAGS = -I$(srcdir)/include \
30                         $(MMCOMMON_CFLAGS) \
31                         $(VCONF_CFLAGS) \
32                         -I$(srcdir)/servertype/include \
33                         $(GLIB2_CFLAGS) \
34                         $(GIO_CFLAGS) \
35                         $(MMSESSION_CFLAGS) \
36                         $(AUDIOSESSIONMGR_CFLAGS) \
37                         -D_USE_INTERNAL_SOUND_PATH_ \
38                         $(PASIMPLE_CFLAGS) \
39                         $(PA_CFLAGS) \
40                         $(VCONF_CFLAGS)
41
42 if USE_PULSE
43 libmmfsound_la_CFLAGS += -DPULSE_CLIENT
44 endif
45
46 libmmfsound_la_LIBADD = $(MMCOMMON_LIBS) \
47                         $(MMSESSION_LIBS) \
48                         $(AUDIOSESSIONMGR_LIBS) \
49                         $(GLIB2_LIBS) \
50                         $(GIO_LIBS) \
51                         $(srcdir)/common/libmmfsoundcommon.la \
52                         $(PASIMPLE_LIBS) \
53                         $(PA_LIBS) \
54                         $(VCONF_LIBS)
55
56
57 libmmfsound_la_LDFLAGS = -version-info 1:0:1
58
59 #For logmanager
60 libmmfsound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
61 libmmfsound_la_LIBADD += $(MMLOGSVR_LIBS)
62
63
64
65
66
67
68
69 lib_LTLIBRARIES += libmmfkeysound.la
70
71 includelibmmfkeysounddir = $(includedir)/mmf
72
73 libmmfkeysound_la_SOURCES = mm_sound_keysound.c
74
75 libmmfkeysound_la_CFLAGS = -I$(srcdir)/include \
76                         $(MMCOMMON_CFLAGS) \
77                         $(VCONF_CFLAGS) \
78                         -D_USE_INTERNAL_SOUND_PATH_
79
80 libmmfkeysound_la_LIBADD = $(MMCOMMON_LIBS) $(VCONF_LIBS)
81 libmmfkeysound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
82 libmmfkeysound_la_LIBADD += $(MMLOGSVR_LIBS)
83
84 lib_LTLIBRARIES += libmmfbootsound.la
85
86 includelibmmfbootsounddir = $(includedir)/mmf
87
88 libmmfbootsound_la_SOURCES = mm_sound_bootsound.c
89 libmmfbootsound_la_CFLAGS = -I$(srcdir)/include \
90                         $(MMCOMMON_CFLAGS) \
91                         $(VCONF_CFLAGS) \
92                         -D_USE_INTERNAL_SOUND_PATH_
93
94 libmmfbootsound_la_LIBADD = $(MMCOMMON_LIBS) $(VCONF_LIBS)
95 libmmfbootsound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
96 libmmfbootsound_la_LIBADD += $(MMLOGSVR_LIBS)