sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 1 | |
| 2 | # Baseline flags for all compilations |
tom | 7379c70 | 2005-11-11 12:30:12 +0000 | [diff] [blame] | 3 | AM_CFLAGS_BASE = -O -g -Wmissing-prototypes -Winline -Wall -Wshadow \ |
| 4 | -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 5 | |
| 6 | AM_CFLAGS_PIC = -fpic -fno-omit-frame-pointer |
| 7 | |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 8 | # Flags for specific targets |
| 9 | AM_FLAG_M3264_X86_LINUX = @FLAG_M32@ |
| 10 | AM_CPPFLAGS_X86_LINUX = $(add_includes_x86_linux) |
| 11 | AM_CFLAGS_X86_LINUX = $(WERROR) @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \ |
| 12 | $(AM_CFLAGS_BASE) |
| 13 | AM_CCASFLAGS_X86_LINUX = $(add_includes_x86_linux) @FLAG_M32@ -g |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 14 | |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 15 | AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@ |
| 16 | AM_CPPFLAGS_AMD64_LINUX = $(add_includes_amd64_linux) |
| 17 | AM_CFLAGS_AMD64_LINUX = $(WERROR) @FLAG_M64@ -fomit-frame-pointer \ |
| 18 | @PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE) |
| 19 | AM_CCASFLAGS_AMD64_LINUX = $(add_includes_amd64_linux) -m64 -g |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 20 | |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 21 | AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@ |
| 22 | AM_CPPFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux) |
| 23 | AM_CFLAGS_PPC32_LINUX = $(WERROR) @FLAG_M32@ $(AM_CFLAGS_BASE) |
| 24 | AM_CCASFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux) -Wa,-maltivec @FLAG_M32@ -g |
sewardj | 2c48c7b | 2005-11-29 13:05:56 +0000 | [diff] [blame] | 25 | |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 26 | AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@ |
| 27 | AM_CPPFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux) |
| 28 | AM_CFLAGS_PPC64_LINUX = $(WERROR) @FLAG_M64@ $(AM_CFLAGS_BASE) |
| 29 | AM_CCASFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux) -Wa,-maltivec -m64 -g |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 30 | |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame^] | 31 | # Flags for the primary target. These must be used to build the |
| 32 | # regtests and performance tests. In fact, these must be used to |
| 33 | # build anything which is built only once on a dual-arch build. |
| 34 | # |
| 35 | AM_FLAG_M3264_PRI = $(AM_FLAG_M3264_@VG_PLATFORM_PRI@) |
| 36 | AM_CPPFLAGS_PRI = $(AM_CPPFLAGS_@VG_PLATFORM_PRI@) |
| 37 | AM_CFLAGS_PRI = $(AM_CFLAGS_@VG_PLATFORM_PRI@) |
| 38 | AM_CCASFLAGS_PRI = $(AM_CCASFLAGS_@VG_PLATFORM_PRI@) |