forked from solettaproject/soletta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (43 loc) · 1.47 KB
/
Makefile
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
top_srcdir = ./
MAKEFLAGS += -r --no-print-directory
# kconfig settings
KCONFIG_CONFIG ?= $(top_srcdir).config
KCONFIG_INCLUDE := $(top_srcdir)include/
KCONFIG_AUTOHEADER := $(KCONFIG_INCLUDE)generated/sol_config.h
HAVE_KCONFIG_CONFIG := $(if $(wildcard $(KCONFIG_CONFIG)),y,)
export KCONFIG_AUTOHEADER
-include $(KCONFIG_CONFIG)
# dependency-resolver generated, deps resolution
ifneq ($(HAVE_KCONFIG_CONFIG),)
-include Makefile.gen
endif
# basic variable definitions
include $(top_srcdir)tools/build/Makefile.vars
# soletta rules themselves
include $(top_srcdir)tools/build/Makefile.rules
# kconfig interface rules
include $(top_srcdir)tools/build/Makefile.kconfig
ifneq (,$(NOT_FOUND))
warning:
$(Q)echo -e "The following (required) dependencies were not met:\n"
$(Q)echo -e "$(NOT_FOUND)"
$(Q)echo -e "If you've just installed it, run: make reconf"
$(Q)echo -e "For more information/options, run: make help"
$(Q)false
$(warning-targets)
else
ifeq ($(HAVE_KCONFIG_CONFIG),)
warning: $(KCONFIG_GEN)
$(Q)echo "You need a config file first. Please run a config target, e.g.: make menuconfig"
$(Q)echo "For a quick default config run: make alldefconfig"
$(Q)echo "For more information/options run: make help"
$(Q)false
$(warning-targets)
else
include $(top_srcdir)tools/build/Makefile.targets
all: $(PRE_GEN) $(SOL_LIB_SO) $(SOL_LIB_AR) $(bins-out) $(modules-out)
endif # HAVE_KCONFIG_CONFIG
endif # NOT_FOUND
$(KCONFIG_CONFIG): $(KCONFIG_GEN)
.DEFAULT_GOAL = all
.PHONY = $(PHONY) all