1 # Makefile for PuTTY. Use `FWHACK=/DFWHACK' to cause the firewall hack
2 # to be built in. (requires rebuild of ssh.obj only)
4 CFLAGS
= /nologo
/W3
/YX
/O2
/Yd
/D_X86_
/D_WINDOWS
/DDEBUG
/ML
/Fd
7 cl
$(FWHACK
) $(CFLAGS
) /c
$*.c
9 OBJS1
= window.obj windlg.obj terminal.obj telnet.obj misc.obj noise.obj
10 OBJS2
= ssh.obj sshcrc.obj sshdes.obj sshmd5.obj sshrsa.obj sshrand.obj
13 LIBS1
= advapi32.lib user32.lib gdi32.lib
14 LIBS2
= wsock32.lib comctl32.lib comdlg32.lib
16 putty.exe
: $(OBJS1
) $(OBJS2
) $(OBJS3
) $(RESRC
) link.rsp
17 link
/debug
-out
:putty.exe @link.rsp
19 puttyd.exe
: $(OBJS1
) $(OBJS2
) $(OBJS3
) $(RESRC
) link.rsp
20 link
/debug
-out
:puttyd.exe @link.rsp
23 echo
/nologo
/subsystem
:windows
> link.rsp
24 echo
$(OBJS1
) >> link.rsp
25 echo
$(OBJS2
) >> link.rsp
26 echo
$(OBJS3
) >> link.rsp
27 echo
$(RESRC
) >> link.rsp
28 echo
$(LIBS1
) >> link.rsp
29 echo
$(LIBS2
) >> link.rsp
31 window.obj
: window.c putty.h win_res.h
32 windlg.obj
: windlg.c putty.h ssh.h win_res.h
33 terminal.obj
: terminal.c putty.h
34 telnet.obj
: telnet.c putty.h
35 misc.obj
: misc.c putty.h
36 noise.obj
: noise.c putty.h ssh.h
37 ssh.obj
: ssh.c ssh.h putty.h
38 sshcrc.obj
: sshcrc.c ssh.h
39 sshdes.obj
: sshdes.c ssh.h
40 sshmd5.obj
: sshmd5.c ssh.h
41 sshrsa.obj
: sshrsa.c ssh.h
42 sshsha.obj
: sshsha.c ssh.h
43 sshrand.obj
: sshrand.c ssh.h
45 win_res.res
: win_res.rc win_res.h putty.ico
46 rc
$(FWHACK
) -r win_res.rc