Fix Windows compiler warnings
[dyninst.git] / testsuite / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.4 2008/05/30 20:29:28 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 # Include standard make configuration stuff that applies to everything
12 # in the paradyn tree.
13 include $(TO_CORE)/make.config.local
14 include $(TO_CORE)/make.config 
15
16 # Now make any necessary architecture specific changes to variables:
17
18 #if M_G77 is defined, g77 mutatees will be built
19 M_G77 = gfortran
20
21 NATIVE_CC = gcc
22 NATIVE_CXX = g++ 
23 # there is no "native" or OS-provided compiler for Linux!
24 # we use the Portland Group compilers, as that's what we've currently got
25 # (in future we probably also want to test with the KAI/Intel compilers)
26 ifdef PGI
27 NATIVE_CC = pgcc
28 NATIVE_CXX = pgCC
29 COMPILERT_NATIVE_CC = $(shell $(NATIVE_CC) -V 2>/dev/null | grep '^pg' | head -1)
30 COMPILERT_NATIVE_CXX = $(shell $(NATIVE_CXX) -V 2>/dev/null | grep '^pg' | head -1)
31 MUTATEE_LDFLAGS_NATIVE += -Wl,-E
32 endif
33
34 GNU_WARNING_FLAGS = -W -Wall
35 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS)
36 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
37 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
38
39 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
40 # as we must also test the harder-to-bootstrap general case (mutatee
41 # without the libdl)
42 MUTATEE_USE_LIBDL_SELECTIVELY = true
43 MUTATEE_LIBS =
44
45 COMMA=,
46 MUTATEE_G77_FFLAGS += -Di386_unknown_linux2_0 -DF77 -fno-second-underscore -ffixed-line-length-none -fno-range-check -g
47 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU))
48 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS) -c -I../src
49 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
50
51 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF) -g -I../src
52 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF) -g -I../src
53
54 # Definitions used for test1 assembly
55 # TEST1_AS = gcc -c
56 # TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
57 # CALL35_1_SRC = call35_1_x86_linux.s
58
59 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic -Wl,-ldl
60
61 # see discussion in make.module.tmpl for the format of this variable
62 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
63
64 LIBS_LIBTESTSUITE = -ldl -lstdc++
65
66 STRIP_SO = strip -g
67
68 # .PHONY: force_default
69 # force_default: make.vars.gen all
70 # force_default: solo_mutatees # FIXME This is a temporary entry
71
72 include ../make.module.tmpl