]> sjero.net Git - linphone/blob - coreapi/help/Makefile.am
c24672180bbfc0dd270fecf87b34d9641bb02950
[linphone] / coreapi / help / Makefile.am
1
2 EXTRA_DIST = Doxyfile.in doxygen.dox
3
4 SOURCES= doxygen.dox *.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 noinst_PROGRAMS=helloworld registration buddy_status
36
37 helloworld_SOURCES=helloworld.c
38
39 helloworld_LDADD=$(top_builddir)/coreapi/liblinphone.la \
40                                 $(MEDIASTREAMER_LIBS) \
41                                 $(ORTP_LIBS)
42
43 registration_SOURCES=registration.c
44
45 registration_LDADD=$(top_builddir)/coreapi/liblinphone.la \
46                                 $(MEDIASTREAMER_LIBS) \
47                                 $(ORTP_LIBS)
48
49 buddy_status_SOURCES=buddy_status.c
50
51 buddy_status_LDADD=$(top_builddir)/coreapi/liblinphone.la \
52                                 $(MEDIASTREAMER_LIBS) \
53                                 $(ORTP_LIBS)                            
54                                 
55
56 INCLUDES=-I$(top_srcdir)/coreapi \
57                 $(MEDIASTREAMER_CFLAGS)
58
59 AM_CFLAGS=$(STRICT_OPTIONS)  -DIN_LINPHONE \
60         $(ORTP_CFLAGS) \
61         $(OSIP_CFLAGS) \
62         $(MEDIASTREAMER_CFLAGS) \
63         $(EXOSIP_CFLAGS) \
64         -DENABLE_TRACE  \
65         -DLOG_DOMAIN=\"LinphoneCore\" \
66          $(IPV6_CFLAGS) \
67          -DORTP_INET6 \
68          $(VIDEO_CFLAGS) 
69