Makefile.am 1.76 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
UI_FILES=	about.ui \
		main.ui \
		password.ui \
		contact.ui \
		parameters.ui \
		sip_account.ui \
		chatroom.ui \
		call_logs.ui \
		log.ui \
		buddylookup.ui \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
11
		tunnel_config.ui \
12
		waiting.ui \
13 14
		dscp_settings.ui \
		call_statistics.ui
aymeric's avatar
aymeric committed
15

16
PIXMAPS=	\
aymeric's avatar
aymeric committed
17 18
		stock_people.png 

smorlat's avatar
smorlat committed
19 20 21
LINPHONE_ICO_RC_FILE=linphone.rc
LINPHONE_ICO_FILE=linphone.ico

aymeric's avatar
aymeric committed
22
EXTRA_DIST=	$(PIXMAPS) \
23
		$(UI_FILES) \
smorlat's avatar
smorlat committed
24 25 26
		linphone.iss \
		$(LINPHONE_ICO_RC_FILE) \
		$(LINPHONE_ICO_FILE)
27 28
		gtkrc \
		gtkrc.mac
aymeric's avatar
aymeric committed
29

30
if BUILD_GTK_UI
aymeric's avatar
aymeric committed
31

32 33
BUILT_SOURCES=version_date.h

34
bin_PROGRAMS=linphone
aymeric's avatar
aymeric committed
35

36
linphone_SOURCES=	\
37
			main.c \
aymeric's avatar
aymeric committed
38 39 40 41 42 43
			propertybox.c \
			friendlist.c \
			support.c \
			chat.c \
			calllogs.c \
			logging.c \
smorlat's avatar
smorlat committed
44
			update.c \
smorlat's avatar
smorlat committed
45
			buddylookup.c \
46
			utils.c \
smorlat's avatar
smorlat committed
47
			incall_view.c \
48
			loginframe.c \
49
			singleinstance.c \
50
			conference.c \
51
			linphone.h 
52 53 54 55
if BUILD_WIZARD
linphone_SOURCES+=	\
			setupwizard.c
endif
aymeric's avatar
aymeric committed
56

57
linphone_LDADD=$(ORTP_LIBS) \
58
		$(MEDIASTREAMER_LIBS) \
aymeric's avatar
aymeric committed
59
		$(top_builddir)/coreapi/liblinphone.la \
60
			$(LIBGTK_LIBS) $(NOTIFY1_LIBS) $(NOTIFY4_LIBS) $(LIBGTKMAC_LIBS) $(INTLLIBS) 
aymeric's avatar
aymeric committed
61

simorl's avatar
simorl committed
62

63
if BUILD_WIN32
simorl's avatar
simorl committed
64

smorlat's avatar
smorlat committed
65
linphone.res:	$(LINPHONE_ICO_RC_FILE) $(LINPHONE_ICO_FILE)
Yann Diorcet's avatar
Yann Diorcet committed
66
	windres $(srcdir)/$(LINPHONE_ICO_RC_FILE) -O coff -o linphone.res
simorl's avatar
simorl committed
67

68 69
linphone_LDADD+=linphone.res -lwininet
linphone_LDFLAGS=-Wl,--export-all-symbols -mwindows
simorl's avatar
simorl committed
70
else
71
linphone_LDFLAGS=-export-dynamic
simorl's avatar
simorl committed
72
endif
aymeric's avatar
aymeric committed
73

74 75
uidir=$(datadir)/linphone
ui_DATA=$(UI_FILES) $(PIXMAPS) $(top_srcdir)/COPYING
aymeric's avatar
aymeric committed
76 77 78 79

endif


80
AM_CFLAGS= -DIN_LINPHONE -I$(top_srcdir)/coreapi/ \
81
		$(MEDIASTREAMER_CFLAGS) \
82
		$(ORTP_CFLAGS) \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
83 84
		$(STRICT_OPTIONS) $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) $(IPV6_CFLAGS) \
		$(TUNNEL_CFLAGS)
aymeric's avatar
aymeric committed
85 86


87
version_date.h: $(top_srcdir)/configure.ac
88 89 90 91 92
	echo "#define LINPHONE_VERSION_DATE \"$(VERSION)-`date +%y%m%d`\"" > $@

newdate:
	rm -f version_date.h

93
CLEANFILES=version_date.h linphone.res
94