2018-02-14 04:29:40 +08:00
|
|
|
if BUILD_RIMAGE
|
|
|
|
SUBDIRS = rimage
|
|
|
|
else
|
2018-04-13 19:03:42 +08:00
|
|
|
SUBDIRS = doc src
|
2018-02-14 04:29:40 +08:00
|
|
|
endif
|
2016-09-21 22:57:22 +08:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2018-01-11 01:36:41 +08:00
|
|
|
EXTRA_DIST = version.sh
|
|
|
|
|
2016-09-21 22:57:22 +08:00
|
|
|
SRC_DIR = $(abs_top_builddir)/src
|
|
|
|
|
2018-01-25 14:42:38 +08:00
|
|
|
if BUILD_HOST
|
|
|
|
export ARCH_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/include
|
|
|
|
|
2018-04-05 07:46:50 +08:00
|
|
|
export SOF_INCDIR = \
|
2018-01-25 14:42:38 +08:00
|
|
|
-I $(SRC_DIR)/include
|
|
|
|
|
|
|
|
if BUILD_LIB
|
|
|
|
export PLATFORM_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/library/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
2018-04-05 07:46:50 +08:00
|
|
|
export SOF_INCDIR = \
|
2016-09-21 22:57:22 +08:00
|
|
|
-I $(SRC_DIR)/include \
|
2016-10-19 00:18:16 +08:00
|
|
|
-I $(ROOT_DIR)/include
|
2016-09-21 22:57:22 +08:00
|
|
|
|
|
|
|
export ARCH_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/include \
|
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/xtos
|
|
|
|
export PLATFORM_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/platform/$(PLATFORM)/include
|
2018-01-25 14:42:38 +08:00
|
|
|
endif
|
2016-09-21 22:57:22 +08:00
|
|
|
|
|
|
|
dist-hook:
|
2018-01-11 01:36:41 +08:00
|
|
|
./version.sh $(top_srcdir)
|
2016-12-23 00:01:21 +08:00
|
|
|
cat .version > $(distdir)/.tarball-version
|
|
|
|
cat .version > $(distdir)/.version
|
2017-06-06 17:41:32 +08:00
|
|
|
|
2018-04-13 19:03:42 +08:00
|
|
|
doc-dummy:
|
|
|
|
|
|
|
|
doc: doc-dummy
|
|
|
|
$(MAKE) -C doc doc
|
|
|
|
|
2017-06-06 17:41:32 +08:00
|
|
|
all-local:
|
|
|
|
rm -f $(top_srcdir)/src/include/version.h
|