Rename newtestsuite to testsuite
[dyninst.git] / testsuite / rs6000-ibm-aix5.1 / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/05/08 20:53:35 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 INSTANTIATE_TEMPLATES = true
9
10 # Include standard make configuration stuff that applies to everything
11 # in the paradyn tree.
12
13 include $(TO_CORE)/make.config 
14
15 # Now make any necessary architecture specific changes to variables:
16
17 # Uncomment M_G77 (at yr own risk) to do g77 build
18 #M_G77 = g77
19
20 #NATIVE_FC = xlf90
21 NATIVE_FORTRAN_CC = gcc
22 #NATIVE_CC = xlc
23 #NATIVE_CXX = xlC
24 #NATIVE_CXX_OMP = xlC_r
25 CC = gcc
26
27
28 COMMA=,
29
30 CXXFLAGS += -g -DAIX5 -Wa,-many
31 CFLAGS += -g -DAIX5 -Wa,-many
32
33 MUTATEE_NATIVE_FFLAGS += -U -WF,-Drs6000_ibm_aix4_1 -qnolm -qfixed -w -g -WF,-DAIX5,-DXLF
34 MUTATEE_NATIVE_FC_LDFLAGS += -g -bgcbypass:3 -ldl `$(GCC) -print-libgcc-file-name`
35 MUTATEE_G77_FFLAGS += -Drs6000_ibm_aix4_1 -DAIX5 -DF77 -fno-second-underscore -g
36 MUTATEE_G77_CFLAGS += $(filter-out -Wl$(COMMA)-export-dynamic, $(MUTATEE_CFLAGS_GNU))
37 MUTATEE_G77_CFLAGS += -DF77 -DFortran -g $(MUTATEE_FFLAGS) -c
38 TEST1_FORTRAN_CSOURCE = test1.mutateeFortC.c
39
40 TEST6_AS_GNU = as
41 TEST6_ASFLAGS_GNU = 
42 TEST6_AS_SRC = test6LS-power.s
43 TEST6_AS_OBJ_BASE = $(basename $(TEST6_AS_SRC))
44
45 c1 = $(shell lslpp -l 'vacpp.cmp.C' | grep COMMITTED | head -1)
46 c2 = $(shell lslpp -l 'vacpp.cmp.core' | grep COMMITTED | head -1)
47 c3 = $(shell lslpp -l 'xlC.C' | grep COMMITTED | head -1)
48 versionArray = $(word 2,$(c1))
49 versionArray += $(word 2,$(c2))
50 versionArray += $(word 2,$(c3))
51 versionArray += unknown
52 COMPILERT_NATIVE_CC = $(NATIVE_CC) version $(firstword $(versionArray))
53 COMPILERT_NATIVE_CXX = $(COMPILERT_NATIVE_CC)
54
55 MUTATEE_CFLAGS_NATIVE = $(UNIFIED_DEF) 
56 MUTATEE_CFLAGS_NATIVE += -D__XLC__ -qnoinline -qnooptimize 
57 MUTATEE_CXXFLAGS_NATIVE = $(MUTATEE_CFLAGS_NATIVE) -+
58 MUTATEE_CFLAGS_NATIVE += -qcpluscmt
59 MUTATEE_NATIVE_FC_CFLAGS = $(MUTATEE_CFLAGS_NATIVE) -DXLF
60 MUTATEE_NATIVE_CXX_CFLAGS = -qsmp=omp 
61
62 MUTATOR_CXXFLAGS = $(UNIFIED_DEF) 
63
64 MUTATEE_CFLAGS_GNU = $(UNIFIED_DEF)
65 MUTATEE_LDFLAGS_GNU += -Wl,-bexpall -Wl,-bnoobjreorder -Wl,-bdynamic -Wl,-brtl
66 MUTATEE_CXXFLAGS_GNU = $(MUTATEE_CFLAGS_GNU)
67
68 MUTATEE_LDFLAGS_NATIVE += -bnoobjreorder -bgcbypass:3 -g -DAIX5 -Drs6000_ibm_aix4_1 -D__XLC__
69 MUTATEE_NATIVE_CXX_OMP_LDFLAGS = -ldl -lpthread -lxlsmp
70
71 CFLAGS_TESTLIBS = -I../src -I$(TO_CORE)/dyninstAPI_RT/h
72 #TESTLIB_FLAGS = -bM:SRC -bexpall -bnoentry -berok -bnoobjreorder
73 TESTLIB_FLAGS = -shared -Wl,-bexpall -L$(TO_CORE)/../$(PLATFORM)/lib -pthread -ldyninstAPI_RT
74 #LIBTEST12_FLAGS = $(TESTLIB_FLAGS) -lc -L$(TO_CORE)/dyninstAPI_RT/$(PLATFORM) -ldyninstAPI_RT -lpthread
75 LIBTEST12_FLAGS = $(TESTLIB_FLAGS) -pthread -ldyninstAPI_RT
76 MAKE_SHARED_LIB = gcc
77
78 TESTSUITE_FLAGS += -Wl,-bexpall   
79
80 LIBS_LIBTESTSUITE = -ldl -lpthread
81 USE_LIBTESTSUITE_EXT_A = true
82 STRIP_SO = strip
83
84 include ../make.module.tmpl
85