forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
71 lines (53 loc) · 1.17 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if BUILD_RIMAGE
SUBDIRS = rimage
else
SUBDIRS = doc src test
endif
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = version.sh
SRC_DIR = $(abs_top_builddir)/src
if BUILD_HOST
export ARCH_INCDIR = \
-I $(SRC_DIR)/arch/$(ARCH)/include
export SOF_INCDIR = \
-I $(SRC_DIR)/include
if BUILD_LIB
export PLATFORM_INCDIR = \
-I $(SRC_DIR)/library/include
endif
else
export SOF_INCDIR = \
-I $(SRC_DIR)/include \
-I $(ROOT_DIR)/include
ARCH_INCDIR = -I $(SRC_DIR)/arch/$(ARCH)/include
if BUILD_XTENSA_SMP
ARCH_INCDIR += \
-I $(SRC_DIR)/arch/$(ARCH)/smp/include \
-I $(SRC_DIR)/arch/$(ARCH)/smp/xtos
else
ARCH_INCDIR += \
-I $(SRC_DIR)/arch/$(ARCH)/up/include \
-I $(SRC_DIR)/arch/$(ARCH)/up/xtos
endif
export ARCH_INCDIR
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
endif
dist-hook:
./version.sh $(top_srcdir)
cat .version > $(distdir)/.tarball-version
cat .version > $(distdir)/.version
doc-dummy:
doc: doc-dummy
$(MAKE) -C doc doc
if !BUILD_RIMAGE
all-local:
rm -f $(top_srcdir)/src/include/version.h
endif