logging: Avoid compiler warnings when compiling c++ code
[osmocom-bb.git] / Makefile.am
blobd0fb027ad06e25fe32efac891a55ea02ff9dd2cb
1 ACLOCAL_AMFLAGS = -I m4
3 INCLUDES = $(all_includes) -I$(top_srcdir)/include
4 SUBDIRS = include src src/vty src/codec src/gsm src/gb tests utils
6 pkgconfigdir = $(libdir)/pkgconfig
7 pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc \
8                  libosmogb.pc
10 BUILT_SOURCES = $(top_srcdir)/.version
11 $(top_srcdir)/.version:
12         echo $(VERSION) > $@-t && mv $@-t $@
13 dist-hook:
14         echo $(VERSION) > $(distdir)/.tarball-version
16 EXTRA_DIST = git-version-gen
18 if HAVE_DOXYGEN
20 html_DATA = $(top_builddir)/doc/html.tar
22 $(html_DATA): $(top_builddir)/doc/core/html/index.html \
23                   $(top_builddir)/doc/gsm/html/index.html \
24                   $(top_builddir)/doc/vty/html/index.html \
25                   $(top_builddir)/doc/codec/html/index.html
26         cd $(top_builddir)/doc && tar cf html.tar */html
28 $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
29         @rm -rf doc/core
30         mkdir -p doc/core
31         $(DOXYGEN) Doxyfile.core
33 $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
34         @rm -rf doc/gsm
35         mkdir -p doc/gsm
36         $(DOXYGEN) Doxyfile.gsm
38 $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
39         @rm -rf doc/vty
40         mkdir -p doc/vty
41         $(DOXYGEN) Doxyfile.vty
43 $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
44         @rm -rf doc/codec
45         mkdir -p doc/codec
46         $(DOXYGEN) Doxyfile.codec
48 install-data-hook:
49         cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
51 uninstall-hook:
52         cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec}
54 DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar
55 endif
57 MOSTLYCLEANFILES = $(DX_CLEAN)