Makefile.am 1.67 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
aymeric's avatar
aymeric committed
13

14
PIXMAPS=	\
aymeric's avatar
aymeric committed
15 16
		stock_people.png 

smorlat's avatar
smorlat committed
17 18 19
LINPHONE_ICO_RC_FILE=linphone.rc
LINPHONE_ICO_FILE=linphone.ico

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

28
if BUILD_GTK_UI
aymeric's avatar
aymeric committed
29

30 31
BUILT_SOURCES=version_date.h

32
bin_PROGRAMS=linphone
aymeric's avatar
aymeric committed
33

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

52
linphone_LDADD=$(ORTP_LIBS) \
53
		$(MEDIASTREAMER_LIBS) \
aymeric's avatar
aymeric committed
54
		$(top_builddir)/coreapi/liblinphone.la \
55
			$(LIBGTK_LIBS) $(NOTIFY1_LIBS) $(NOTIFY4_LIBS) $(LIBGTKMAC_LIBS) $(INTLLIBS) 
aymeric's avatar
aymeric committed
56

simorl's avatar
simorl committed
57

58
if BUILD_WIN32
simorl's avatar
simorl committed
59

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

63 64
linphone_LDADD+=linphone.res -lwininet
linphone_LDFLAGS=-Wl,--export-all-symbols -mwindows
simorl's avatar
simorl committed
65
else
66
linphone_LDFLAGS=-export-dynamic
simorl's avatar
simorl committed
67
endif
aymeric's avatar
aymeric committed
68

69 70
uidir=$(datadir)/linphone
ui_DATA=$(UI_FILES) $(PIXMAPS) $(top_srcdir)/COPYING
aymeric's avatar
aymeric committed
71 72 73 74

endif


75
AM_CFLAGS= -DIN_LINPHONE -I$(top_srcdir)/coreapi/ \
76
		$(MEDIASTREAMER_CFLAGS) \
smorlat's avatar
smorlat committed
77
		$(ORTP_CFLAGS) \
Guillaume Beraudo's avatar
Guillaume Beraudo committed
78 79
		$(STRICT_OPTIONS) $(LIBGTK_CFLAGS) $(LIBGTKMAC_CFLAGS) $(IPV6_CFLAGS) \
		$(TUNNEL_CFLAGS)
aymeric's avatar
aymeric committed
80 81


82
version_date.h: $(top_srcdir)/configure.ac
83 84 85 86 87
	echo "#define LINPHONE_VERSION_DATE \"$(VERSION)-`date +%y%m%d`\"" > $@

newdate:
	rm -f version_date.h

smorlat's avatar
smorlat committed
88
CLEANFILES=version_date.h linphone.res
89