Turned on -export-dynamic linker and -g compiler options for Portland
[dyninst.git] / testsuite / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.3 2006/03/03 19:21:56 nater 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 USES_DWARF_DEBUG = true
10 USES_LIBELF = true
11 DEBUG_FLAG = -g
12
13 # Include standard make configuration stuff that applies to everything
14 # in the paradyn tree.
15 include $(TO_CORE)/make.config 
16
17 # Now make any necessary architecture specific changes to variables:
18
19 #if M_G77 is defined, g77 mutatees will be built
20 M_G77 = g77
21
22 # there is no "native" or OS-provided compiler for Linux!
23 # we use the Portland Group compilers, as that's what we've currently got
24 # (in future we probably also want to test with the KAI/Intel compilers)
25 ifdef PGI
26 NATIVE_CC = pgcc
27 NATIVE_CXX = pgCC
28 COMPILERT_NATIVE_CC = $(shell $(NATIVE_CC) -V 2>/dev/null | grep '^pg' | head -1)
29 COMPILERT_NATIVE_CXX = $(shell $(NATIVE_CXX) -V 2>/dev/null | grep '^pg' | head -1)
30 endif
31
32 GNU_WARNING_FLAGS = -W -Wall
33 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS)
34 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
35 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
36 MUTATEE_LIBS = -Wl,-ldl
37 MUTATEE_LDFLAGS_GNU += -Wl,-export-dynamic
38 MUTATEE_LDFLAGS_NATIVE += -Wl,-export-dynamic
39
40 COMMA=,
41 MUTATEE_G77_FFLAGS += -Di386_unknown_linux2_0 -DF77 -fno-second-underscore -g
42 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU)) 
43 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS)  -fno-implicit-templates -c
44 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
45
46 MUTATOR_LIBS += -liberty
47 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF) -g 
48 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF) -g
49
50 # Definitions used for test1 assembly
51 TEST1_AS = gcc -c
52 TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
53 CALL35_1_SRC = call35_1_x86_linux.s
54
55 # Definition used for test6 assembly
56 NASM ?= nasm
57 TEST6_AS_GNU = $(NASM)
58 TEST6_ASFLAGS_GNU = -f elf -dPLATFORM=$(PLATFORM)
59 TEST6_AS_SRC = test6LS-x86.asm
60 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
61
62 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic -Wl,-ldl
63
64 # see discussion in make.module.tmpl for the format of this variable
65 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
66
67 LIBS_LIBTESTSUITE = -ldl
68
69 STRIP_SO = strip -g
70
71 include ../make.module.tmpl
72