2 # $Id: Makefile,v 1.1 2008/05/08 20:53:53 cooksey Exp $
5 # Define any symbols needed to invoke configuration changes in make.config
8 NO_IMPLICIT_TEMPLATES = true
9 USES_DWARF_DEBUG = true
16 # Include standard make configuration stuff that applies to everything
17 # in the paradyn tree.
18 include $(TO_CORE)/make.config.local
19 include $(TO_CORE)/make.config
21 # Now make any necessary architecture specific changes to variables:
23 #if M_ABI is defined, secondary ABI specific mutatees will be built
24 ifndef SKIP_BUILD_RTLIB_32
26 M_ABI_FLAG = -m32 -Di386_unknown_linux2_4 -Dm32_test
28 #if M_G77 is defined, g77 mutatees will be built
31 # there is no "native" or OS-provided compiler for Linux!
32 # we use the Portland Group compilers, as that's what we've currently got
33 # (in future we probably also want to test with the KAI/Intel compilers)
37 #COMPILERT_NATIVE_CC = $(shell $(NATIVE_CC) -V 2>/dev/null | grep '^pg' | head -1)
38 #COMPILERT_NATIVE_CXX = $(shell $(NATIVE_CXX) -V 2>/dev/null | grep '^pg' | head -1)
41 GNU_WARNING_FLAGS = -Wall
42 #MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS) -fpe
43 MUTATOR_CXXFLAGS += $(GNU_WARNING_FLAGS)
44 MUTATEE_CFLAGS_GNU = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
45 MUTATEE_CXXFLAGS_GNU = $(UNIFIED_DEF) $(GNU_WARNING_FLAGS)
47 # Tests 1, 2, and 12 use libdl. It is only added to their link lines
48 # as we must also test the harder-to-bootstrap general case (mutatee
50 MUTATEE_USE_LIBDL_SELECTIVELY = true
52 MUTATEE_LDFLAGS_GNU += -Wl,-export-dynamic
53 MUTATEE_LDFLAGS_NATIVE += -Wl,-E
56 MUTATEE_G77_FFLAGS += -Di386_unknown_linux2_0 -DF77 -fno-second-underscore -g
57 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU))
58 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS) -fno-implicit-templates -c
59 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
61 MUTATEE_CFLAGS_NATIVE = $(UNIFIED_DEF)
62 MUTATEE_CXXFLAGS_NATIVE = $(UNIFIED_DEF)
64 # Definitions used for test1 assembly
66 TEST1_ASFLAGS = $(MUTATEE_CFLAGS_GNU)
67 CALL35_1_SRC = call35_1_x86_64_linux.s
68 CALL35_1_SRC_ABI = call35_1_x86_linux.s
70 # Definition used for test6 assembly
73 TEST6_AS_SRC = test6LS-x86_64.s
74 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
75 #TEST6_AS_OBJ_BASE_ASM = $(basename $(TEST6_AS_SRC))
77 TESTLIB_FLAGS = -fpic -shared -g -Wl,-export-dynamic -Wl,-ldl
79 # see discussion in make.module.tmpl for the format of this variable
80 MUTATEE_TEST9_EXTRA_LIB = 9.-L./ 9.-lInstMe
81 MUTATEE_TEST9_EXTRA_LIB_ABI = 9.-L./ 9.-lInstMe_$(M_ABI)
83 LIBS_LIBTESTSUITE = -ldl
86 include ../make.module.tmpl