OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Makefile] - Rev 121

Go to most recent revision | Compare with Previous | Blame | View Log

SHELL=/bin/sh
MAKE=make
CUR_DIR=$(shell pwd)
home=$(CUR_DIR)
design=socgen
project=fpgas
vendor=opencores.org





.PHONY all: clean 
all: 
        (\
        ${home}/tools/sys/workspace /projects/opencores.org/fpgas        /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/fpga_or1200  /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/logic        /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/io           /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/Mos6502      /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/or1k         /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/wishbone     /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/xfer         /work ;\
        ${home}/tools/sys/workspace /projects/opencores.org/cde          /work ;\
         )




.PHONY cmp:
cmp: 
        (\
        rm -f -r tools_cmp/*  ;\
        mkdir    tools_cmp  ;\
        chdir    tools_cmp  ;\
        lndir    ../tools  .   ;\
        cd ${home}/tools_cmp/utils;\
        ${MAKE} ;\
         )





.PHONY clean:
clean: 
        (\
        rm -f -r work/*  ;\
        rm -f -r doc/geda/*  ;\
        find . | grep "~" | xargs rm -f  $1 ;\
         )




.PHONY index:
index: 
        (\
        ${home}/tools/yp/create_yp;\
        ${home}/tools/yp/create_hier_index  ${home}/tools/yp/hier_index.xml\
         )


.PHONY workspace: 
workspace: 
        (\
        ${home}/tools/sys/workspace $(project) $(vendor) ;\
         )






.PHONY build_hw:
build_hw: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "###############################################"; \
        echo; \
        echo "Building HW: $$PROJECT ####"; echo; \
        ${home}/tools/sys/build_hw $$PROJECT /work  ;\
        done; \




.PHONY build_obj:
build_obj: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "build_obj: $$PROJECT ####"; echo; \
        cd ${home}/work/$$PROJECT/bin;\
        ${MAKE} group_build_obj;\
        done; \


.PHONY build_sw:
build_sw: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "build_sw: $$PROJECT ####"; echo; \
        cd ${home}/work/$$PROJECT/bin;\
        ${MAKE} group_build_sw;\
        done; \

.PHONY run_sims: run_lint
run_sims: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "run_sims: $$PROJECT ####"; echo; \
        ${home}/tools/simulation/run_sims $$PROJECT /work  ;\
        done; \


.PHONY run_lint:
run_lint: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "run_lint: $$PROJECT ####"; echo; \
        ${home}/tools/simulation/run_lint  $$PROJECT /work ;\
        done; \


.PHONY run_coverage:
run_coverage: 
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "run_coverage: $$PROJECT ####"; echo; \
        cd ${home}/work/$$PROJECT/bin;\
        ${MAKE} group_run_coverage;\
        done; \





.PHONY build_fpgas:
build_fpgas:
        @for PROJECT in `ls $(CUR_DIR)/work`; do \
        echo "################################################"; \
        echo "build_fpgas: $$PROJECT ####"; echo; \
        ${home}/tools/synthesys/build_fpgas $$PROJECT /work ;\
        done; \





.PHONY check_sims:
check_sims:   
        @for COMP in `ls $(CUR_DIR)/work`; do \
        echo "*******************************************************************************************";\
        echo " number of $$COMP sims run";\
        find ./work/$$COMP  | grep test_define | grep -v target | grep -v children| grep -v cov | wc -l;\
        echo " number of sims that finished";\
        find ./work/$$COMP  | grep _sim.log | xargs grep PASSED $1    | wc -l ;\
        echo " number of warnings";\
        find ./work/$$COMP  | grep _sim.log | xargs grep WARNING $1   | wc -l ;\
        echo " number of errors";\
        find ./work/$$COMP  | grep _sim.log | xargs grep ERROR $1     | wc -l ;\
        echo " Elaboration Errors";\
        find ./work/$$COMP  | grep _elab.log | xargs cat $1  ;\
        echo " Code Coverage";\
        echo " number of warnings";\
        find ./work/$$COMP  | grep _cov.log | xargs grep WARNING $1  ;\
        echo " number of errors";\
        find ./work/$$COMP  | grep _cov.log | xargs grep ERROR $1    ;\
        echo " Lint Coverage";\
        echo " number of errors";\
        find ./work/$$COMP  | grep lint.log | xargs grep Error $1  ;\
        done; 




.PHONY check_fpgas:
check_fpgas: 
        (\
        cd ${home}/work  ;\
        echo " number of fpgas";\
        find . | grep filelist.syn |grep -v "xst/filelist.syn" |  wc -l   ;\
        echo " number that finished";\
        find . | grep Board_Design_jtag.bit | wc -l ;\
         )






















Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.