Introduce rs6000-ibm-aix64 platform.
[dyninst.git] / testsuite / nmake.module.tmpl
1
2 # Common makefile template for dyninst Tests.  This file is not intended to
3 # be a useful Makefile in isolation; instead, it should be included
4 # from within an architecture-specific Makefile.
5 #
6 # $Id: nmake.module.tmpl,v 1.7 2006/05/26 21:10:43 jodom Exp $
7 #
8
9 SUITE_NAME      = Dyninst
10 RELEASE_NUM     = 4.2
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
12
13 DEST            = $(TO_CORE)\$(PROGRAM_DEST)\testprogs_new
14
15 CXXFLAGS     = $(CXXFLAGS) -I$(TO_CORE)/dyninstAPI/h /D_DEBUG /Zi
16 CXXFLAGS_NORM = $(CXXFLAGS)
17 CXXFLAGS     = $(CXXFLAGS) -DTESTLIB_DLL_BUILD
18 CFLAGS       = $(CFLAGS) -I$(TO_CORE)/h
19
20 LIBS            = $(TO_CORE)\$(LIBRARY_DEST)\libdyninstAPI.lib
21
22 SYSLIBS         = 
23
24 LIBTESTSUITE = libtestSuite.dll
25 SRCS_LIBTESTSUITE = ../src/test_lib.C \
26                     ../src/test_lib_dllExecution.C \
27                     ../src/test_lib_mutateeStart.C \
28                     ../src/Process_data.C \
29                     ../src/ParameterDict.C \
30                     ../src/TestData.C \
31                     ../src/Callbacks.C 
32
33 OBJS_LIBTESTSUITE = $(SRCS_LIBTESTSUITE:.C=.obj)
34 OBJS_LIBTESTSUITE = $(OBJS_LIBTESTSUITE:../src/=)
35
36 all: $(LIBTESTSUITE) test_driver.exe runTests.exe $(TEST_LIBS) $(MUTATEES) libtestA.dll libtestB.dll
37
38
39 UNCOMMON_INSTALL=true
40
41 install: all
42         -$(MKDIR) $(DEST)
43         for %X IN ( $(LIBTESTSUITE) test_driver.exe runTests.exe $(TEST_LIBS) $(MUTATEES) libtestA.dll libtestB.dll ) DO $(CP) "%X" $(DEST)
44 LDFLAGS = /debug -LIBPATH:$(TO_CORE)/../$(PLATFORM)/lib 
45 LIBS    = libdyninstAPI.lib
46
47 test_callee.dll: test_callee.obj
48         $(LINK) $(LDFLAGS) -DLL -out:$@ test_callee.obj libtestSuite.lib
49
50 test_caller.exe: test_caller.obj
51         $(LINK) $(LDFLAGS) test_caller.obj libtestSuite.lib test_callee.lib
52
53 test_caller.obj: ../src/test_caller.C
54         $(CXX) $(CXXFLAGS_NORM) -c $**
55
56 $(LIBTESTSUITE): $(OBJS_LIBTESTSUITE)
57         $(LINK) $(LDFLAGS)  -DLL -out:$@ $(OBJS_LIBTESTSUITE) $(LIBS)
58
59 $(OBJS_LIBTESTSUITE): $(SRCS_LIBTESTSUITE)
60
61 test_driver.exe:  test_driver.obj test_lib.obj
62         $(LINK) $(LDFLAGS) test_driver.obj libdyninstAPI.lib libtestSuite.lib
63
64 test_driver.obj: ../src/test_driver.C
65         $(CXX) $(CXXFLAGS_NORM) -Dnative_cc=_VC.exe -Dnative_cxx=_VC++.exe -c $**
66
67 #runTests.exe:  runTests.obj test_lib_templates-nt.obj runTests-utils-nt.obj ParameterDict.obj
68 #       $(LINK) runTests.obj test_lib_templates-nt.obj runTests-utils-nt.obj ParameterDict.obj
69
70 runTests.exe:  ../src/runTests.C ../src/runTests-utils-nt.C
71         $(CXX) $(CXXFLAGS_NORM) ../src/runTests.C ../src/runTests-utils-nt.C
72