fix some typos and change some include files
[dyninst.git] / parseAPI / make.module.tmpl
1
2 # Common makefile template for the dyninstAPI library.  This file is not
3 # intended to be a useful Makefile in isolation; instead, it should be
4 # included from within an architecture-specific Makefile.
5 #
6 # $Id: make.module.tmpl,v 1.4 2008/09/15 17:38:17 jaw Exp $
7 #
8
9 SUITE_NAME      = Dyninst
10 RELEASE_MAJOR   = 7
11 RELEASE_MINOR = 0
12 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
13
14 CFLAGS               += $(USEFULWARNINGS) -I$(TO_CORE)/../include
15 CXXFLAGS             += $(USEFULWARNINGS) -I$(TO_CORE)/../include
16
17 LDFLAGS += -L../../common/$(PLATFORM) -L../../symtabAPI/$(PLATFORM) -lcommon -lsymtabAPI
18
19 LDFLAGS     += $(LIBDIR)
20 ifndef USES_NATIVE_CC
21 LD              = $(GXX)
22 LDFLAGS         += -shared $(G_PTHREAD_LD)
23 CFLAGS          += -fPIC
24 CXXFLAGS        += -fPIC $(G_PTHREAD)
25 else
26 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
27 LDFLAGS         += -G
28 endif #sparc
29 endif #USES_NATIVE
30
31 ifneq ($(findstring cap_instruction_api,$(CAP_DEF)),)
32     LDFLAGS += -L../../instructionAPI/$(PLATFORM) -linstructionAPI
33 endif
34
35 TO_INC   = ../h
36
37 PUBLIC_H = \
38     CFGFactory.h\
39     CFGModifier.h \
40     CFG.h\
41     CodeObject.h\
42     CodeSource.h\
43     Location.h\
44     InstructionAdapter.h\
45     InstructionSource.h\
46     ParseCallback.h\
47     ParseContainers.h
48
49 SRCS += ../src/ParserDetails.C \
50         ../src/Parser.C \
51         ../src/CFGFactory.C \
52         ../src/Function.C \
53         ../src/Block.C \
54                 ../src/CodeObject.C \
55                 ../src/debug_parse.C \
56         ../src/SymtabCodeSource.C \
57         ../src/ParseData.C\
58         ../src/InstructionAdapter.C\
59         ../src/Parser-speculative.C\
60         ../src/ParseCallback.C \
61         ../src/IA_x86Details.C \
62         ../src/IA_powerDetails.C \
63         ../src/IA_platformDetailsFactory.C \
64         ../src/CFGModifier.C
65         
66 ifneq ($(findstring cap_instruction_api,$(CAP_DEF)),)
67 SRCS += ../../dataflowAPI/src/ABI.C \
68         ../../dataflowAPI/src/Absloc.C \
69         ../../dataflowAPI/src/AbslocInterface.C \
70         ../../dataflowAPI/src/convertOpcodes.C \
71         ../../dataflowAPI/src/debug_dataflow.C \
72         ../../dataflowAPI/src/ExpressionConversionVisitor.C \
73         ../../dataflowAPI/src/InstructionCache.C \
74         ../../dataflowAPI/src/liveness.C \
75         ../../dataflowAPI/src/RegisterMap.C \
76         ../../dataflowAPI/src/RoseImpl.C \
77         ../../dataflowAPI/src/RoseInsnFactory.C \
78         ../../dataflowAPI/src/slicing.C \
79         ../../dataflowAPI/src/stackanalysis.C \
80         ../../dataflowAPI/src/SymbolicExpansion.C \
81         ../../dataflowAPI/src/SymEval.C \
82         ../../dataflowAPI/src/SymEvalPolicy.C \
83         ../../dataflowAPI/src/templates.C \
84         ../../dataflowAPI/src/Visitors.C \
85         ../src/StackTamperVisitor.C
86
87 VPATH += ../../dataflowAPI/src
88 VPATH += ../../dataflowAPI/h
89
90 PUBLIC_H += Absloc.h \
91          AbslocInterface.h \
92          slicing.h \
93          SymEval.h \
94          stackanalysis.h \
95          liveness.h \
96          ABI.h \
97          bitArray.h \
98          InstructionCache.h \
99         
100 endif
101
102 IFLAGS       += -I../$(PLATFORM) -I../src -I../../dataflowAPI/src -I../../dataflowAPI/h -I../h -I../../dynutil/h -I../../symtabAPI/h -I../../common/h -I../../instructionAPI/h
103
104
105 # All that, and we finally get a target...
106 all: $(TARGET) $(EXTRA_LIBS)
107