Minor Windows fixes
[dyninst.git] / testsuite / ppc32_bgp / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/05/08 20:53:29 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 SUITE_NAME = testsuite
11
12 # Include standard make configuration stuff that applies to everything
13 # in the paradyn tree.
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 = g77
20
21 #GNU_WARNING_FLAGS = -W -Wall
22 TESTDRIVER_LDFLAGS = -liberty
23 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS)
24 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
25 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
26
27 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
28 # as we must also test the harder-to-bootstrap general case (mutatee
29 # without the libdl)
30 MUTATEE_USE_LIBDL_SELECTIVELY = true
31 MUTATEE_LIBS =
32
33 MUTATEE_LDFLAGS_GNU    += -ldl $(LDFLAGS)
34 MUTATEE_LDFLAGS_NATIVE += -ldl $(LDFLAGS)
35
36 COMMA=,
37 MUTATEE_G77_FFLAGS += -Dppc64_linux -DF77 -fno-second-underscore -g
38 MUTATEE_G77_FFLAGS += $(F77FLAGS)
39 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU)) 
40 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS) -c
41 MUTATEE_G77_CFLAGS += $(CFLAGS)
42 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
43
44 MUTATEE_G77_LDFLAGS += $(LDFLAGS)
45
46 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF) -g
47 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF) -g
48
49 # Definitions used for test1 assembly
50 TEST1_AS = bgxlc -c
51 TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
52 #CALL35_1_SRC = call35_1_x86_linux.s
53
54 # Definition used for test6 assembly
55 NASM = $(GCC)
56 TEST6_AS_GNU = $(NASM)
57 #TEST6_ASFLAGS_GNU = -f elf -dPLATFORM=$(PLATFORM)
58 TEST6_ASFLAGS_GNU = $(CFLAGS) -c
59 TEST6_AS_SRC = test6LS-powerpc.S
60 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
61
62 TESTLIB_FLAGS = -qpic -qmkshrobj -g -Wl,-export-dynamic -Wl,-ldl
63 TESTLIB_FLAGS += $(LDFLAGS)
64 TESTSUITE_FLAGS += $(LDFLAGS)
65 MUTATOR_LDFLAGS += $(LDFLAGS)
66
67 # see discussion in make.module.tmpl for the format of this variable
68 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
69
70 LIBS_LIBTESTSUITE = -ldl
71
72 STRIP_SO = strip -g
73
74 TESTLIB_CC = bgxlc
75
76 include ../make.module.tmpl
77
78 # Some ppc32_linux distributions require _XOPEN_SOURCE to be defined as 600
79 # to get the functions/types we require
80 CFLAGS   += -D_XOPEN_SOURCE=600
81 CXXFLAGS += -D_XOPEN_SOURCE=600
82 F77FLAGS += -D_XOPEN_SOURCE=600