summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/parser/makefile
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2011-10-20 11:17:06 -0500
committerMark W. Wenning <wenning@us.ibm.com>2011-11-02 10:55:48 -0500
commit75a2f91534b9d3450ff450e63914bde9cb39514b (patch)
treedebe069486911e560c819242a77ed6789234e9b0 /src/usr/errl/parser/makefile
parentb72ee9b1f333be7847d694bfa2c5fbafa2e4c487 (diff)
downloadtalos-hostboot-75a2f91534b9d3450ff450e63914bde9cb39514b.tar.gz
talos-hostboot-75a2f91534b9d3450ff450e63914bde9cb39514b.zip
RTC3964: x86 Support for UserDetails
- first commit - errlparserbase and errluserparser - need linker step for userdetails libs - final merge Change-Id: I32daae8de483616f20e66581f4e8f3de0dc98257 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/467 Tested-by: Jenkins Server Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser/makefile')
-rw-r--r--src/usr/errl/parser/makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/usr/errl/parser/makefile b/src/usr/errl/parser/makefile
index 8b91e14ab..41c5df796 100644
--- a/src/usr/errl/parser/makefile
+++ b/src/usr/errl/parser/makefile
@@ -21,17 +21,14 @@
#
# IBM_PROLOG_END
-
# makefile for errlparser,
# a 32-bit x86 linux binary suitable for running on GFW pool machines.
-
ROOTPATH=../../../..
-GENDIR = ${ROOTPATH}/obj/genfiles
-IMGDIR = ${ROOTPATH}/img
+include ${ROOTPATH}/src/usr/parser.mk
-OBJDIR = ${ROOTPATH}/obj/modules/errlparser
+OBJFILES = errlparserbase.o errlusrparser.o
SRCPARSE_HEADER_TARGET = \
${GENDIR}/hostBootSrcParse.H
@@ -39,40 +36,47 @@ SRCPARSE_HEADER_TARGET = \
CC=i686-mcp6-g++ -m32
CFLAGS:=-g -O0 -I $(ROOTPATH)/src/include/usr -D PARSER
-
all: gen_pass code_pass
gen_pass:
code_pass: makeobjdir ${IMGDIR}/errlparser ${SRCPARSE_HEADER_TARGET}
+## errlparserbase and errlusrparser
+%.o : %.C
+ $(CC) -c $(CFLAGS) -o $@ $<
+
clean:
rm -fr ${SRCPARSE_HEADER_TARGET}
rm -fr ${OBJDIR}/errlparser.o
rm -fr ${GENDIR}/errlparser
rm -fr ${GENDIR}/comps.C
-
-beam:
-
+ rm -fr ${OBJDIR}/*.o
+ rm -fr *.o
makeobjdir:
mkdir -p ${OBJDIR}
-${GENDIR}/comps.C: $(ROOTPATH)/src/include/usr/hbotcompid.H
+${GENDIR}/comps.C: ${ROOTPATH}/src/include/usr/hbotcompid.H
grep "const compId_t [A-Z0-9]*_COMP_ID" $^ | \
grep -v MY_COMP_ID | \
sed 's/const compId_t \([A-Z0-9]*\)_COMP_ID[ =\t]*\(0[xX][0-9a-fA-F]*\).*/{ "\1", \2 },/' \
> $@
-${OBJDIR}/errlparser.o: errlparser.C $(ROOTPATH)/src/include/usr/errl/errltypes.H ${GENDIR}/comps.C \
- ${SRCPARSE_HEADER_TARGET}
+${OBJDIR}/errlparser.o: errlparser.C ${ROOTPATH}/src/include/usr/errl/errltypes.H ${GENDIR}/comps.C ${SRCPARSE_HEADER_TARGET}
$(CC) -c $(CFLAGS) -I${ROOTPATH}/obj/genfiles -o $@ $<
-${IMGDIR}/errlparser: ${OBJDIR}/errlparser.o
- $(CC) -o $@ $<
+${IMGDIR}/errlparser: ${OBJDIR}/errlparser.o ${OBJFILES} ${UD_FILES}
+ $(CC) -o $@ $?
+
+## TODO add link step to link in UD_FILES
${SRCPARSE_HEADER_TARGET} :
./scanforsrcs.pl -b ${ROOTPATH} -o ${GENDIR}
-
+debug:
+ ls -l ${GENDIR}
+ ls -l ${OBJDIR}
+ ls -l ${IMGDIR}
+ ls -l ${UD_DIR}
OpenPOWER on IntegriCloud