2017-05-21 23:48:42 +08:00
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
2017-05-22 02:23:43 +08:00
|
|
|
ifeq ($(AM_HOME),)
|
|
|
|
$(error Variable AM_HOME must be defined.)
|
|
|
|
endif
|
2017-05-21 22:10:24 +08:00
|
|
|
ifndef ARCH
|
2017-05-22 02:23:43 +08:00
|
|
|
$(error Variable ARCH must be defined. Examples: native, x86-qemu, mips32-npc)
|
2017-05-21 23:48:42 +08:00
|
|
|
endif
|
2017-06-01 21:29:53 +08:00
|
|
|
legal_path = $(filter mips32-minimal mips32-npc native x86-qemu, $(ARCH))
|
|
|
|
ifeq ($(legal_path),)
|
|
|
|
$(error Variable ARCH is not right. All: mips32-minimal, mips32-npc, native, x86-qemu)
|
|
|
|
endif
|
2017-05-21 22:10:24 +08:00
|
|
|
endif
|