diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/CosTrading.mpc')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/CosTrading.mpc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/CosTrading.mpc b/TAO/orbsvcs/orbsvcs/CosTrading.mpc index ba24c9a0354..78ce024dd5c 100644 --- a/TAO/orbsvcs/orbsvcs/CosTrading.mpc +++ b/TAO/orbsvcs/orbsvcs/CosTrading.mpc @@ -118,4 +118,55 @@ project(CosTrading_Serv) : orbsvcslib, core, trading_skel, dynamicany, svc_utils 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" + " $(LEX) -L -t Trader/constraint.l | \\" + " sed -e 's/ NULL/ 0/g' \\" + " -e 's/isatty/ACE_OS::isatty/g' \\" + " -e 's/YY_BREAK break;/YY_BREAK ACE_NOTREACHED (break;)/g' \\" + " -e 's/ECHO/TAO_TRADER_ECHO/' \\" + " -e 's/\\$$Hea''der.*\\$$/$$I''d$$/' \\" + " -e 's@#include <stdio\.h>@#include \"ace/os_include/os_stdio.h\"@' \\" + " -e 's@#include <unistd\.h>@#include \"ace/OS_NS_unistd.h\"@' \\" + " -e '/#include </d' \\" + " >> Trader/Constraint_l.cpp" + " (cd Trader; patch < Constraint_l.cpp.diff)" + + 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: + " yacc -l -d Trader/constraint.y" + " sed -e 's/ / /g' \\" + " -e 's/ *$$\/\/g' \\" + " -e 's/\|\| defined(__GNUC__)/|| defined(__GNUC__) || defined (WIN32) || defined (__HP_aCC)/g' \\" + " -e 's/memcpy/ACE_OS::memcpy/g' \\" + " -e 's/getenv/ACE_OS::getenv/g' \\" + " -e 's/free/ACE_OS::free/g' \\" + " -e 's/malloc/ACE_OS::malloc/g' \\" + " -e 's/realloc/ACE_OS::realloc/g' < y.tab.c > Trader/Constraint_y.cpp" + " echo '\/\/ $$I''d$$' > Trader/Constraint_Tokens.h" + " echo '' >> Trader/Constraint_Tokens.h" + " echo '#ifndef CONSTRAINT_TOKEN_H' >> Trader/Constraint_Tokens.h" + " echo '#define CONSTRAINT_TOKEN_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_TOKEN_H */' >> Trader/Constraint_Tokens.h" + " $(RM) y.tab.h y.tab.c" + } } |