From beb8da45e9ad11796185bfb99f47fce35a090f9e Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Wed, 26 Oct 2011 15:13:23 -0500 Subject: Initfile compile support - Code review comments - Second round of code review comments - Fix for compiler failure due to last code review comments Change-Id: Ic4356297a710e1bf1733b86dc47f459ee9c1533f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/463 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/build/ifcompiler/makefile | 80 +++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 37 deletions(-) (limited to 'src/build/ifcompiler/makefile') diff --git a/src/build/ifcompiler/makefile b/src/build/ifcompiler/makefile index 6fe932a24..04bea5213 100755 --- a/src/build/ifcompiler/makefile +++ b/src/build/ifcompiler/makefile @@ -1,39 +1,45 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# fips730 src/engd/initfiles/ifcompiler/makefile 1.5 -# -# IBM CONFIDENTIAL -# -# OBJECT CODE ONLY SOURCE MATERIALS -# -# COPYRIGHT International Business Machines Corp. 2010 -# All Rights Reserved -# -# The source code for this program is not published or otherwise -# divested of its trade secrets, irrespective of what has been -# deposited with the U.S. Copyright Office. -# -# IBM_PROLOG_END_TAG -# -# Flag Reason Userid Date Description -# ---- ------- -------- -------- ----------- -# andrewg 05/24/11 Updated for VPL/PgP -# andrewg 10/07/11 Update based on review -# - -# To execute initCompiler against sample.initfile, run the following: -# ./initCompiler -init ./sample.initfile -outdir . --debug -attr ./fapiAttributeIds.H -# -# sample.if will be the binary compiled initfile, used as input to the hardware procedure which -# process it. -# -# sample.if.list will be a listing file describing the binary content of the initfile -# -# add a "-d" to flex command line to get debug output. - -all: - yacc -d initCompiler.y; flex initCompiler.lex; g++ initCompiler.C lex.yy.c y.tab.c initRpn.C initScom.C initSymbols.C -I./ -o initCompiler +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/build/ifcompiler/makefile $ +# +# IBM CONFIDENTIAL +# +# COPYRIGHT International Business Machines Corp. 2011 +# +# p1 +# +# Object Code Only (OCO) source materials +# Licensed Internal Code Source Materials +# IBM HostBoot Licensed Internal Code +# +# The source code for this program is not published or other- +# wise divested of its trade secrets, irrespective of what has +# been deposited with the U.S. Copyright Office. +# +# Origin: 30 +# +# IBM_PROLOG_END +# add a -d to flex for debug output + +y.tab.%: initCompiler.y + yacc -d initCompiler.y + +lex.yy.c: initCompiler.lex + flex initCompiler.lex + +bin/initCompiler: y.tab.c y.tab.h lex.yy.c initCompiler.C initCompiler.H initRpn.C initRpn.H initScom.C initScom.H initSymbols.C initSymbols.H + mkdir -p bin; g++ initCompiler.C lex.yy.c y.tab.c initRpn.C initScom.C initSymbols.C -I./ -o ./bin/initCompiler + +ifcompiler: bin/initCompiler + +all: gen_pass + +code_pass: + +gen_pass: ifcompiler clean: - rm -f initCompiler lex.yy.c *.if *.list y.tab.* *.dbg + rm -f ./bin/initCompiler lex.yy.c y.tab.* +beam: + -- cgit v1.2.1