📄 makefile
字号:
# "make install" will install the binaries to $(TOPDIR)/target.# you should copy the binaries to your target directory yourself.#TOPDIR = $(shell pwd)version = 0.12.20mirrorlist = http://www.ohse.de/uwe/releases ftp://dev.dgstation.co.kr/pub/common/downloads/mirrorhost ?= powerpc-405-linux-gnucross ?= powerpc-405-linux-gnu-target_prefix ?= $(TOPDIR)/flash_target# configure and build.PHONY: all clean distcleanall: .buildclean: rm -Rf lrzsz-$(version) rm -f .configure .build .installdistclean: clean rm -f lrzsz-$(version).tar.gz rm -Rf $(TOPDIR)/targetbuild: .buildinstall: .install.configure: lrzsz-$(version) ( cd lrzsz-$(version) && CC=$(cross)gcc ./configure --prefix=$(TOPDIR)/target --host=$(host) --target=$(host); ) touch $@.build: .configure make -C lrzsz-$(version) touch $@.install: .build make -C lrzsz-$(version) install $(cross)strip target/bin/lrz $(cross)strip target/bin/lsz touch $@install2target: .install if ! [[ -d $(target_prefix)/bin ]]; then \ mkdir -p $(target_prefix)/bin; \ fi for file in lrz lsz; do \ cp $(TOPDIR)/target/bin/$${file} $(target_prefix)/bin || exit 1; \ done; ( cd $(target_prefix)/bin && ln -s lrz rz && ln -s lsz sz; )# get and unpack.lrzsz-$(version).tar.gz: for mirror in $(mirrorlist); do \ wget $$mirror/lrzsz-$(version).tar.gz && exit 0; \ donelrzsz-$(version): lrzsz-$(version).tar.gz tar zxf $<
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -