1 ############################################################################### 2 # FILE: Makefile.config 3 # 4 # Configure the ASR build. Works in conjunction with Makefile.defs and 5 # system-wide makefiles 6 ############################################################################### 7 8 ASR_HOST_OS = UNIX 9 ASR_OS = UNIX 10 ASR_TARGET_OS = UNIX 11 12 ASR_HOST_CPU = I86 13 14 ifeq ($(TARGET_ARCH),arm) 15 ASR_CPU = ARM 16 ASR_TARGET_CPU = ARM 17 endif 18 ifeq ($(TARGET_ARCH),x86) 19 ASR_CPU = I86 20 ASR_TARGET_CPU = I86 21 endif 22 ifeq ($(TARGET_ARCH),sh) 23 ASR_CPU = SH4 24 ASR_TARGET_CPU = SH4 25 endif 26 ifeq ($(TARGET_ARCH),mips) 27 ASR_CPU = MIPS 28 ASR_TARGET_CPU = MIPS 29 endif 30 ifeq ($(ASR_TARGET_CPU),) 31 $(error Unsupported TARGET_ARCH for ASR) 32 endif 33 34 ASR_COMPILER = GNU 35 36 ifeq ($(TARGET_BUILD_TYPE),debug) 37 ASR_BUILD = DEBUG 38 else 39 ifeq ($(TARGET_BUILD_TYPE),release) 40 ASR_BUILD = SHIP 41 else 42 $(error Unsupported TARGET_BUILD_TYPE for ASR) 43 endif 44 endif 45