📄 makefile.vc
字号:
# Makefile for putty under Visual C.
#
# This file was created by `mkfiles.pl' from the `Recipe' file.
# DO NOT EDIT THIS FILE DIRECTLY; edit Recipe or mkfiles.pl instead.
#
# Extra options you can set:
#
# - FWHACK=/DFWHACK
# Enables a hack that tunnels through some firewall proxies.
#
# - VER=/DSNAPSHOT=1999-01-25
# Generates executables whose About box report them as being a
# development snapshot.
#
# - VER=/DRELEASE=0.43
# Generates executables whose About box report them as being a
# release version.
#
# - COMPAT=/DAUTO_WINSOCK
# Causes PuTTY to assume that <windows.h> includes its own WinSock
# header file, so that it won't try to include <winsock.h>.
#
# - COMPAT=/DWINSOCK_TWO
# Causes the PuTTY utilities to include <winsock2.h> instead of
# <winsock.h>, except Plink which _needs_ WinSock 2 so it already
# does this.
#
# - COMPAT=/DNO_SECURITY
# Disables Pageant's use of <aclapi.h>, which is not available
# with some development environments (such as older versions of
# the Cygwin/mingw GNU toolchain). This means that Pageant
# won't care about the local user ID of processes accessing it; a
# version of Pageant built with this option will therefore refuse
# to run under NT-series OSes on security grounds (although it
# will run fine on Win95-series OSes where there is no access
# control anyway).
#
# - COMPAT=/DNO_MULTIMON
# Disables PuTTY's use of <multimon.h>, which is not available
# with some development environments. This means that PuTTY's
# full-screen mode (configurable to work on Alt-Enter) will
# not behave usefully in a multi-monitor environment.
#
# Note that this definition is always enabled in the Cygwin
# build, since at the time of writing this <multimon.h> is
# known not to be available in Cygwin.
#
# - COMPAT=/DMSVC4
# - RCFL=/DMSVC4
# Makes a couple of minor changes so that PuTTY compiles using
# MSVC 4. You will also need /DNO_SECURITY and /DNO_MULTIMON.
#
# - RCFL=/DASCIICTLS
# Uses ASCII rather than Unicode to specify the tab control in
# the resource file. Probably most useful when compiling with
# Cygnus/mingw32, whose resource compiler may have less of a
# problem with it.
#
# - XFLAGS=/DTELNET_DEFAULT
# Causes PuTTY to default to the Telnet protocol (in the absence
# of Default Settings and so on to the contrary). Normally PuTTY
# will default to SSH.
#
# - XFLAGS=/DDEBUG
# Causes PuTTY to enable internal debugging.
#
# - XFLAGS=/DMALLOC_LOG
# Causes PuTTY to emit a file called putty_mem.log, logging every
# memory allocation and free, so you can track memory leaks.
#
# - XFLAGS=/DMINEFIELD
# Causes PuTTY to use a custom memory allocator, similar in
# concept to Electric Fence, in place of regular malloc(). Wastes
# huge amounts of RAM, but should cause heap-corruption bugs to
# show up as GPFs at the point of failure rather than appearing
# later on as second-level damage.
#
# If you rename this file to `Makefile', you should change this line,
# so that the .rsp files still depend on the correct makefile.
MAKEFILE = Makefile.vc
# C compilation flags
CFLAGS = /nologo /W3 /O1 /D_WINDOWS /D_WIN32_WINDOWS=0x401 /DWINVER=0x401
LFLAGS = /incremental:no /fixed
.c.obj:
cl $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) /c $*.c
.rc.res:
rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 $*.rc
all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \
puttytel.exe
pageant.exe: misc.obj pageant.obj pageant.res pageantc.obj sshaes.obj \
sshbn.obj sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj \
sshrsa.obj sshsh512.obj sshsha.obj tree234.obj version.obj \
winmisc.obj winutils.obj pageant.rsp
link $(LFLAGS) -out:pageant.exe -map:pageant.map @pageant.rsp
plink.exe: be_all.obj cmdline.obj console.obj ldisc.obj logging.obj misc.obj \
noise.obj pageantc.obj plink.obj plink.res portfwd.obj \
pproxy.obj proxy.obj raw.obj rlogin.obj settings.obj ssh.obj \
sshaes.obj sshblowf.obj sshbn.obj sshcrc.obj sshcrcda.obj \
sshdes.obj sshdh.obj sshdss.obj sshmd5.obj sshpubk.obj \
sshrand.obj sshrsa.obj sshsh512.obj sshsha.obj sshzlib.obj \
telnet.obj tree234.obj version.obj wildcard.obj windefs.obj \
winmisc.obj winnet.obj winstore.obj x11fwd.obj plink.rsp
link $(LFLAGS) -out:plink.exe -map:plink.map @plink.rsp
pscp.exe: be_none.obj cmdline.obj console.obj int64.obj logging.obj misc.obj \
noise.obj pageantc.obj portfwd.obj pproxy.obj proxy.obj \
scp.obj scp.res settings.obj sftp.obj ssh.obj sshaes.obj \
sshblowf.obj sshbn.obj sshcrc.obj sshcrcda.obj sshdes.obj \
sshdh.obj sshdss.obj sshmd5.obj sshpubk.obj sshrand.obj \
sshrsa.obj sshsh512.obj sshsha.obj sshzlib.obj tree234.obj \
version.obj wildcard.obj windefs.obj winmisc.obj winnet.obj \
winsftp.obj winstore.obj x11fwd.obj pscp.rsp
link $(LFLAGS) -out:pscp.exe -map:pscp.map @pscp.rsp
psftp.exe: be_none.obj cmdline.obj console.obj int64.obj logging.obj \
misc.obj noise.obj pageantc.obj portfwd.obj pproxy.obj \
proxy.obj psftp.obj scp.res settings.obj sftp.obj ssh.obj \
sshaes.obj sshblowf.obj sshbn.obj sshcrc.obj sshcrcda.obj \
sshdes.obj sshdh.obj sshdss.obj sshmd5.obj sshpubk.obj \
sshrand.obj sshrsa.obj sshsh512.obj sshsha.obj sshzlib.obj \
tree234.obj version.obj wildcard.obj windefs.obj winmisc.obj \
winnet.obj winsftp.obj winstore.obj x11fwd.obj psftp.rsp
link $(LFLAGS) -out:psftp.exe -map:psftp.map @psftp.rsp
putty.exe: be_all.obj cmdline.obj config.obj dialog.obj ldisc.obj \
ldiscucs.obj logging.obj misc.obj noise.obj pageantc.obj \
portfwd.obj pproxy.obj printing.obj proxy.obj raw.obj \
rlogin.obj settings.obj sizetip.obj ssh.obj sshaes.obj \
sshblowf.obj sshbn.obj sshcrc.obj sshcrcda.obj sshdes.obj \
sshdh.obj sshdss.obj sshmd5.obj sshpubk.obj sshrand.obj \
sshrsa.obj sshsh512.obj sshsha.obj sshzlib.obj telnet.obj \
terminal.obj tree234.obj unicode.obj version.obj wcwidth.obj \
wildcard.obj win_res.res wincfg.obj winctrls.obj windefs.obj \
windlg.obj window.obj winmisc.obj winnet.obj winstore.obj \
winutils.obj x11fwd.obj putty.rsp
link $(LFLAGS) -out:putty.exe -map:putty.map @putty.rsp
puttygen.exe: import.obj misc.obj noise.obj puttygen.obj puttygen.res \
sshaes.obj sshbn.obj sshdes.obj sshdss.obj sshdssg.obj \
sshmd5.obj sshprime.obj sshpubk.obj sshrand.obj sshrsa.obj \
sshrsag.obj sshsh512.obj sshsha.obj tree234.obj version.obj \
winctrls.obj winmisc.obj winstore.obj winutils.obj \
puttygen.rsp
link $(LFLAGS) -out:puttygen.exe -map:puttygen.map @puttygen.rsp
puttytel.exe: be_nossh.obj cmdline.obj config.obj dialog.obj ldisc.obj \
ldiscucs.obj logging.obj misc.obj pproxy.obj printing.obj \
proxy.obj raw.obj rlogin.obj settings.obj sizetip.obj \
telnet.obj terminal.obj tree234.obj unicode.obj version.obj \
wcwidth.obj win_res.res wincfg.obj winctrls.obj windefs.obj \
windlg.obj window.obj winmisc.obj winnet.obj winstore.obj \
winutils.obj puttytel.rsp
link $(LFLAGS) -out:puttytel.exe -map:puttytel.map @puttytel.rsp
pageant.rsp: $(MAKEFILE)
echo /nologo /subsystem:windows > pageant.rsp
echo advapi32.lib comctl32.lib comdlg32.lib gdi32.lib >> pageant.rsp
echo imm32.lib misc.obj pageant.obj pageant.res >> pageant.rsp
echo pageantc.obj shell32.lib sshaes.obj sshbn.obj >> pageant.rsp
echo sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj >> pageant.rsp
echo sshrsa.obj sshsh512.obj sshsha.obj tree234.obj >> pageant.rsp
echo user32.lib version.obj winmisc.obj winmm.lib >> pageant.rsp
echo winspool.lib winutils.obj >> pageant.rsp
plink.rsp: $(MAKEFILE)
echo /nologo /subsystem:console > plink.rsp
echo advapi32.lib be_all.obj cmdline.obj comctl32.lib >> plink.rsp
echo comdlg32.lib console.obj gdi32.lib imm32.lib >> plink.rsp
echo ldisc.obj logging.obj misc.obj noise.obj >> plink.rsp
echo pageantc.obj plink.obj plink.res portfwd.obj >> plink.rsp
echo pproxy.obj proxy.obj raw.obj rlogin.obj >> plink.rsp
echo settings.obj shell32.lib ssh.obj sshaes.obj >> plink.rsp
echo sshblowf.obj sshbn.obj sshcrc.obj sshcrcda.obj >> plink.rsp
echo sshdes.obj sshdh.obj sshdss.obj sshmd5.obj >> plink.rsp
echo sshpubk.obj sshrand.obj sshrsa.obj sshsh512.obj >> plink.rsp
echo sshsha.obj sshzlib.obj telnet.obj tree234.obj >> plink.rsp
echo user32.lib version.obj wildcard.obj windefs.obj >> plink.rsp
echo winmisc.obj winmm.lib winnet.obj winspool.lib >> plink.rsp
echo winstore.obj x11fwd.obj >> plink.rsp
pscp.rsp: $(MAKEFILE)
echo /nologo /subsystem:console > pscp.rsp
echo advapi32.lib be_none.obj cmdline.obj comctl32.lib >> pscp.rsp
echo comdlg32.lib console.obj gdi32.lib imm32.lib >> pscp.rsp
echo int64.obj logging.obj misc.obj noise.obj >> pscp.rsp
echo pageantc.obj portfwd.obj pproxy.obj proxy.obj >> pscp.rsp
echo scp.obj scp.res settings.obj sftp.obj shell32.lib >> pscp.rsp
echo ssh.obj sshaes.obj sshblowf.obj sshbn.obj >> pscp.rsp
echo sshcrc.obj sshcrcda.obj sshdes.obj sshdh.obj >> pscp.rsp
echo sshdss.obj sshmd5.obj sshpubk.obj sshrand.obj >> pscp.rsp
echo sshrsa.obj sshsh512.obj sshsha.obj sshzlib.obj >> pscp.rsp
echo tree234.obj user32.lib version.obj wildcard.obj >> pscp.rsp
echo windefs.obj winmisc.obj winmm.lib winnet.obj >> pscp.rsp
echo winsftp.obj winspool.lib winstore.obj x11fwd.obj >> pscp.rsp
psftp.rsp: $(MAKEFILE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -