diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2011-10-26 15:13:23 -0500 |
---|---|---|
committer | Andrew J. Geissler <andrewg@us.ibm.com> | 2011-11-01 07:38:46 -0500 |
commit | beb8da45e9ad11796185bfb99f47fce35a090f9e (patch) | |
tree | 28fce8583e987a2c61c631347174ef8c446557be /src/build/ifcompiler/makefile | |
parent | 80614655c4e9842e00d13ed0ad30fa23b3402f62 (diff) | |
download | talos-hostboot-beb8da45e9ad11796185bfb99f47fce35a090f9e.tar.gz talos-hostboot-beb8da45e9ad11796185bfb99f47fce35a090f9e.zip |
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 <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/ifcompiler/makefile')
-rwxr-xr-x | src/build/ifcompiler/makefile | 80 |
1 files changed, 43 insertions, 37 deletions
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: + |