⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 linux-2.6.15.6
💻
字号:
# $Id: Makefile,v 1.3 2004/01/07 20:34:55 johana Exp $# Makefile to generate or copy the latest register definitions# and related datastructures and helpermacros.# The offical place for these files is probably at:RELEASE ?= r1_alfa5IOPOFFICIAL_INCDIR = /n/asic/projects/guinness/releases/$(RELEASE)/design/top/sw/include/IOPROCDIR = /n/asic/design/io/io_proc/rtlIOPROCINCL_FILES =IOPROCINCL_FILES2=IOPROCINCL_FILES += iop_crc_par_defs.hIOPROCINCL_FILES += iop_dmc_in_defs.hIOPROCINCL_FILES += iop_dmc_out_defs.hIOPROCINCL_FILES += iop_fifo_in_defs.hIOPROCINCL_FILES += iop_fifo_in_xtra_defs.hIOPROCINCL_FILES += iop_fifo_out_defs.hIOPROCINCL_FILES += iop_fifo_out_xtra_defs.hIOPROCINCL_FILES += iop_mpu_defs.hIOPROCINCL_FILES2+= iop_mpu_macros.hIOPROCINCL_FILES2+= iop_reg_space.hIOPROCINCL_FILES += iop_sap_in_defs.hIOPROCINCL_FILES += iop_sap_out_defs.hIOPROCINCL_FILES += iop_scrc_in_defs.hIOPROCINCL_FILES += iop_scrc_out_defs.hIOPROCINCL_FILES += iop_spu_defs.h# in guiness/IOPROCINCL_FILES += iop_sw_cfg_defs.hIOPROCINCL_FILES += iop_sw_cpu_defs.hIOPROCINCL_FILES += iop_sw_mpu_defs.hIOPROCINCL_FILES += iop_sw_spu_defs.h#IOPROCINCL_FILES += iop_timer_grp_defs.hIOPROCINCL_FILES += iop_trigger_grp_defs.h# in guiness/IOPROCINCL_FILES += iop_version_defs.hIOPROCASMINCL_FILES = $(patsubst %_defs.h,%_defs_asm.h,$(IOPROCINCL_FILES))IOPROCASMINCL_FILES+= iop_reg_space_asm.hIOPROCREGDESC =IOPROCREGDESC += $(IOPROCDIR)/iop_crc_par.r#IOPROCREGDESC += $(IOPROCDIR)/iop_crc_ser.rIOPROCREGDESC += $(IOPROCDIR)/iop_dmc_in.rIOPROCREGDESC += $(IOPROCDIR)/iop_dmc_out.rIOPROCREGDESC += $(IOPROCDIR)/iop_fifo_in.rIOPROCREGDESC += $(IOPROCDIR)/iop_fifo_in_xtra.rIOPROCREGDESC += $(IOPROCDIR)/iop_fifo_out.rIOPROCREGDESC += $(IOPROCDIR)/iop_fifo_out_xtra.rIOPROCREGDESC += $(IOPROCDIR)/iop_mpu.rIOPROCREGDESC += $(IOPROCDIR)/iop_sap_in.rIOPROCREGDESC += $(IOPROCDIR)/iop_sap_out.rIOPROCREGDESC += $(IOPROCDIR)/iop_scrc_in.rIOPROCREGDESC += $(IOPROCDIR)/iop_scrc_out.rIOPROCREGDESC += $(IOPROCDIR)/iop_spu.rIOPROCREGDESC += $(IOPROCDIR)/guinness/iop_sw_cfg.rIOPROCREGDESC += $(IOPROCDIR)/guinness/iop_sw_cpu.rIOPROCREGDESC += $(IOPROCDIR)/guinness/iop_sw_mpu.rIOPROCREGDESC += $(IOPROCDIR)/guinness/iop_sw_spu.rIOPROCREGDESC += $(IOPROCDIR)/iop_timer_grp.rIOPROCREGDESC += $(IOPROCDIR)/iop_trigger_grp.rIOPROCREGDESC += $(IOPROCDIR)/guinness/iop_version.rRDES2C = /n/asic/bin/rdes2cRDES2C = /n/asic/design/tools/rdesc/rdes2cRDES2INTR = /n/asic/design/tools/rdesc/rdes2intrRDES2TXT = /n/asic/design/tools/rdesc/rdes2txt## all    - Just print help - you probably want to do 'make gen'all: help## help   - This helphelp:	@grep '^## ' Makefile## gen    - Generate include filesgen: $(IOPROCINCL_FILES) $(IOPROCINCL_FILES2) $(IOPROCASMINCL_FILES)	echo "INCL: $(IOPROCINCL_FILES)"	echo "INCL2: $(IOPROCINCL_FILES2)"	echo "ASMINCL: $(IOPROCASMINCL_FILES)"# From the official location...iop_reg_space.h: $(IOPOFFICIAL_INCDIR)/iop_reg_space.h	cat $< | sed -e 's/\$$Id\:/id\:/g' >$@iop_mpu_macros.h: $(IOPOFFICIAL_INCDIR)/iop_mpu_macros.h	cat $< | sed -e 's/\$$Id\:/id\:/g' >$@## copy   - Copy files from official locationcopy:	@echo "## Copying and fixing iop files ##"	@for HFILE in $(IOPROCINCL_FILES); do \		echo "  $$HFILE"; \		cat $(IOPOFFICIAL_INCDIR)$$HFILE | sed -e 's/\$$Id\:/id\:/g' > $$HFILE; \	done	@for HFILE in $(IOPROCINCL_FILES2); do \		echo "  $$HFILE"; \		cat $(IOPOFFICIAL_INCDIR)$$HFILE | sed -e 's/\$$Id\:/id\:/g' > $$HFILE; \	done	@echo "## Copying and fixing iop asm files ##"	@for HFILE in $(IOPROCASMINCL_FILES); do \		echo "  $$HFILE"; \		cat $(IOPOFFICIAL_INCDIR)asm/$$HFILE | sed -e 's/\$$Id\:/id\:/g' > asm/$$HFILE; \	done# I/O processor files:## iop    - Generate I/O processor include filesiop: $(IOPROCINCL_FILES) $(IOPROCINCL_FILES2) $(IOPROCASMINCL_FILES)iop_sw_%_defs.h: $(IOPROCDIR)/guinness/iop_sw_%.r	$(RDES2C) $<iop_version_defs.h: $(IOPROCDIR)/guinness/iop_version.r	$(RDES2C) $<%_defs.h: $(IOPROCDIR)/%.r	$(RDES2C) $<%_defs_asm.h: $(IOPROCDIR)/%.r	$(RDES2C) -asm $<iop_version_defs_asm.h: $(IOPROCDIR)/guinness/iop_version.r	$(RDES2C) -asm $<## doc    - Generate .axw files from register description.doc: $(IOPROCREGDESC)	for RDES in $^; do \		$(RDES2TXT) $$RDES; \	done.PHONY: axw## %.axw  - Generate the specified .axw file (doesn't work for all files##          due to inconsistent naming of .r files.%.axw: axw	@for RDES in $(IOPROCREGDESC); do \		if echo "$$RDES" | grep $* ; then \		  $(RDES2TXT) $$RDES; \		fi \	done.PHONY: clean## clean  - Remove .h files and .axw files.clean:	rm -rf $(IOPROCINCL_FILES) *.axw.PHONY: cleandoc## cleandoc  - Remove .axw files.cleandoc:	rm -rf *.axw

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -