1 # Including Makefile shall have set ARCH to one of:
3 # INTEL, X86_64, PPC, IA64, MIPS, SPARC, ALPHA
6 ifeq ($(SYS_NAME),i386_linux24)
10 ifeq ($(SYS_NAME),i386_linux26)
14 ifeq ($(SYS_NAME),amd64_linux24)
18 ifeq ($(SYS_NAME),amd64_linux26)
22 ifeq ($(SYS_NAME),sunx86_510)
23 ARCH := SOLARIS_X86_686
26 #ifeq ($(SYS_NAME),sunx86_510)
27 #ARCH := SOLARIS_X86_AMD64
31 # TODO: more platforms, or find alternate mechanism. In particular,
32 # sparc handling will be inadequate
38 MCAS_CFLAGS := -g -O0 -DINTEL -fomit-frame-pointer -march=i686
44 MCAS_CFLAGS := -g -O0 -DX86_64 -fomit-frame-pointer -march=athlon64
48 ifeq ($(ARCH),SOLARIS_X86_686)
49 MCAS_CFLAGS := -KPIC -DSOLARIS_X86_686 -xarch=pentium_pro
52 ifeq ($(ARCH),SOLARIS_X86_AMD64)
53 MCAS_CFLAGS := -KPIC -DSOLARIS_X86_AMD64 -xarch=amd64
58 MCAS_CFLAGS := -O3 -DPPC -q64 -w
59 LDFLAGS := -lpthread -q64
65 MCAS_CFLAGS := -O3 -DIA64 -fomit-frame-pointer
71 MCAS_CFLAGS := -O3 -DMIPS -fomit-frame-pointer
76 CC := /opt/SUNWspro/bin/cc
77 MCAS_CFLAGS := -xO3 -DSPARC sparc_mcas.il -xarch=v9b
78 LDFLAGS := -DSPARC sparc_mcas.il -xarch=v9b -lthread -lrt
83 MCAS_CFLAGS := -accept vaxc_keywords -O3 -DALPHA
84 MCAS_CFLAGS += -fomit-frame-pointer -DWEAK_MEM_ORDER
88 MCAS_CFLAGS += $(DEBUGGING)