| 1 |
. |
| 2 |
|
| 3 |
INSTALL_TARGETS = |
| 4 |
|
| 5 |
ifeq ($(strip $(CPULIST)),) |
| 6 |
INSTALL_TARGETS += install-aarch64 install-x86_64 |
| 7 |
else |
| 8 |
|
| 9 |
ifeq ($(filter aarch64,$(CPULIST)), aarch64) |
| 10 |
INSTALL_TARGETS += install-aarch64 |
| 11 |
endif |
| 12 |
|
| 13 |
ifeq ($(filter x86_64,$(CPULIST)), x86_64) |
| 14 |
INSTALL_TARGETS += install-x86_64 |
| 15 |
endif |
| 16 |
endif |
| 17 |
|
| 18 |
linux_CLEANFILES_LIST := $(filter-out linux-x86_64-o/GNUmakefile, $(wildcard linux-x86_64-o/*)) |
| 19 |
aarch64_CLEANFILES_LIST := $(filter-out nto-aarch64-le/GNUmakefile, $(wildcard nto-aarch64-le/*)) |
| 20 |
x86_64_CLEANFILES_LIST := $(filter-out nto-x86_64-o/GNUmakefile, $(wildcard nto-x86_64-o/*)) |
| 21 |
|
| 22 |
all: install |
| 23 |
|
| 24 |
install: install-linux $(INSTALL_TARGETS) |
| 25 |
|
| 26 |
hinstall: |
| 27 |
|
| 28 |
clean: clean-linux clean-aarch64 clean-x86_64 |
| 29 |
|
| 30 |
clean-linux: |
| 31 |
ifneq ($(strip $(linux_CLEANFILES_LIST)),) |
| 32 |
rm -rf $(linux_CLEANFILES_LIST) |
| 33 |
endif |
| 34 |
|
| 35 |
clean-aarch64: |
| 36 |
ifneq ($(strip $(aarch64_CLEANFILES_LIST)),) |
| 37 |
rm -rf $(aarch64_CLEANFILES_LIST) |
| 38 |
endif |
| 39 |
|
| 40 |
clean-x86_64: |
| 41 |
ifneq ($(strip $(x86_64_CLEANFILES_LIST)),) |
| 42 |
rm -rf $(x86_64_CLEANFILES_LIST) |
| 43 |
endif |
| 44 |
|
| 45 |
install-linux: |
| 46 |
$(MAKE) -C linux-x86_64-o -f GNUmakefile |
| 47 |
|
| 48 |
install-aarch64: install-linux |
| 49 |
$(MAKE) -C nto-aarch64-le -f GNUmakefile install |
| 50 |
|
| 51 |
install-x86_64: install-linux |
| 52 |
$(MAKE) -C nto-x86_64-o -f GNUmakefile install |
| 53 |
|
| 54 |
|