Adding 64-bit FreeBSD build directories.
[dyninst.git] / testsuite / i386-unknown-freebsd7.2 / 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 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 NATIVE_CC = gcc
23 NATIVE_CXX = g++ 
24
25 GNU_WARNING_FLAGS = -W -Wall
26 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS)
27 MUTATEE_CFLAGS_GNU      = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
28 MUTATEE_CXXFLAGS_GNU    = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
29
30 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
31 # as we must also test the harder-to-bootstrap general case (mutatee
32 # without the libdl)
33 MUTATEE_USE_LIBDL_SELECTIVELY = true
34 MUTATEE_LIBS =
35 MUTATEE_LDFLAGS_GNU += -Wl,-export-dynamic
36 MUTATEE_LDFLAGS_NATIVE += -Wl,-export-dynamic
37
38 COMMA=,
39 MUTATEE_G77_FFLAGS += -Di386_unknown_freebsd7_0 -DF77 -fno-second-underscore -g
40 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU)) 
41 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS) -c -I../src
42 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
43
44 MUTATOR_LIBS += -L/usr/local/lib -liberty
45 MUTATEE_CFLAGS_NATIVE   = $(UNIFIED_DEF) -g -I../src
46 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF) -g -I../src
47
48 # Definitions used for test1 assembly
49 # TEST1_AS = gcc -c
50 # TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
51 # CALL35_1_SRC = call35_1_x86_linux.s
52
53 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic
54
55 # see discussion in make.module.tmpl for the format of this variable
56 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
57
58 LIBS_LIBTESTSUITE = -lstdc++
59
60 STRIP_SO = strip -g
61
62 # .PHONY: force_default
63 # force_default: make.vars.gen all
64 # force_default: solo_mutatees # FIXME This is a temporary entry
65
66 TESTDRIVER_LDFLAGS = -liberty
67
68 # FreeBSD doesn't have purify which is defined in make.module.tmpl
69 M_GCC = $(GCC)
70
71 include ../make.module.tmpl