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

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

?? makefile

?? 很多儀器都輸出同步時鐘
??
字號:
# 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一区二区三区免费野_久草精品视频
国产麻豆精品久久一二三| 制服丝袜成人动漫| 成人性生交大片免费看中文| 波多野结衣中文字幕一区 | 亚洲国产一区二区在线播放| 亚洲成人久久影院| 欧美视频在线观看一区二区| 久久综合九色综合97_久久久| 国产精品视频在线看| 亚洲国产欧美一区二区三区丁香婷| 爽好久久久欧美精品| 91在线观看成人| 欧美日韩在线一区二区| 午夜精品久久久久久久| 国产精品色哟哟网站| 五月婷婷另类国产| 国产大陆a不卡| 欧美变态tickle挠乳网站| 中文字幕一区av| 免费在线观看一区二区三区| av在线不卡观看免费观看| 日韩欧美电影一二三| 亚洲午夜久久久久久久久久久 | 日本道色综合久久| 欧美国产日韩一二三区| 琪琪久久久久日韩精品| 色综合一区二区| 91精品啪在线观看国产60岁| 亚洲国产欧美日韩另类综合 | 亚洲一区二区三区四区中文字幕 | 成+人+亚洲+综合天堂| 日韩一级片网址| 亚洲视频 欧洲视频| 豆国产96在线|亚洲| 日韩一区二区在线看| 亚洲国产精品麻豆| 不卡电影免费在线播放一区| 中文字幕不卡三区| 国产一区二区电影| 精品国内二区三区| 视频一区二区三区在线| 欧美人妇做爰xxxⅹ性高电影| 欧美精品一区在线观看| 青青草原综合久久大伊人精品优势| 91久久奴性调教| 亚洲一区二区成人在线观看| 99精品偷自拍| 久久精品欧美一区二区三区不卡 | 日韩一区二区在线免费观看| 一区二区成人在线视频| 精品视频一区二区三区免费| 18欧美乱大交hd1984| 成人av手机在线观看| 国产日产欧美一区二区视频| a在线欧美一区| 国产精品你懂的在线欣赏| 国产成人精品一区二| 国产网红主播福利一区二区| 久久成人av少妇免费| 日韩午夜激情av| 久久99久久精品| 久久免费电影网| 一本大道久久a久久综合| 国产精品久久久久久久久搜平片 | 成人午夜av在线| 国产精品丝袜在线| 欧美日韩午夜在线| 婷婷国产v国产偷v亚洲高清| 丁香六月综合激情| 精彩视频一区二区| 免费欧美高清视频| 成人黄色电影在线| 国产三级久久久| 九九精品一区二区| 日韩一区二区在线看| 国产精品久久久久久久久快鸭| 蜜臀av一级做a爰片久久| 欧美zozo另类异族| 久久亚洲捆绑美女| 欧美精品一区二区三区蜜臀| 日本不卡视频在线| 久久久另类综合| 91国产丝袜在线播放| 奇米影视在线99精品| 亚洲国产精品t66y| 色激情天天射综合网| 亚洲综合在线视频| 日韩视频免费直播| 成人国产精品免费| 亚洲v中文字幕| 国产亚洲精品福利| 欧洲人成人精品| 激情久久五月天| 亚洲免费在线视频| 91精品国产91久久久久久一区二区 | 国产精品免费av| 久久91精品国产91久久小草| 亚洲综合精品自拍| 久久蜜臀精品av| 欧美一区二区啪啪| 欧美日韩国产一区| 色综合一区二区三区| 岛国精品在线播放| 韩国一区二区三区| 捆绑调教一区二区三区| 亚洲gay无套男同| 一区二区三区免费观看| 日韩理论片中文av| 亚洲国产精品成人综合 | 丝袜亚洲另类欧美| 亚洲一区欧美一区| 亚洲一区二区三区中文字幕在线| 亚洲婷婷在线视频| 亚洲三级电影网站| 中文字幕一区二区在线播放| 日本一区二区动态图| 久久久久国产精品人| 国产亚洲短视频| 国产亚洲一区二区三区在线观看| 精品国产乱码久久久久久1区2区| 日韩欧美一级二级三级| 日韩免费看的电影| 日韩欧美中文一区二区| 日韩你懂的电影在线观看| 日韩精品中文字幕一区| 精品毛片乱码1区2区3区| 精品欧美乱码久久久久久1区2区| 日韩欧美一级二级三级久久久| 精品免费一区二区三区| 久久久亚洲欧洲日产国码αv| 精品日韩一区二区三区| 久久看人人爽人人| 国产精品视频一二三区| 亚洲欧美日韩在线| 五月激情丁香一区二区三区| 欧美aaa在线| 国产乱码字幕精品高清av| 成人手机电影网| 色婷婷亚洲一区二区三区| 欧美午夜免费电影| 欧美一级精品大片| 欧美国产视频在线| 亚洲综合久久久久| 韩国av一区二区三区四区 | 欧美日韩精品福利| 欧美一级生活片| 欧美国产激情一区二区三区蜜月| 亚洲日本va午夜在线影院| 亚洲国产精品综合小说图片区| 日韩精品国产精品| 国产成人在线视频网址| 91豆麻精品91久久久久久| 欧美一级片在线观看| 中文字幕精品一区| 亚洲午夜三级在线| 国产成人欧美日韩在线电影| 欧美在线观看一区| 精品福利在线导航| 亚洲免费观看高清完整版在线观看熊 | 国产一区在线视频| 在线亚洲+欧美+日本专区| 日韩欧美aaaaaa| 午夜精品视频在线观看| 国产福利一区二区三区视频| 欧美亚日韩国产aⅴ精品中极品| 精品成a人在线观看| 亚洲黄色免费网站| 国产不卡在线播放| 717成人午夜免费福利电影| 国产精品久线观看视频| 久久99国产精品尤物| 在线一区二区三区做爰视频网站| 亚洲精品在线免费播放| 曰韩精品一区二区| 国产成人免费视频网站高清观看视频| 欧美日韩在线电影| 国产精品国产三级国产普通话三级| 天天综合网 天天综合色| 91啪亚洲精品| 亚洲国产成人自拍| 国模娜娜一区二区三区| 337p亚洲精品色噜噜| 一区二区三区日韩精品| 国产成人精品免费看| 日韩亚洲欧美成人一区| 午夜精品久久久久久不卡8050 | 国产综合色视频| 欧美日韩国产小视频| 亚洲一区二区在线视频| av色综合久久天堂av综合| 国产欧美视频在线观看| 国产一区欧美日韩| 精品裸体舞一区二区三区| 看国产成人h片视频| 欧美一区二区在线免费播放| 亚洲成人久久影院| 欧美老女人第四色| 午夜精品国产更新| 欧美日韩国产首页| 轻轻草成人在线|