OSDN Git Service

Android: add makefile and config.h
[android-x86/external-alsa-lib.git] / Makefile.am
index c0a9a88..ff4c963 100644 (file)
@@ -1,14 +1,37 @@
-SUBDIRS=doc include src aserver test utils
-EXTRA_DIST=ChangeLog INSTALL TODO configure cvscompile libtool version
+ACLOCAL_AMFLAGS = -I m4
 
-INCLUDES=-I$(top_srcdir)/include
+SUBDIRS=doc include src
+if BUILD_TOPOLOGY
+SUBDIRS += src/topology
+endif
+if BUILD_MODULES
+SUBDIRS += modules
+endif
+if BUILD_PCM_PLUGIN_SHM
+SUBDIRS += aserver
+endif
+if BUILD_MIXER
+if BUILD_ALISP
+SUBDIRS += alsalisp
+endif
+endif
+SUBDIRS += test utils
+EXTRA_DIST=README.md ChangeLog INSTALL TODO NOTES configure gitcompile libtool \
+          depcomp version MEMORY-LEAK m4/attributes.m4
+AUTOMAKE_OPTIONS=foreign
+
+AM_CPPFLAGS=-I$(top_srcdir)/include
 
 rpm: dist
        $(MAKE) -C utils rpm
 
 dist-hook:
        -chmod -R a+r $(distdir)
-       $(TAR) cvjf $(distdir).tar.bz2 $(distdir)
+       @if ! test -z "$(AMTAR)"; then \
+               $(AMTAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       else \
+               $(TAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       fi
 
 doc-dummy: