forked from projectceladon/efiwrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 694 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 694 Bytes
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
SRC_DIR := .
include $(SRC_DIR)/Make.defaults
SUB_DIRS := libefiwrapper host
define submake
$(foreach d,$(SUB_DIRS),$(MAKE) -C $(d) $(1);)
endef
efiwrapper_host-eng: export EXTRA_CFLAGS := -DHOST
efiwrapper_host-userdebug: export EXTRA_CFLAGS := -DHOST -DUSERDEBUG
efiwrapper_host-user: export EXTRA_CFLAGS := -DHOST -DUSERDEBUG -DUSER
efiwrapper_host-eng \
efiwrapper_host-userdebug \
efiwrapper_host-user:
$(eval export TARGET_BUILD_VARIANT := $(subst efiwrapper_host-,,$@))
@$(MAKE) efiwrapper_host
efiwrapper_host: $(EW_LIB)
@$(MAKE) -C host
$(EW_LIB):
@$(MAKE) -C libefiwrapper
.PHONY: clean
clean:
@$(call submake,clean)
mrproper: clean
@$(call submake,mrproper)