📄 makefile
字号:
topdir = $(shell pwd)version = 1.9.18p8#mirrorlist = http://us4.samba.org/samba/ftp/old-versions/ http://us1.samba.org/samba/ftp/old-versions//mirrorlist = http://www.mirrorservice.org/sites/ftp.samba.org/old-versions/prefix = $(topdir)/targetcross ?= powerpc-405-linux-gnu-makeflags = BASEDIR=$(__PREFIX)/usr LIBDIR=$(__PREFIX)/etc VARDIR=$(__PREFIX)/var CODEPAGEDIR=$(__PREFIX)/usr/lib/codepages MANDIR=$(__PREFIX)/usr/man \ FLAGSM="-DLINUX -DFAST_SHARE_MODES" \ LIBSM="-lcrypt" \ CC=$(cross)gcc# configure and build.PHONY: all clean distclean install configureall: .buildinstall: .installconfigure: .configureclean: rm -f .install .build .configure .source rm -Rf samba-$(version)samba-$(version).tar.gz: for mirror in $(mirrorlist); do \ wget -t 3 $$mirror/$@ || { echo failed to get source file. change \"mirrorlist\" in Makefile and try again..; exit 1; } && exit 0; \ donesamba-$(version): samba-$(version).tar.gz tar zxf $< cd samba-1.9.18p8 && patch -p1 < ../samba-1.9.18p8.semun.patch.source: samba-$(version) touch $@.configure: .source touch $@.build: .configure __PREFIX="" $(MAKE) -C samba-$(version)/source $(makeflags) all $(cross)strip samba-$(version)/source/smbd $(cross)strip samba-$(version)/source/nmbd touch $@.install: .build if ! test -d $(prefix)/bin; then mkdir -p $(prefix)/bin; else true; fi cp samba-$(version)/source/smbd $(prefix)/bin/ cp samba-$(version)/source/nmbd $(prefix)/bin/#.install: .build# $(MAKE) __install __PREFIX=$(prefix)# touch $@##__install:# $(MAKE) -C samba-$(version)/source $(makeflags) install# install has not completed...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -