]> sjero.net Git - linphone/blob - coreapi/help/Makefile.am
Merge remote-tracking branch 'origin/master' into dev_videoios
[linphone] / coreapi / help / Makefile.am
1
2 EXTRA_DIST = Doxyfile.in doxygen.dox
3
4 SOURCES= doxygen.dox $(top_srcdir)/coreapi/help/*.c $(top_srcdir)/coreapi/*.c $(top_srcdir)/coreapi/*.h  
5
6
7 #html doc
8 if HAVE_DOXYGEN
9
10 # doxdir & pkgdocdir are not always defined by automake
11 docdir=$(datadir)/doc
12 pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
13 doc_htmldir=$(pkgdocdir)/html
14
15 doc_html_DATA = $(top_builddir)/coreapi/help/doc/html/html.tar
16
17 $(doc_html_DATA): $(top_builddir)/coreapi/help/doc/html/index.html
18         cd $(<D) && tar cf html.tar *
19
20 $(top_builddir)/coreapi/help/doc/html/index.html: $(SOURCES) Doxyfile Makefile.am
21         rm -rf doc
22         $(DOXYGEN) Doxyfile
23
24 install-data-hook:
25         cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar
26
27 uninstall-hook:
28         cd $(DESTDIR)$(doc_htmldir) && rm -f *
29
30 endif
31
32 clean-local:
33         rm -rf doc
34
35 if ENABLE_TESTS
36 #tutorials
37 if BUILD_TESTS
38 noinst_PROGRAMS=helloworld registration buddy_status chatroom
39
40 helloworld_SOURCES=helloworld.c
41 LINPHONE_TUTOS=$(helloworld_SOURCES)
42
43 helloworld_LDADD=$(top_builddir)/coreapi/liblinphone.la \
44                                 $(MEDIASTREAMER_LIBS) \
45                                 $(ORTP_LIBS)
46
47 registration_SOURCES=registration.c
48 LINPHONE_TUTOS+=$(registration_SOURCES)
49
50 registration_LDADD=$(helloworld_LDADD)
51
52 buddy_status_SOURCES=buddy_status.c
53 LINPHONE_TUTOS+=$(buddy_status_SOURCES)
54
55 buddy_status_LDADD=$(helloworld_LDADD)
56
57 chatroom_SOURCES=chatroom.c
58 LINPHONE_TUTOS+=$(chatroom_SOURCES)
59
60 chatroom_LDADD=$(helloworld_LDADD)
61 endif
62                                                                                                 
63 endif                   
64
65 INCLUDES=-I$(top_srcdir)/coreapi \
66                 $(MEDIASTREAMER_CFLAGS)
67
68 AM_CFLAGS=$(STRICT_OPTIONS)  -DIN_LINPHONE \
69         $(ORTP_CFLAGS) \
70         $(OSIP_CFLAGS) \
71         $(MEDIASTREAMER_CFLAGS) \
72         $(EXOSIP_CFLAGS) \
73         -DENABLE_TRACE  \
74         -DLOG_DOMAIN=\"LinphoneCore\" \
75          $(IPV6_CFLAGS) \
76          -DORTP_INET6 \
77          $(VIDEO_CFLAGS) 
78
79
80 tutodir=$(datadir)/tutorials/linphone
81
82 tuto_DATA=$(LINPHONE_TUTOS)