summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: a2ea79ef0961c6d29fd77558ccda1d950c358b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SUBDIRS = init

bin_PROGRAMS = audio-session-mgr-server

audio_session_mgr_server_SOURCES = \
	$(srcdir)/src/audio-session-mgr-server.c 

#audio_session_mgr_server_LDADD = libaudio-session-mgr.la

audio_session_mgr_server_CPPFLAGS = -I$(srcdir)/include/ -D__DEBUG_MODE__ -DUSE_VCONF $(MMLOG_CFLAGS) -D__USE_LOGMANAGER__ $(SYSMAN_CFLAGS) $(AVSYSAUDIO_CFLAGS)
#audio_session_mgr_server_LDFLAGS += $(AUDIOSESSIONMGR_LIBS) $(MMLOG_LIBS) $(SYSMAN_LIBS)
audio_session_mgr_server_LDADD = $(AUDIOSESSIONMGR_LIBS) $(MMLOG_LIBS) $(SYSMAN_LIBS) $(AVSYSAUDIO_LIBS)

if USE_SECURITY
audio_session_mgr_server_CPPFLAGS += $(SECURITY_CFLAGS) -DUSE_SECURITY
audio_session_mgr_server_LDADD += $(SECURITY_LIBS)
endif

AM_CFLAGS = $(AUDIOSESSIONMGR_CFLAGS) 

lib_LTLIBRARIES = libaudio-session-mgr.la
libaudio_session_mgr_la_SOURCES = $(srcdir)/src/audio-session-mgr.c 

libaudio_session_mgr_la_LIBADD = $(AUDIOSESSIONMGR_LIBS) $(MMLOG_LIBS)
libaudio_session_mgr_la_LDFLAGS = -Wl,-init, __ASM_init_module
libaudio_session_mgr_la_LDFLAGS += -Wl,-fini, __ASM_fini_module

libaudio_session_mgr_la_CPPFLAGS = -I$(srcdir)/include -D__DEBUG_MODE__ -DUSE_VCONF $(MMLOG_CFLAGS) -D__USE_LOGMANAGER__

if USE_SECURITY
libaudio_session_mgr_la_CPPFLAGS += $(SECURITY_CFLAGS) -DUSE_SECURITY
libaudio_session_mgr_la_LIBADD += $(SECURITY_LIBS)
endif

audiosessionmgrincludedir = $(includedir)/mmf
audiosessionmgrinclude_HEADERS = \
		$(srcdir)/include/audio-session-manager-types.h \
		$(srcdir)/include/audio-session-manager.h


pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = audio-session-mgr.pc