blob: 5af69c47135abe7c1096a1dafe8ba154a5afee5c [file] [log] [blame]
sewardj01262142006-01-04 01:20:28 +00001
2# Baseline flags for all compilations
tom7379c702005-11-11 12:30:12 +00003AM_CFLAGS_BASE = -O -g -Wmissing-prototypes -Winline -Wall -Wshadow \
4 -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
tomfb7bcde2005-11-07 15:24:38 +00005
6AM_CFLAGS_PIC = -fpic -fno-omit-frame-pointer
7
sewardj01262142006-01-04 01:20:28 +00008# Flags for specific targets
9AM_FLAG_M3264_X86_LINUX = @FLAG_M32@
10AM_CPPFLAGS_X86_LINUX = $(add_includes_x86_linux)
11AM_CFLAGS_X86_LINUX = $(WERROR) @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
12 $(AM_CFLAGS_BASE)
13AM_CCASFLAGS_X86_LINUX = $(add_includes_x86_linux) @FLAG_M32@ -g
tomfb7bcde2005-11-07 15:24:38 +000014
sewardj01262142006-01-04 01:20:28 +000015AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@
16AM_CPPFLAGS_AMD64_LINUX = $(add_includes_amd64_linux)
17AM_CFLAGS_AMD64_LINUX = $(WERROR) @FLAG_M64@ -fomit-frame-pointer \
18 @PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE)
19AM_CCASFLAGS_AMD64_LINUX = $(add_includes_amd64_linux) -m64 -g
tomfb7bcde2005-11-07 15:24:38 +000020
sewardj01262142006-01-04 01:20:28 +000021AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@
22AM_CPPFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux)
23AM_CFLAGS_PPC32_LINUX = $(WERROR) @FLAG_M32@ $(AM_CFLAGS_BASE)
24AM_CCASFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux) -Wa,-maltivec @FLAG_M32@ -g
sewardj2c48c7b2005-11-29 13:05:56 +000025
sewardj01262142006-01-04 01:20:28 +000026AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@
27AM_CPPFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux)
28AM_CFLAGS_PPC64_LINUX = $(WERROR) @FLAG_M64@ $(AM_CFLAGS_BASE)
29AM_CCASFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux) -Wa,-maltivec -m64 -g
tomfb7bcde2005-11-07 15:24:38 +000030
sewardj01262142006-01-04 01:20:28 +000031# 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#
35AM_FLAG_M3264_PRI = $(AM_FLAG_M3264_@VG_PLATFORM_PRI@)
36AM_CPPFLAGS_PRI = $(AM_CPPFLAGS_@VG_PLATFORM_PRI@)
37AM_CFLAGS_PRI = $(AM_CFLAGS_@VG_PLATFORM_PRI@)
38AM_CCASFLAGS_PRI = $(AM_CCASFLAGS_@VG_PLATFORM_PRI@)