Makefile.am 2.29 KB
Newer Older
1 2 3 4 5 6 7
UI_FILES=	about.ui \
		main.ui \
		password.ui \
		contact.ui \
		parameters.ui \
		sip_account.ui \
		call_logs.ui \
Margaux Clerc's avatar
Margaux Clerc committed
8
		keypad.ui \
9 10
		log.ui \
		buddylookup.ui \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
11
		tunnel_config.ui \
12
		waiting.ui \
13
		dscp_settings.ui \
14
		call_statistics.ui \
15
		ldap.ui \
Margaux Clerc's avatar
Margaux Clerc committed
16
		config-uri.ui \
Margaux Clerc's avatar
Margaux Clerc committed
17
		provisioning-fetch.ui \
18
		audio_assistant.ui \
19 20 21 22
		chatroom_frame.ui \
		in_call_frame.ui \
		conf_frame.ui \
		callee_frame.ui \
23 24
		login_frame.ui \
		setup_wizard.ui
aymeric's avatar
aymeric committed
25

26
PIXMAPS=	\
27
		stock_people.png
aymeric's avatar
aymeric committed
28

smorlat's avatar
smorlat committed
29 30 31
LINPHONE_ICO_RC_FILE=linphone.rc
LINPHONE_ICO_FILE=linphone.ico

32 33 34 35 36 37
EXTRA_DIST= \
	linphone.iss \
	$(LINPHONE_ICO_RC_FILE) \
	$(LINPHONE_ICO_FILE)
	gtkrc \
	gtkrc.mac
aymeric's avatar
aymeric committed
38

39
if BUILD_GTK_UI
aymeric's avatar
aymeric committed
40

41 42
BUILT_SOURCES=version_date.h

43
bin_PROGRAMS=linphone
aymeric's avatar
aymeric committed
44

45
linphone_SOURCES=	\
46
			main.c \
aymeric's avatar
aymeric committed
47 48 49 50 51 52
			propertybox.c \
			friendlist.c \
			support.c \
			chat.c \
			calllogs.c \
			logging.c \
smorlat's avatar
smorlat committed
53
			update.c \
smorlat's avatar
smorlat committed
54
			buddylookup.c \
55
			utils.c \
smorlat's avatar
smorlat committed
56
			incall_view.c \
57
			loginframe.c \
58
			singleinstance.c \
59
			conference.c \
60
			config-fetching.c \
Margaux Clerc's avatar
Margaux Clerc committed
61
			audio_assistant.c \
62
			videowindow.c \
François Grisez's avatar
François Grisez committed
63
			status_icon.c status_icon.h \
jehan's avatar
jehan committed
64
			linphone.h regex.h
65

66 67
if BUILD_WIZARD
linphone_SOURCES+= \
Simon Morlat's avatar
Simon Morlat committed
68
	setupwizard.c setupwizard.h
69 70
endif

71 72 73 74 75 76
if BUILD_STATUS_NOTIFIER
linphone_SOURCES+= \
	status_notifier.c \
	status_notifier.h
endif

77

78
linphone_LDADD=	$(top_builddir)/coreapi/liblinphone.la \
79
		$(LIBGTK_LIBS) $(NOTIFY1_LIBS) $(NOTIFY4_LIBS) $(LIBGTKMAC_LIBS) $(INTLLIBS) $(SQLITE3_LIBS) $(BELLESIP_LIBS)
aymeric's avatar
aymeric committed
80

simorl's avatar
simorl committed
81

82
if BUILD_WIN32
simorl's avatar
simorl committed
83

smorlat's avatar
smorlat committed
84
linphone.res:	$(LINPHONE_ICO_RC_FILE) $(LINPHONE_ICO_FILE)
85
	$(WINDRES) $(srcdir)/$(LINPHONE_ICO_RC_FILE) -O coff -o linphone.res
simorl's avatar
simorl committed
86

87 88
linphone_LDADD+=linphone.res -lwininet
linphone_LDFLAGS=-Wl,--export-all-symbols -mwindows
simorl's avatar
simorl committed
89
else
90
linphone_LDFLAGS=-export-dynamic
simorl's avatar
simorl committed
91
endif
aymeric's avatar
aymeric committed
92

93
uidir=$(datadir)/linphone
94
dist_ui_DATA=$(UI_FILES) $(PIXMAPS) $(top_srcdir)/COPYING
aymeric's avatar
aymeric committed
95

96 97 98 99
if BUILD_MACOS
linphone_SOURCES+=mac.m
linphone_LDFLAGS+=-framework Cocoa
endif
aymeric's avatar
aymeric committed
100 101 102
endif


103
AM_CPPFLAGS= -DIN_LINPHONE -I$(top_srcdir)/coreapi/ -I$(top_builddir)/coreapi/ \
104
		$(MEDIASTREAMER_CFLAGS) \
105
		$(ORTP_CFLAGS) $(BELLESIP_CFLAGS) \
106
		$(STRICT_OPTIONS) $(STRICT_OPTIONS_CC) $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) $(IPV6_CFLAGS) \
Margaux Clerc's avatar
Margaux Clerc committed
107 108
		$(TUNNEL_CFLAGS) \
		$(SQLITE3_CFLAGS)
aymeric's avatar
aymeric committed
109

110
version_date.h: $(top_srcdir)/configure.ac
111 112 113 114 115
	echo "#define LINPHONE_VERSION_DATE \"$(VERSION)-`date +%y%m%d`\"" > $@

newdate:
	rm -f version_date.h

116
CLEANFILES=version_date.h linphone.res
117