亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? makefile

?? 基于fpga和sopc的用VHDL語言編寫的EDA的32位Nios CPU嵌入式系統軟硬件設計
??
字號:
# file: Makefile
#
# Example Makefile for a
# typical Nios program:
#
#   peripheral_test.c
#
# ex:set noexpandtab:
#
# +---------------------------
# | How To Use This Makefile
# |
# | 1. Make a new directory with
# |    your project's .c and .h
# |    (and maybe .s) files
# |
# | 2. Copy this Makefile to it,
# |    and change the following
# |    variables as needed:
# |      PROGRAM_NAME -- base name for your program
# |      OBJECTS      -- list of .o files, which implies
# |                      the .c files and .s source files
# |      CINCLUDES    -- all your .h files
# |      AINCLUDES    -- all your .s include files
# |
# | 3. Type "make all" to build the project,
# |    or "make run" to make it and nios-run it.
# |


# +--------------------------
# | Project Files
# +--------------------------

# |
# | Program name -- the base for all
# | the output files including .srec and .out.
# |

PROGRAM_NAME = peripheral_test

# |
# | Assembly Include Files
# |
# | In this makefile, every C (.c) file
# | depends on every header file (.h)
# | in the CINCLUDES section, and every
# | assembly file (.s) depends on
# | each and every assembly-header (also .s)
# | in the AINCLUDES section


AINCLUDES =  \
	$(SDK_ROOT)/inc/excalibur.s \
	$(SDK_ROOT)/inc/nios_macros.s

CINCLUDES =  \
	$(SDK_ROOT)/inc/excalibur.h

# |
# | Object files
# |
# | The rules below will find the .c or .s files needed
# | to make each of these .o object files.
# |
# | This list will all go to the linker to make the
# | final binary.
# |
# | (This makefile follows the unusual convention
# | of appending .o after the original file name,
# | rather than replacing the file-type extension.
# | This makes it a)easier to identify a file's
# | history from its name, and b)easier to set
# | up implicit rules to generate them.
# |

OBJECTS =  \
	$(OBJ)/peripheral_test.c.o \
	$(OBJ)/peripheral_test_memory.c.o \
	$(OBJ)/peripheral_test_memory_asm.s.o \
	$(OBJ)/peripheral_test_timer.c.o \
	$(OBJ)/peripheral_test_uart.c.o

# +----------------------
# | Anchor point:
# |  the SOPC Builder sdk directory
# |  generated for this project
# |
# | This example makefile happens to
# | be located at
# |
# |    <your quartus project><your nios cpu>_sdk/src/makefile_example
# |
# | so the sdk root is at ../..

SDK_ROOT = ../..
# 
#
#
# +--------------------------------
# | First, some traditional defines
# | for our particular tool chain
# |

GNU_TOOLS_PREFIX = nios-elf
AS = $(GNU_TOOLS_PREFIX)-as
CC = $(GNU_TOOLS_PREFIX)-gcc
AR = $(GNU_TOOLS_PREFIX)-ar
LD = $(GNU_TOOLS_PREFIX)-ld
OC = $(GNU_TOOLS_PREFIX)-objcopy
NM = $(GNU_TOOLS_PREFIX)-nm
OD = $(GNU_TOOLS_PREFIX)-objdump

NR = nios-run

# | A special echo that prints prettily

E = echo \\\# `date +%Y.%m.%d.%H:%M:%S` ---

# |
# | To keep things tidy, we stash all
# | object (.o) files into a directory
# | named "obj"
# |

OBJ = ./obj

# |
# | And the source directory? Is right here.
# |

SRC = .

# |
# | It is a Nios 32. Change it to 16 for Nios 16.
# |

M = 32

# +-----------------------------------
# | Include paths and such
# | If you have more directories of .h files,
# | add them here.
# |
# | We put in ../inc, ../../inc, and so on so
# | that it will look "up and over" to the sopc_builder
# | generated files, or other nearby inc dirs.
# |
# | Note that it uses "-I <dir>" format, which
# | is legal for both as and gcc.
# |

INCLUDE_PATHS = \
		-I $(SDK_ROOT)/inc \
		-I ./inc \
		-I ../inc \
		-I ../../inc \
		-I ../../../inc \

# +------------------------------------
# | Switches for the compiler, the assembler,
# | and the linker
# |

ASFlags = \
		$(INCLUDE_PATHS) \
		--defsym __nios$(M)__=1 \
		-m$(M)

CCFlags = \
		$(INCLUDE_PATHS) \
		-W -g -c -O2 \
		-mdcache \
		-mno-zero-extend \
		-m$(M)



# +----------------------------------------
# | Rules
# |
# | These implicit rules treat all your .s
# | and all your .c files the same.
# |
# | "default" comes first so that if you just
# | type "make" it is the default target.
# |

default : nios16_note srec
	@$(E) .
	@$(E) . Built $(PROGRAM_NAME).srec
	@$(E) . try "make help" for more information
	@$(E) .

nios16_note :
	@$(E) "(Note: to make for Nios 16, try \"make clean all M=16\")"

$(OBJ)/%.s.o : $(SRC)/%.s $(AINCLUDES)
	@$(E) Assembling $<
	@$(AS) $(ASFlags) $< -o $@

$(OBJ)/%.c.o : $(SRC)/%.c $(CINCLUDES)
	@$(E) Compiling $<
	@$(CC) $(CCFlags) $< -o $@

$(OBJ) :
	@$(E) Making $@/ directory
	@mkdir $@

clean : $(OBJ)
	@$(E) Removing objects
	@rm -rf $(OBJ)/*

# +-------------------------------------
# | Linking
# |
# | This is the most involved command line.
# | It was taken from the output of "nios-build"
# | and splayed out into an easier-to-read form.
# |
# | It references a linker script out in the sopc_builder
# | directory, and also makes sure that the first thing
# | in the file is a branch to "_start". (Usually
# | the routine named _start does a bunch of useful
# | initialization before your main() routine is called.)
# |
# | Note the use of GCC_VER -- this is because some of
# | the libraries are stashed in a version-named directory.
# |
# | Explanation of switches to the linker:
# |
# |   -e _start -u _start
# |       the entry point. _start() does the setup
# |       for Nios and then calls main().
# |
# |   -g
# |       include debug info in .out file. Does NOT
# |       increase the size of your S-Record.
# |
# |   -T (path to ld script)
# |       A "linker script" which knows about your memory
# |       map, by using symbols like nasys_program_mem from
# |       excalibur.s.
# |
# |   (path to nios_jumptostart.s.o)
# |       A "program prefix" that we at the front of
# |       every Nios program. It contains a jump to
# |       _start, and the ascii signature "Nios".
# |
# |   --start-group -l nios32 -l c -l m -l gcc --end-group
# |       The linker treats this a set of libraries
# |       to scan repeatedly until no new references are
# |       resolved. (The libraries sometimes refer to each
# |       other, so multiple passes are needed.) Each
# |       -l option is taken as lib(something).a, so the
# |       above line really looks for libnios32.1, libc.a,
# |       libm.a, and libgcc.a.
# |
# |   -L(various paths)
# |       Places the linker might look for libraries
# |

GCC_VER = $(shell nios-elf-gcc --version)
LFLAGS = \
		-e _start \
		-u _start \
		-g \
		-T $(sopc_builder)/bin/excalibur.ld \
		$(SDK_ROOT)/lib/obj$(M)/nios_jumptostart.s.o \
		--start-group \
			-l nios$(M) \
			-l c \
			-l m \
			-l gcc \
		--end-group \
		-L$(sopc_kit_nios)/bin/nios-gnupro/nios-elf/lib/m$(M) \
		-L$(sopc_kit_nios)/bin/nios-gnupro/lib/gcc-lib/nios-elf/$(GCC_VER)/m$(M) \
		-L$(sopc_builder)/bin/nios-gnupro/nios-elf/lib/m$(M) \
		-L$(sopc_builder)/bin/nios-gnupro/lib/gcc-lib/nios-elf/$(GCC_VER)/m$(M) \
		-L$(SDK_ROOT)/lib \
		-L. \
		-L../lib \
		-L../../lib \
		-L../../../lib \

# |
# | Note about -L's above:
# |
# | we look in the quartus-3.0-and-later place, sopc_kit_nios,
# | and also in the pre-3.0 place, sopc_builder, for the compiler
# | libraries
# |

# |
# | Rule for making .out file from
# | the objects. The OBJECTS variable
# | must come before the LFLAGS, because
# | the LFLAGS has the libraries. The linker
# | needs to know which library routines you've
# | referenced from your code before scanning
# | them and deciding which parts to use.
# |

$(OBJ)/$(PROGRAM_NAME).out : $(OBJ) $(OBJECTS)
	@$(E) Linking $@
	@$(LD) $(OBJECTS) $(LFLAGS) -o $(OBJ)/$(PROGRAM_NAME).out 

# |
# | S-Record
# |
# | We like Nios programs to be in an S-Record
# | for use by nios-run or SOPC Builder memory
# | contents
# |
# | The S-Record is the only output file that
# | we dont stash tidily into the obj folder
# |

$(PROGRAM_NAME).srec : $(OBJ)/$(PROGRAM_NAME).out
	@$(E) Converting $(PROGRAM_NAME) to S-Record
	@$(OC) -O srec $(OBJ)/$(PROGRAM_NAME).out $(PROGRAM_NAME).srec 


# |
# | The following several targets are unique
# | to generating certain flash-config files
# | for the Apex 20k Nios development board.
# |
# | These targets may be omitted if you adapt
# | this Makefile for your own projects.
# |

$(PROGRAM_NAME).flash : $(PROGRAM_NAME).srec
	$(E) Converting $(PROGRAM_NAME).srec to $(PROGRAM_NAME).flash ;
	@srec2flash $(PROGRAM_NAME).srec

DESIGN_NAME = standard_32

$(DESIGN_NAME).hexout.flash : ../../../$(DESIGN_NAME).hexout
	@$(E) Converting $(DESIGN_NAME).hexout to $(DESIGN_NAME).hexout.flash ;
	@cd ../../../ ; hexout2flash $(DESIGN_NAME).hexout -b 0x1c0000 -s 0x3f000
	@mv ../../../$(DESIGN_NAME).hexout.flash .

$(DESIGN_NAME).germs : $(DESIGN_NAME).hexout.flash $(PROGRAM_NAME).flash
	@$(E) "Assembling hardware and software images into $(DESIGN_NAME).germs"
	@cat $(DESIGN_NAME).hexout.flash $(PROGRAM_NAME).flash > $(DESIGN_NAME).germs

# |
# | Handy auxilliary files
# |

$(OBJ)/$(PROGRAM_NAME).nm : $(OBJ)/$(PROGRAM_NAME).out
	@$(E) Making $(PROGRAM_NAME).nm
	@$(NM) $(OBJ)/$(PROGRAM_NAME).out | sort > $(OBJ)/$(PROGRAM_NAME).nm

$(OBJ)/$(PROGRAM_NAME).objdump : $(OBJ)/$(PROGRAM_NAME).out
	@$(E) Making $(PROGRAM_NAME).objdump
	@$(OD) $(OBJ)/$(PROGRAM_NAME).out -d --source > $(OBJ)/$(PROGRAM_NAME).objdump

# +-------------------------------------
# | Shortcut Targets
# |

srec : $(PROGRAM_NAME).srec

out : $(OBJ)/$(PROGRAM_NAME).out

flash : $(DESIGN_NAME).germs

run : $(PROGRAM_NAME).srec
	@$(E) Running $(PROGRAM_NAME)
	@$(NR) $(PROGRAM_NAME).srec
	@$(E) Done running $(PROGRAM_NAME)

aux : $(OBJ)/$(PROGRAM_NAME).nm $(OBJ)/$(PROGRAM_NAME).objdump

all : nios16_note srec aux

help :
	@echo 
	@echo Program name: $(PROGRAM_NAME)
	@echo 
	@echo Available makefile targets:
	@echo
	@echo "  make clean -- erase intermediate files"
	@echo "  make srec  -- compile, link, and convert to S-Record"
	@echo "  make run   -- make the S-Record, and then nios-run, too"
	@echo 
	@echo "  make out   -- only make the .out file"
	@echo "  make aux   -- generate .nm and .objdump files"
	@echo

# end of file

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线区一区二视频| 国产精品视频免费看| 久久先锋影音av鲁色资源| 日韩一区欧美小说| 国产中文字幕一区| 精品视频一区三区九区| 久久久国产一区二区三区四区小说 | 欧美在线免费观看亚洲| 久久午夜国产精品| 日本成人在线不卡视频| 在线观看91视频| 中文字幕日韩精品一区| 国产在线播精品第三| 欧美剧情片在线观看| 最新欧美精品一区二区三区| 国产美女精品一区二区三区| 欧美一区二区免费视频| 夜夜嗨av一区二区三区网页| 波多野结衣欧美| 日本一区二区综合亚洲| 狠狠色丁香久久婷婷综合_中 | 中文字幕亚洲一区二区va在线| 精品一区二区三区的国产在线播放| 欧美精品久久一区二区三区| 夜夜精品视频一区二区| 色哟哟国产精品免费观看| 日本一区二区三区免费乱视频| 狠狠色狠狠色合久久伊人| 日韩三级视频中文字幕| 美腿丝袜亚洲一区| 日韩一级二级三级| 麻豆91小视频| 亚洲精品在线观看视频| 国产伦精品一区二区三区免费迷| 欧美成人国产一区二区| 裸体在线国模精品偷拍| 精品国产乱码久久久久久久| 日本中文字幕不卡| 日韩欧美中文字幕精品| 精品在线观看免费| 国产欧美精品在线观看| 成人网在线播放| 亚洲人成小说网站色在线| 色哟哟亚洲精品| 日韩二区在线观看| 精品国产一区二区三区不卡| 国产伦精品一区二区三区视频青涩| 精品久久久久久久人人人人传媒| 91麻豆视频网站| 伊人一区二区三区| 51精品视频一区二区三区| 美女视频网站久久| 欧美激情一区三区| 日本二三区不卡| 免费在线视频一区| 国产欧美一区二区精品性| 色综合天天视频在线观看| 亚洲国产va精品久久久不卡综合 | 成人性色生活片| 亚洲蜜桃精久久久久久久| 欧美日韩中文精品| 国产老妇另类xxxxx| 成人免费在线播放视频| 欧美情侣在线播放| 国内精品久久久久影院色 | 精品美女被调教视频大全网站| 国产精品影视网| 一区二区三区高清| 日韩精品中文字幕在线不卡尤物 | 日本伊人午夜精品| 欧美国产精品劲爆| 欧美欧美欧美欧美| 成熟亚洲日本毛茸茸凸凹| 亚洲国产成人精品视频| 国产亚洲视频系列| 在线播放中文一区| 成a人片国产精品| 蜜臀久久99精品久久久画质超高清 | 欧美视频中文一区二区三区在线观看| 日韩不卡手机在线v区| 国产精品水嫩水嫩| 欧美一级电影网站| 91麻豆免费在线观看| 国产一区二区毛片| 丝袜a∨在线一区二区三区不卡| 国产欧美日韩麻豆91| 制服丝袜亚洲精品中文字幕| 成人h精品动漫一区二区三区| 爽爽淫人综合网网站| 亚洲人亚洲人成电影网站色| 精品福利一二区| 欧美日韩aaa| 一本到三区不卡视频| 国产精品综合视频| 美女在线观看视频一区二区| 亚洲一区在线观看视频| 日本大胆欧美人术艺术动态 | caoporm超碰国产精品| 毛片不卡一区二区| 五月婷婷久久丁香| 一区二区三区四区不卡视频| 日本一区二区三区在线不卡| 日韩精品一区二区三区视频| 欧美美女bb生活片| 欧美性生活大片视频| 91麻豆国产在线观看| 91一区一区三区| 成人av免费在线播放| 丁香天五香天堂综合| 国产河南妇女毛片精品久久久| 蜜臀av国产精品久久久久| 午夜电影一区二区三区| 亚洲最大成人综合| 亚洲综合久久久久| 尤物在线观看一区| 亚洲影院久久精品| 亚洲五月六月丁香激情| 一区二区三区日本| 亚洲一区二区欧美| 亚洲成人777| 日韩在线播放一区二区| 日本伊人色综合网| 精品一区二区三区影院在线午夜 | 亚洲色图欧洲色图婷婷| 亚洲综合色婷婷| 国产伦精品一区二区三区免费迷 | 一区二区三区不卡在线观看| 国产欧美日韩在线观看| 91成人网在线| 在线91免费看| 亚洲欧洲国产日韩| 久久国产精品99精品国产| 久久色.com| 亚洲图片有声小说| 国产凹凸在线观看一区二区| 91超碰这里只有精品国产| √…a在线天堂一区| 狠狠色丁香婷综合久久| 91精品视频网| 亚洲一区二区三区三| 处破女av一区二区| 亚洲精品一线二线三线无人区| 亚洲一区二区偷拍精品| 99精品视频在线播放观看| 欧美精品一区二区蜜臀亚洲| 亚洲成人免费在线观看| 99这里都是精品| 日本一区二区三区高清不卡| 久久成人av少妇免费| 欧美精品丝袜久久久中文字幕| 亚洲日本成人在线观看| yourporn久久国产精品| 2024国产精品| 九一久久久久久| 日韩一区二区精品葵司在线| 视频在线观看91| 欧美色图在线观看| 一区二区三区国产豹纹内裤在线| 国产成人av一区二区三区在线| 欧美xxx久久| 久久精品国产澳门| 日韩一区二区精品在线观看| 天天色天天爱天天射综合| 在线欧美日韩国产| 一区二区三区高清| 欧美艳星brazzers| 亚洲成人激情社区| 欧美精品一级二级| 日韩高清在线电影| 日韩女同互慰一区二区| 欧美a级一区二区| 欧美大片在线观看| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美一区二区三区四区高清| 亚洲va天堂va国产va久| 欧美人体做爰大胆视频| 成人午夜av电影| 亚洲欧洲日本在线| 日本韩国一区二区三区视频| 亚洲自拍与偷拍| 欧美久久久久久久久| 免费精品视频最新在线| 精品久久久久久久久久久久久久久久久 | 国产精品久久综合| 9久草视频在线视频精品| 亚洲欧美日韩国产成人精品影院| 91精品办公室少妇高潮对白| 亚洲电影一级黄| 欧美大片拔萝卜| 国产精品中文欧美| 亚洲丝袜美腿综合| 欧美日韩国产在线观看| 欧美bbbbb| 国产精品久久久久久久久快鸭 | 亚洲一区二区三区四区不卡| 欧美精品自拍偷拍| 国产91精品精华液一区二区三区| 国产精品不卡在线观看| 欧美肥妇bbw| 高清视频一区二区|