Makefile.am 1.08 KB
Newer Older
aymeric's avatar
aymeric committed
1 2
## Process this file with automake to produce Makefile.in

Yann Diorcet's avatar
Yann Diorcet committed
3 4 5
AM_CPPFLAGS=\
	-I$(top_srcdir) \
	-I$(top_srcdir)/coreapi \
6
	-I$(top_srcdir)/include
Yann Diorcet's avatar
Yann Diorcet committed
7 8 9 10

COMMON_CFLAGS=\
	-D_ORTP_SOURCE \
	$(STRICT_OPTIONS) \
11
	$(STRICT_OPTIONS_CC) \
Simon Morlat's avatar
Simon Morlat committed
12 13
	$(ORTP_CFLAGS) \
	$(MEDIASTREAMER_CFLAGS) \
Yann Diorcet's avatar
Yann Diorcet committed
14 15
	$(VIDEO_CFLAGS) \
	$(READLINE_CFLAGS) \
16
	$(SQLITE3_CFLAGS) \
17 18
	$(LIBXML2_CFLAGS) \
	$(BCTOOLBOX_CFLAGS)
aymeric's avatar
aymeric committed
19

Yann Diorcet's avatar
Yann Diorcet committed
20 21 22
if BUILD_CONSOLE

bin_PROGRAMS=linphonec linphonecsh
aymeric's avatar
aymeric committed
23

24
if BUILD_WIN32
Yann Diorcet's avatar
Yann Diorcet committed
25
bin_PROGRAMS+=linphoned
26
endif
aymeric's avatar
aymeric committed
27

Yann Diorcet's avatar
Yann Diorcet committed
28
linphonec_SOURCES=linphonec.c linphonec.h commands.c
29
linphonec_CFLAGS=$(COMMON_CFLAGS) $(CONSOLE_FLAGS) $(BELLESIP_CFLAGS)
30 31
linphonec_LDADD=$(top_builddir)/coreapi/liblinphone.la \
		$(READLINE_LIBS)  \
Margaux Clerc's avatar
Margaux Clerc committed
32
		$(SQLITE3_LIBS) \
33
		$(X11_LIBS) \
34
		$(BELLESIP_LIBS) \
35 36
		$(LIBXML2_LIBS) \
		$(BCTOOLBOX_LIBS)
aymeric's avatar
aymeric committed
37

38 39
if BUILD_WIN32
#special build of linphonec to detach from the windows console
Yann Diorcet's avatar
Yann Diorcet committed
40
linphoned_SOURCES=$(linphonec_SOURCES)
41 42 43 44 45
linphoned_CFLAGS=$(COMMON_CFLAGS) $(GUI_FLAGS)
linphoned_LDADD=$(linphonec_LDADD)
endif


Yann Diorcet's avatar
Yann Diorcet committed
46 47 48
linphonecsh_SOURCES=shell.c
linphonecsh_CFLAGS=$(COMMON_CFLAGS) $(CONSOLE_FLAGS)
linphonecsh_LDADD=$(ORTP_LIBS)
49

aymeric's avatar
aymeric committed
50 51
endif

52