📄 gnumakefile
字号:
# ******************************************************************************# ******************************************************************************# This makefile contains the rules for building the oaVerilog library.## ******************************************************************************# Except as specified in the OpenAccess terms of use of Cadence or Silicon# Integration Initiative, this material may not be copied, modified,# re-published, uploaded, executed, or distributed in any way, in any medium,# in whole or in part, without prior written permission from Cadence.## Copyright 2002-2005 Cadence Design Systems, Inc.# All Rights Reserved.## $Author: ghijsen $# $Revision: 1.10 $# $Date: 2005/03/29 00:08:56 $# ******************************************************************************# ******************************************************************************ROOT = ..include $(ROOT)/build.variablesdefault : allPROJ_INCLUDES := -I$(TOOL_INCLUDE_DIR) \ -I$(PROD_DIR)/include/oa \ -I$(OBJDIR)PROJ_NAME = oaVeriloginclude Hfiles.defs# ******************************************************************************# Define the archive library# ******************************************************************************LIB_NAME := lib$(PROJ_NAME)LIB_RULE := $(PROJ_NAME)_soLIB_MODE := archiveLIB_LANG := C++LIB_PIC := yesLIB_PREGEN_SRC := oaVerilogParser.hpp oaVerilogParser.cpp oaVerilogScanner.cppLIB_INST_HDRS := $(HFILES)LIB_INST_HDRSDIR:= $(TOOL_INCLUDE_DIR)LIB_SRC := $(wildcard *.cpp)LIB_INST_BINDIR := $(PROD_LIB_DIR)include $(CONFIG_ROOT)/library.rulesinclude $(ROOT)/build.rules# Default values for FLEX_HOME and BISON_HOME are defined in local.rulesLEX := $(FLEX_HOME)/bin/flex++LFILE := oaVerilogScanner.lppLFLAGS := -t -PvliYY -SoaVerilogScanner.sklYACC := $(BISON_HOME)/bin/bisonYFILE := oaVerilogParser.yppYFLAGS := --skeleton=oaVerilogParser.skl \ --name-prefix=Parser \ --defines \ --file-prefix=oaVerilogParser \ --report=itemset \ --verbose \ --output=oaVerilogParser.cppBISON_PKGDATADIR = $(shell pwd)BISON_OUTPUT := oaVerilogParser.cpp \ oaVerilogParser.hpp \ location.hh \ position.hh \ stack.hhdefine generate-parser $(SECHO) "Generating parser with $(YACC) $<" $(WHISPER) csh -c \ "cd $(OBJDIR); \ ln -s $(BISON_PKGDATADIR)/$(YFILE) $(YFILE); \ setenv BISON_PKGDATADIR $(BISON_PKGDATADIR); \ $(YACC) $(YFLAGS) $(YFILE);"endefdefine generate-scanner $(SECHO) "Generating scanner with $(LEX) $<" $(WHISPER) $(LEX) $(LFLAGS) $(LFILE) > $@endef$(OBJDIR)/oaVerilogScanner.cpp: $(LFILE) $(OBJDIR)/oaVerilogParser.hpp oaVerilogScanner.skl $(generate-scanner)$(OBJDIR)/oaVerilogParser.cpp: $(YFILE) oaVerilogParser.skl $(generate-parser)$(OBJDIR)/oaVerilogParser.hpp: $(YFILE) oaVerilogParser.skl $(generate-parser)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -