Fix Windows compiler warnings
[dyninst.git] / testsuite / x86_64_cnl / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/05/08 20:53:53 cooksey Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6 TO_CORE =       ../..
7 NO_OPT_FLAG=true
8 NO_IMPLICIT_TEMPLATES = true
9 DEBUG_FLAG = -g 
10
11 CC = gcc
12 CXX = g++
13 PLATFORM_CXXFLAGS = 
14 # Include standard make configuration stuff that applies to everything
15 # in the paradyn tree.
16 include $(TO_CORE)/make.config.local
17 include $(TO_CORE)/make.config 
18
19 # Now make any necessary architecture specific changes to variables:
20
21 #if M_ABI is defined, secondary ABI specific mutatees will be built
22 ifndef SKIP_BUILD_RTLIB_32
23         M_ABI = m32
24         M_ABI_FLAG = -m32 -Di386_unknown_linux2_4 -Dm32_test
25 endif
26 #if M_G77 is defined, g77 mutatees will be built
27 #M_G77 = g77
28
29 # there is no "native" or OS-provided compiler for Linux!
30 # we use the Portland Group compilers, as that's what we've currently got
31 # (in future we probably also want to test with the KAI/Intel compilers)
32 #ifdef PGI
33 #NATIVE_CC = pgcc
34 #NATIVE_CXX = pgCC
35 #COMPILERT_NATIVE_CC = $(shell $(NATIVE_CC) -V 2>/dev/null | grep '^pg' | head -1)
36 #COMPILERT_NATIVE_CXX = $(shell $(NATIVE_CXX) -V 2>/dev/null | grep '^pg' | head -1)
37 #endif
38
39 GNU_WARNING_FLAGS = -Wall
40 #MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS) -fpe
41 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS) 
42 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
43 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
44
45 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
46 # as we must also test the harder-to-bootstrap general case (mutatee
47 # without the libdl)
48 MUTATEE_USE_LIBDL_SELECTIVELY = true
49 MUTATEE_LIBS =
50 MUTATEE_LDFLAGS_NATIVE += -Wl,-E
51
52 COMMA=,
53 MUTATEE_G77_FFLAGS += -Di386_unknown_linux2_0 -DF77 -fno-second-underscore -g
54 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU)) 
55 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS)  -fno-implicit-templates -c
56 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
57
58 #MUTATOR_LIBS += -liberty
59 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF)
60 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF)
61
62 # Definitions used for test1 assembly
63 TEST1_AS = gcc -c
64 TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
65 CALL35_1_SRC = call35_1_x86_64_linux.s
66 CALL35_1_SRC_ABI = call35_1_x86_linux.s
67
68 # Definition used for test6 assembly
69 TEST6_AS_GNU = as
70 TEST6_ASFLAGS_GNU =
71 TEST6_AS_SRC = test6LS-x86_64.s
72 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
73 #TEST6_AS_OBJ_BASE_ASM = $(basename $(TEST6_AS_SRC))
74
75 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic -Wl,-ldl
76
77 # see discussion in make.module.tmpl for the format of this variable
78 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
79 MUTATEE_TEST9_EXTRA_LIB_ABI = 9.-L./ 9.-lInstMe_$(M_ABI)
80
81 LIBS_LIBTESTSUITE = -ldl
82
83 TESTDRIVER_LDFLAGS = -liberty
84
85 include ../make.module.tmpl
86