2 project(ace_svcconf_gen) {
3 requires += ace_svcconf_gen
4 verbatim(gnuace, local) {
5 "Svc_Conf_y.cpp: Svc_Conf.y"
6 "ifeq ($(notdir $(YACC)), bison)"
7 " $(YACC) -l -d Svc_Conf.y"
8 " sed -e 's/fprintf/ACE_OS::fprintf/g' \\" // Use ACE's fprintf, not library's
9 " -e 's/\\t/ /g' \\" // Eliminate tabs (replace with 2 spaces)
10 " -e 's/yy/ace_yy/g' \\"
11 " -e 's/->ace_yyerrno/->yyerrno/g' \\" // This reverses the ace_ prefix where it
12 " -e 's/->ace_yylineno/->yylineno/g' \\" // should not have been added by the substitution, above.
13 " -e 's/ NULL/ 0/g' \\"
14 " -e 's/ace_yyerror[ ]*([ ]*\"/ace_yyerror (ACE_SVC_CONF_PARAM->yyerrno, ACE_SVC_CONF_PARAM->yylineno, \"/g' \\"
15 " -e 's/ace_yyerror[ ]*([ ]*ace_yymsg/ace_yyerror (ACE_SVC_CONF_PARAM->yyerrno, ACE_SVC_CONF_PARAM->yylineno, ace_yymsg/g' \\"
16 " -e 's/ace_yyerror[ ]*([ ]*YY_/ace_yyerror (ACE_SVC_CONF_PARAM->yyerrno, ACE_SVC_CONF_PARAM->yylineno, YY_/g' \\"
17 " -e 's@#include <stdio\.h>@@' \\"
18 " -e 's/Svc_Conf\\.tab\\.c/Svc_Conf_y.cpp/g' <Svc_Conf.tab.c >$@"
19 " $(RM) -f Svc_Conf.tab.c Svc_Conf_y.cpp.orig"
21 " @echo 'ERROR: You must use bison 1.35 or higher to process this file'"
25 "Svc_Conf_Token_Table.h: Svc_Conf.y Svc_Conf_y.cpp"
26 "ifeq ($(notdir $(YACC)), bison)"
27 " mv Svc_Conf.tab.h Svc_Conf_Token_Table.h"
29 " @echo 'ERROR: You must use bison 1.35 or higher to process this file'"