summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CosTrading.mpc
blob: 03c9e5d9fa3fc7fee89d07548bef5b3f5e3ac6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// -*- MPC -*-
project(CosTrading_IDL) : orbsvcslib, orbsvcs_output, install, tao_versioning_idl_defaults {
  custom_only = 1
  idlflags   += -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h

  IDL_Files {
    CosTrading.idl
    CosTradingRepos.idl
    CosTradingDynamic.idl
  }
}


project(CosTrading) : orbsvcslib, orbsvcs_output, install {
  sharedname   = TAO_CosTrading
  dynamicflags += TAO_TRADING_BUILD_DLL
  tagchecks   += Trader
  after       += CosTrading_IDL

  IDL_Files {
  }

  Source_Files {
    CosTradingC.cpp
    CosTradingReposC.cpp
    CosTradingDynamicC.cpp
  }

  Header_Files {
    CosTradingC.h
    CosTradingReposC.h
    CosTradingDynamicC.h
    Trader/trading_export.h
  }

  Inline_Files {
    CosTradingC.inl
    CosTradingReposC.inl
    CosTradingDynamicC.inl
  }

  Template_Files {
  }

  // explicit Resource_Files to avoid including _Skel & _Serv rc files.
  Resource_Files {
    CosTrading.rc
  }

  Pkgconfig_Files {
    TAO_CosTrading.pc.in
  }
}


project(CosTrading_Skel) : orbsvcslib, orbsvcs_output, install, trading, portableserver {
  sharedname   = TAO_CosTrading_Skel
  dynamicflags += TAO_TRADING_SKEL_BUILD_DLL
  tagchecks   += Trader

  IDL_Files {
  }

  Source_Files {
    CosTradingS.cpp
    CosTradingReposS.cpp
    CosTradingDynamicS.cpp
  }

  Header_Files {
    CosTradingS.h
    CosTradingReposS.h
    CosTradingDynamicS.h
    Trader/trading_skel_export.h
  }

  Inline_Files {
  }

  Template_Files {
  }

  Pkgconfig_Files {
    TAO_CosTrading_Skel.pc.in
  }
}


project(CosTrading_Serv) : orbsvcslib, orbsvcs_output, install, trading_skel, dynamicany, svc_utils, utils, iortable {
  sharedname   = TAO_CosTrading_Serv
  dynamicflags += TAO_TRADING_SERV_BUILD_DLL
  tagchecks   += Trader
  pch_header   =
  pch_source   =

  IDL_Files {
  }

  Source_Files {
    Trader
  }

  Header_Files {
    Trader/trading_serv_export.h
  }

  Inline_Files {
    Trader
  }

  Template_Files {
    Trader
  }

  Pkgconfig_Files {
    TAO_CosTrading_Serv.pc.in
  }

  verbatim(gnuace, local) {
    Trader/Constraint_l.cpp: Trader/constraint.l
    "	@echo 'INFORMATION: Potentially outdated $@'"
    "	@echo '             either touch(1) the file or explicitly'"
    "	@echo '             generate it using:'"
    "	@echo '    make -f GNUmakefile.CosTrading_Serv Constraint_l'"

    .PHONY: Constraint_l
    Constraint_l:
    "	echo '#define YY_NO_UNPUT' > Trader/Constraint_l.cpp"
    "	echo '#define YY_NO_INPUT' >> Trader/Constraint_l.cpp"
    "	$(LEX) -L -t Trader/constraint.l | \\"
    "	sed -e 's/ NULL/ 0/g' \\"
    "	    -e 's/int offset /size_t offset /g' \\"
    "	    -e 's/isatty/ACE_OS::isatty/g' \\"
    "	    -e 's/ECHO/TAO_TRADER_ECHO/' \\"
    "	    -e 's/	/  /g' \\"
    "	    -e 's/  *$$\/\/g' \\"
    "	    -e '/#include </d' \\"
    "	>> Trader/Constraint_l.cpp"

    Trader/Constraint_y.cpp: Trader/constraint.y
    "	@echo 'INFORMATION: Potentially outdated $@'"
    "	@echo '             either touch(1) the file or explicitly'"
    "	@echo '             generate it using:'"
    "	@echo '    make -f GNUmakefile.CosTrading_Serv Constraint_y'"

    .PHONY: Constraint_y
    Constraint_y:
    "	byacc -l -d Trader/constraint.y"
    "	sed -e 's/ NULL/ 0/g' \\"
    "	    -e 's/	/        /g' \\"
    "	    -e 's/  *$$\/\/g' \\"
    "	  < y.tab.c > Trader/Constraint_y.cpp"
    "	echo TAO_END_VERSIONED_NAMESPACE_DECL >> Trader/Constraint_y.cpp"
    "	echo '#ifndef CONSTRAINT_TOKENS_H' > Trader/Constraint_Tokens.h"
    "	echo '#define CONSTRAINT_TOKENS_H' >> Trader/Constraint_Tokens.h"
    "	echo '#include /**/ \"ace/pre.h\"' >> Trader/Constraint_Tokens.h"
    "	echo '' >> Trader/Constraint_Tokens.h"
    "	cat y.tab.h >> Trader/Constraint_Tokens.h"
    "	echo '#include /**/ \"ace/post.h\"' >> Trader/Constraint_Tokens.h"
    "	echo '#endif /* CONSTRAINT_TOKENS_H */' >> Trader/Constraint_Tokens.h"
    "	$(RM) y.tab.h y.tab.c"
  }
}