2018-02-14 04:29:40 +08:00
|
|
|
if BUILD_RIMAGE
|
|
|
|
SUBDIRS = rimage
|
|
|
|
else
|
2018-06-11 16:31:30 +08:00
|
|
|
SUBDIRS = doc src test
|
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
|
|
|
|
2018-06-27 18:00:58 +08:00
|
|
|
ARCH_INCDIR = -I $(SRC_DIR)/arch/$(ARCH)/include
|
|
|
|
|
|
|
|
if BUILD_XTENSA_SMP
|
|
|
|
ARCH_INCDIR += \
|
2018-07-03 17:52:29 +08:00
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/smp/include \
|
2018-06-27 18:00:58 +08:00
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/smp/xtos
|
|
|
|
else
|
|
|
|
ARCH_INCDIR += \
|
2018-07-03 17:52:29 +08:00
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/up/include \
|
2018-06-27 18:00:58 +08:00
|
|
|
-I $(SRC_DIR)/arch/$(ARCH)/up/xtos
|
|
|
|
endif
|
|
|
|
|
|
|
|
export ARCH_INCDIR
|
2018-06-06 00:25:37 +08:00
|
|
|
|
|
|
|
PLATFORM_INCDIR = -I $(SRC_DIR)/platform/$(PLATFORM)/include
|
|
|
|
|
|
|
|
if XCC
|
|
|
|
PLATFORM_INCDIR += \
|
|
|
|
-I $(ROOT_DIR)/arch/include
|
|
|
|
else
|
|
|
|
PLATFORM_INCDIR += \
|
|
|
|
-I $(SRC_DIR)/platform/$(PLATFORM)/include/arch
|
|
|
|
endif
|
|
|
|
|
|
|
|
export PLATFORM_INCDIR
|
|
|
|
|
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
|
|
|
|
|
2018-06-04 19:03:41 +08:00
|
|
|
if !BUILD_RIMAGE
|
2017-06-06 17:41:32 +08:00
|
|
|
all-local:
|
|
|
|
rm -f $(top_srcdir)/src/include/version.h
|
2018-06-04 19:03:41 +08:00
|
|
|
endif
|