Fix Windows compiler warnings
[dyninst.git] / make.components
1 #Don't add tests to Everything
2 Everything = dynutil common symtabAPI instructionAPI parseAPI proccontrol stackwalk dyninstAPI_RT dyninstAPI dynC_API
3
4 #List of tests
5 Everything_tests = testsuite parseThat
6 #List dependencies for components here, followed by the component directory
7 dynutil = 
8 common = dynutil common
9 symtabAPI = dynutil common symtabAPI
10 stackwalk = dynutil common proccontrol stackwalk
11 dyninstAPI = dynutil common symtabAPI instructionAPI parseAPI proccontrol stackwalk dyninstAPI_RT dyninstAPI
12 instructionAPI = dynutil common instructionAPI
13 proccontrol = dynutil common proccontrol
14 depGraphAPI = dynutil common depGraphAPI
15 parseAPI = dynutil common symtabAPI instructionAPI parseAPI
16 dataflowAPI = $(parseAPI)
17 parseThat = $(dyninstAPI) parseThat
18 dynC_API = $(dyninstAPI) dynC_API
19 dyner = $(dyninstAPI) dyner
20 testsuite = testsuite
21 valueAdded = $(dyninstAPI) valueAdded/sharedMem
22
23 #List all components with tests here
24 test_comps = symtabAPI instructionAPI proccontrol dyninstAPI all
25
26 DEFAULT_COMPONENT ?= default
27 ifeq ($(DEFAULT_COMPONENT),default)
28 fullSystem      = $(Everything)
29 BUILD_PARSETHAT = true
30 else
31 ifeq ($(DEFAULT_COMPONENT),SymtabAPI)
32 fullSystem = $(symtabAPI)
33 else
34 ifeq ($(DEFAULT_COMPONENT),StackwalkerAPI)
35 fullSystem = $(stackwalk)
36 else
37 ifeq ($(DEFAULT_COMPONENT),DyninstAPI)
38 fullSystem      = $(dyninstAPI)
39 BUILD_PARSETHAT = true
40 else
41 ifeq ($(DEFAULT_COMPONENT),InstructionAPI)
42 fullSystem = $(instructionAPI)
43 else
44 ifeq ($(DEFAULT_COMPONENT),ProcControlAPI)
45 fullSystem = $(proccontrol)
46 else
47 ifeq ($(DEFAULT_COMPONENT),ParseAPI)
48 fullSystem = $(parseAPI)
49 else
50 ifeq ($(DEFAULT_COMPONENT),DataflowAPI)
51 fullSystem = $(parseAPI)
52 else
53 default:
54         @echo Error: Build system does not have a valid default component: $(DEFAULT_COMPONENT)
55 endif
56 endif
57 endif
58 endif
59 endif
60 endif
61 endif
62 endif
63
64 ifndef DONT_BUILD_NEWTESTSUITE
65 testsuites += testsuite
66 fullSystem += testsuite
67 ifdef BUILD_PARSETHAT
68 testsuites += parseThat
69 fullSystem += parseThat
70 testsuite: parseThat
71 testsuite_install: parseThat_install
72 endif
73 endif
74
75
76 fullSystem_install = $(patsubst %,%_install,$(fullSystem))
77 Everything_install = $(patsubst %,%_install,$(Everything))
78 Everything_tests_install = $(patsubst %,%_install,$(Everything_tests))
79
80 Test_targets = $(patsubst %,%_testsuite,$(test_comps))
81
82 fullSystem_notests = $(filter-out testsuite,$(filter-out parseThat,$(fullSystem)))
83 fullSystem_install_notests = $(filter-out testsuite_install,$(filter-out parseThat_install,$(fullSystem_install)))