⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.cyg

📁 putty
💻 CYG
📖 第 1 页 / 共 4 页
字号:
# Makefile for putty under cygwin.
#
# 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:
#
#  - VER="-DSNAPSHOT=1999-01-25 -DSVN_REV=1234"
#      Generates executables whose About box report them as being a
#      development snapshot. SVN_REV is a Subversion revision number.
#
#  - VER=-DRELEASE=0.43
#      Generates executables whose About box report them as being a
#      release version.
#
#  - COMPAT=-DAUTO_WINSOCK (Windows only)
#      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 (Windows only)
#      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 (Windows only)
#      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 (Windows only)
#      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=-DNO_HTMLHELP (Windows only)
#      Disables PuTTY's use of <htmlhelp.h>, which is not available
#      with some development environments. The resulting binary
#      will only look for an old-style WinHelp file (.HLP/.CNT), and
#      will ignore any .CHM file.
#
#      Note that this definition is always enabled in the Cygwin
#      build, since at the time of writing this <htmlhelp.h> is
#      known not to be available in Cygwin (although you can use
#      the htmlhelp.h supplied with HTML Help Workshop).
#
#  - RCFL=-DNO_MANIFESTS (Windows only)
#      Disables inclusion of XML application manifests in the PuTTY
#      binaries. This may be necessary to build for 64-bit Windows;
#      the manifests are only included to use the XP GUI style on
#      Windows XP, and the architecture tags are a lie on 64-bit.
#
#  - COMPAT=-DNO_IPV6
#      Disables PuTTY's ability to make IPv6 connections, enabling
#      it to compile under development environments which do not
#      support IPv6 in their header files.
#
#  - COMPAT=-DMSVC4 (Windows only)
#  - 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 (Windows only)
#      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 (Windows only)
#      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.
#

# You can define this path to point at your tools if you need to
# TOOLPATH = c:\cygwin\bin\ # or similar, if you're running Windows
# TOOLPATH = /pkg/mingw32msvc/i386-mingw32msvc/bin/
CC = $(TOOLPATH)gcc
RC = $(TOOLPATH)windres
# Uncomment the following two lines to compile under Winelib
# CC = winegcc
# RC = wrc
# You may also need to tell windres where to find include files:
# RCINC = --include-dir c:\cygwin\include\

CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT \
		-D_NO_OLDNAMES -DNO_MULTIMON -DNO_HTMLHELP -I.././ \
		-I../charset/ -I../windows/ -I../unix/ -I../mac/ \
		-I../macosx/
LDFLAGS = -mno-cygwin -s
RCFLAGS = $(RCINC) --define WIN32=1 --define _WIN32=1 --define WINVER=0x0400

# XXX GNU-ism, but it's probably all right for a Cygwin/MinGW Makefile.
RCFLAGS += $(patsubst -D%,--define %,$(VER))
# _WIN32_IE is required to expose identifiers that only make sense on
# systems with IE5+ installed, such as some arguments to SHGetFolderPath().
# WINVER etc perform a similar function for FlashWindowEx().
CFLAGS += -D_WIN32_IE=0x0500
CFLAGS += -DWINVER=0x0500 -D_WIN32_WINDOWS=0x0410 -D_WIN32_WINNT=0x0500

.SUFFIXES:

all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \
		puttytel.exe

pageant.exe: misc.o pageant.res.o sshaes.o sshbn.o sshdes.o sshdss.o \
		sshmd5.o sshpubk.o sshrsa.o sshsh512.o sshsha.o tree234.o \
		version.o winhelp.o winmisc.o winpgnt.o winpgntc.o \
		winutils.o
	$(CC) -mwindows $(LDFLAGS) -o $@ -Wl,-Map,pageant.map misc.o \
		pageant.res.o sshaes.o sshbn.o sshdes.o sshdss.o sshmd5.o \
		sshpubk.o sshrsa.o sshsh512.o sshsha.o tree234.o version.o \
		winhelp.o winmisc.o winpgnt.o winpgntc.o winutils.o \
		-ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -limm32 -lshell32 \
		-luser32 -lwinmm -lwinspool

plink.exe: be_all_s.o cmdline.o cproxy.o ldisc.o logging.o misc.o pinger.o \
		plink.res.o portfwd.o proxy.o raw.o rlogin.o settings.o \
		ssh.o sshaes.o ssharcf.o sshblowf.o sshbn.o sshcrc.o \
		sshcrcda.o sshdes.o sshdh.o sshdss.o sshmd5.o sshpubk.o \
		sshrand.o sshrsa.o sshsh256.o sshsh512.o sshsha.o sshzlib.o \
		telnet.o timing.o tree234.o version.o wildcard.o wincons.o \
		windefs.o winhandl.o winmisc.o winnet.o winnoise.o \
		winpgntc.o winplink.o winproxy.o winser.o winstore.o \
		wintime.o x11fwd.o
	$(CC) $(LDFLAGS) -o $@ -Wl,-Map,plink.map be_all_s.o cmdline.o \
		cproxy.o ldisc.o logging.o misc.o pinger.o plink.res.o \
		portfwd.o proxy.o raw.o rlogin.o settings.o ssh.o sshaes.o \
		ssharcf.o sshblowf.o sshbn.o sshcrc.o sshcrcda.o sshdes.o \
		sshdh.o sshdss.o sshmd5.o sshpubk.o sshrand.o sshrsa.o \
		sshsh256.o sshsh512.o sshsha.o sshzlib.o telnet.o timing.o \
		tree234.o version.o wildcard.o wincons.o windefs.o \
		winhandl.o winmisc.o winnet.o winnoise.o winpgntc.o \
		winplink.o winproxy.o winser.o winstore.o wintime.o x11fwd.o \
		-ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -limm32 -lshell32 \
		-luser32 -lwinmm -lwinspool

pscp.exe: be_none.o cmdline.o cproxy.o int64.o logging.o misc.o pinger.o \
		portfwd.o proxy.o pscp.o pscp.res.o settings.o sftp.o ssh.o \
		sshaes.o ssharcf.o sshblowf.o sshbn.o sshcrc.o sshcrcda.o \
		sshdes.o sshdh.o sshdss.o sshmd5.o sshpubk.o sshrand.o \
		sshrsa.o sshsh256.o sshsh512.o sshsha.o sshzlib.o timing.o \
		tree234.o version.o wildcard.o wincons.o windefs.o \
		winhandl.o winmisc.o winnet.o winnoise.o winpgntc.o \
		winproxy.o winsftp.o winstore.o wintime.o x11fwd.o
	$(CC) $(LDFLAGS) -o $@ -Wl,-Map,pscp.map be_none.o cmdline.o \
		cproxy.o int64.o logging.o misc.o pinger.o portfwd.o proxy.o \
		pscp.o pscp.res.o settings.o sftp.o ssh.o sshaes.o ssharcf.o \
		sshblowf.o sshbn.o sshcrc.o sshcrcda.o sshdes.o sshdh.o \
		sshdss.o sshmd5.o sshpubk.o sshrand.o sshrsa.o sshsh256.o \
		sshsh512.o sshsha.o sshzlib.o timing.o tree234.o version.o \
		wildcard.o wincons.o windefs.o winhandl.o winmisc.o winnet.o \
		winnoise.o winpgntc.o winproxy.o winsftp.o winstore.o \
		wintime.o x11fwd.o -ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 \
		-limm32 -lshell32 -luser32 -lwinmm -lwinspool

psftp.exe: be_none.o cmdline.o cproxy.o int64.o logging.o misc.o pinger.o \
		portfwd.o proxy.o psftp.o psftp.res.o settings.o sftp.o \
		ssh.o sshaes.o ssharcf.o sshblowf.o sshbn.o sshcrc.o \
		sshcrcda.o sshdes.o sshdh.o sshdss.o sshmd5.o sshpubk.o \
		sshrand.o sshrsa.o sshsh256.o sshsh512.o sshsha.o sshzlib.o \
		timing.o tree234.o version.o wildcard.o wincons.o windefs.o \
		winhandl.o winmisc.o winnet.o winnoise.o winpgntc.o \
		winproxy.o winsftp.o winstore.o wintime.o x11fwd.o
	$(CC) $(LDFLAGS) -o $@ -Wl,-Map,psftp.map be_none.o cmdline.o \
		cproxy.o int64.o logging.o misc.o pinger.o portfwd.o proxy.o \
		psftp.o psftp.res.o settings.o sftp.o ssh.o sshaes.o \
		ssharcf.o sshblowf.o sshbn.o sshcrc.o sshcrcda.o sshdes.o \
		sshdh.o sshdss.o sshmd5.o sshpubk.o sshrand.o sshrsa.o \
		sshsh256.o sshsh512.o sshsha.o sshzlib.o timing.o tree234.o \
		version.o wildcard.o wincons.o windefs.o winhandl.o \
		winmisc.o winnet.o winnoise.o winpgntc.o winproxy.o \
		winsftp.o winstore.o wintime.o x11fwd.o -ladvapi32 \
		-lcomctl32 -lcomdlg32 -lgdi32 -limm32 -lshell32 -luser32 \
		-lwinmm -lwinspool

putty.exe: be_all_s.o cmdline.o config.o cproxy.o dialog.o ldisc.o \
		ldiscucs.o logging.o minibidi.o misc.o pinger.o portfwd.o \
		proxy.o putty.res.o raw.o rlogin.o sercfg.o settings.o \
		sizetip.o ssh.o sshaes.o ssharcf.o sshblowf.o sshbn.o \
		sshcrc.o sshcrcda.o sshdes.o sshdh.o sshdss.o sshmd5.o \
		sshpubk.o sshrand.o sshrsa.o sshsh256.o sshsh512.o sshsha.o \
		sshzlib.o telnet.o terminal.o timing.o tree234.o version.o \
		wcwidth.o wildcard.o wincfg.o winctrls.o windefs.o windlg.o \
		window.o winhandl.o winhelp.o winmisc.o winnet.o winnoise.o \
		winpgntc.o winprint.o winproxy.o winser.o winstore.o \
		wintime.o winucs.o winutils.o x11fwd.o
	$(CC) -mwindows $(LDFLAGS) -o $@ -Wl,-Map,putty.map be_all_s.o \
		cmdline.o config.o cproxy.o dialog.o ldisc.o ldiscucs.o \
		logging.o minibidi.o misc.o pinger.o portfwd.o proxy.o \
		putty.res.o raw.o rlogin.o sercfg.o settings.o sizetip.o \
		ssh.o sshaes.o ssharcf.o sshblowf.o sshbn.o sshcrc.o \
		sshcrcda.o sshdes.o sshdh.o sshdss.o sshmd5.o sshpubk.o \
		sshrand.o sshrsa.o sshsh256.o sshsh512.o sshsha.o sshzlib.o \
		telnet.o terminal.o timing.o tree234.o version.o wcwidth.o \
		wildcard.o wincfg.o winctrls.o windefs.o windlg.o window.o \
		winhandl.o winhelp.o winmisc.o winnet.o winnoise.o \
		winpgntc.o winprint.o winproxy.o winser.o winstore.o \
		wintime.o winucs.o winutils.o x11fwd.o -ladvapi32 -lcomctl32 \
		-lcomdlg32 -lgdi32 -limm32 -lshell32 -luser32 -lwinmm \
		-lwinspool

puttygen.exe: import.o misc.o notiming.o puttygen.res.o sshaes.o sshbn.o \
		sshdes.o sshdss.o sshdssg.o sshmd5.o sshprime.o sshpubk.o \
		sshrand.o sshrsa.o sshrsag.o sshsh512.o sshsha.o tree234.o \
		version.o winctrls.o winhelp.o winmisc.o winnoise.o \
		winpgen.o winstore.o wintime.o winutils.o
	$(CC) -mwindows $(LDFLAGS) -o $@ -Wl,-Map,puttygen.map import.o \
		misc.o notiming.o puttygen.res.o sshaes.o sshbn.o sshdes.o \
		sshdss.o sshdssg.o sshmd5.o sshprime.o sshpubk.o sshrand.o \
		sshrsa.o sshrsag.o sshsh512.o sshsha.o tree234.o version.o \
		winctrls.o winhelp.o winmisc.o winnoise.o winpgen.o \
		winstore.o wintime.o winutils.o -ladvapi32 -lcomctl32 \
		-lcomdlg32 -lgdi32 -limm32 -lshell32 -luser32 -lwinmm \
		-lwinspool

puttytel.exe: be_nos_s.o cmdline.o config.o dialog.o ldisc.o ldiscucs.o \
		logging.o minibidi.o misc.o nocproxy.o pinger.o proxy.o \
		puttytel.res.o raw.o rlogin.o sercfg.o settings.o sizetip.o \
		telnet.o terminal.o timing.o tree234.o version.o wcwidth.o \
		wincfg.o winctrls.o windefs.o windlg.o window.o winhandl.o \
		winhelp.o winmisc.o winnet.o winprint.o winproxy.o winser.o \
		winstore.o wintime.o winucs.o winutils.o
	$(CC) -mwindows $(LDFLAGS) -o $@ -Wl,-Map,puttytel.map be_nos_s.o \
		cmdline.o config.o dialog.o ldisc.o ldiscucs.o logging.o \
		minibidi.o misc.o nocproxy.o pinger.o proxy.o puttytel.res.o \
		raw.o rlogin.o sercfg.o settings.o sizetip.o telnet.o \
		terminal.o timing.o tree234.o version.o wcwidth.o wincfg.o \
		winctrls.o windefs.o windlg.o window.o winhandl.o winhelp.o \
		winmisc.o winnet.o winprint.o winproxy.o winser.o winstore.o \
		wintime.o winucs.o winutils.o -ladvapi32 -lcomctl32 \
		-lcomdlg32 -lgdi32 -limm32 -lshell32 -luser32 -lwinmm \
		-lwinspool

be_all.o: ../be_all.c ../putty.h ../puttyps.h ../network.h ../misc.h \
		../windows/winstuff.h ../mac/macstuff.h ../macosx/osx.h \
		../unix/unix.h ../puttymem.h ../tree234.h \
		../windows/winhelp.h ../charset/charset.h
	$(CC) $(COMPAT) $(CFLAGS) $(XFLAGS) -c ../be_all.c

be_all_s.o: ../be_all_s.c ../putty.h ../puttyps.h ../network.h ../misc.h \
		../windows/winstuff.h ../mac/macstuff.h ../macosx/osx.h \
		../unix/unix.h ../puttymem.h ../tree234.h \
		../windows/winhelp.h ../charset/charset.h
	$(CC) $(COMPAT) $(CFLAGS) $(XFLAGS) -c ../be_all_s.c

be_none.o: ../be_none.c ../putty.h ../puttyps.h ../network.h ../misc.h \
		../windows/winstuff.h ../mac/macstuff.h ../macosx/osx.h \
		../unix/unix.h ../puttymem.h ../tree234.h \
		../windows/winhelp.h ../charset/charset.h
	$(CC) $(COMPAT) $(CFLAGS) $(XFLAGS) -c ../be_none.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -