Fix Windows compiler warnings
[dyninst.git] / testsuite / x86_64-unknown-linux2.4 / Makefile
1 # Define any symbols needed to invoke configuration changes in make.config
2 TO_CORE =       ../..
3 NO_OPT_FLAG=true
4 NO_IMPLICIT_TEMPLATES = true
5 DEBUG_FLAG = -g 
6
7 CC = gcc
8 CXX = g++
9 PLATFORM_CXXFLAGS = 
10 # Include standard make configuration stuff that applies to everything
11 # in the paradyn tree.
12 include $(TO_CORE)/make.config.local
13 include $(TO_CORE)/make.config 
14
15 # Now make any necessary architecture specific changes to variables:
16
17 #if M_ABI is defined, secondary ABI specific mutatees will be built
18 ifndef SKIP_BUILD_RTLIB_32
19         M_ABI = m32
20         M_ABI_FLAG = -m32 -Di386_unknown_linux2_4 -Dm32_test
21 endif
22
23 GNU_WARNING_FLAGS = -Wall
24 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS) 
25 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
26 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
27
28 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
29 # as we must also test the harder-to-bootstrap general case (mutatee
30 # without the libdl)
31 MUTATEE_USE_LIBDL_SELECTIVELY = true
32 MUTATEE_LIBS =
33 MUTATEE_LDFLAGS_NATIVE += -Wl,-E
34
35 COMMA=,
36 MUTATEE_G77_FFLAGS += -Di386_unknown_linux2_0 -DF77 -fno-second-underscore -g
37 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU)) 
38 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS)  -fno-implicit-templates -c
39 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
40
41 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF)
42 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF)
43
44 # Definitions used for test1 assembly
45 TEST1_AS = gcc -c
46 TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
47 CALL35_1_SRC = call35_1_x86_64_linux.s
48
49 # Definition used for test6 assembly
50 TEST6_AS_GNU = as
51 TEST6_ASFLAGS_GNU =
52 TEST6_AS_SRC = test6LS-x86_64.s
53 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
54
55 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic -Wl,-ldl
56
57 # see discussion in make.module.tmpl for the format of this variable
58 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
59
60 LIBS_LIBTESTSUITE = -ldl
61
62
63 include ../make.module.tmpl
64