serial: don't set O_NDELAY, as it is more or less O_NONBLOCK
[osmocom-bb.git] / Makefile.am
blobc9b7ccd9eecf437a842e8fb35dfe9b98e207132d
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/{html,latex}
40         $(DOXYGEN) Doxyfile.vty
42 $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
43         @rm -rf doc/codec
44         mkdir -p doc/codec
45         $(DOXYGEN) Doxyfile.codec
47 install-data-hook:
48         cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
50 uninstall-hook:
51         cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec}
53 DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar
54 endif
56 MOSTLYCLEANFILES = $(DX_CLEAN)