2016-09-21 22:57:22 +08:00
|
|
|
SUBDIRS = src
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
export REEF_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/include
|
|
|
|
|
|
|
|
if BUILD_LIB
|
|
|
|
export PLATFORM_INCDIR = \
|
|
|
|
-I $(SRC_DIR)/library/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
2016-09-21 22:57:22 +08:00
|
|
|
export REEF_INCDIR = \
|
|
|
|
-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
|
|
|
|
|
|
|
all-local:
|
|
|
|
rm -f $(top_srcdir)/src/include/version.h
|