374330e2 |
1 | # Makefile for PuTTY. Use `FWHACK=/DFWHACK' to cause the firewall hack |
2 | # to be built in. (requires rebuild of ssh.obj only) |
3 | |
5f48a59c |
4 | CFLAGS = /nologo /W3 /YX /O2 /Yd /D_WINDOWS /DDEBUG /ML /Fd |
374330e2 |
5 | |
6 | .c.obj: |
7 | cl $(FWHACK) $(CFLAGS) /c $*.c |
8 | |
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 |
11 | OBJS3 = sshsha.obj |
12 | RESRC = win_res.res |
13 | LIBS1 = advapi32.lib user32.lib gdi32.lib |
14 | LIBS2 = wsock32.lib comctl32.lib comdlg32.lib |
15 | |
16 | putty.exe: $(OBJS1) $(OBJS2) $(OBJS3) $(RESRC) link.rsp |
17 | link /debug -out:putty.exe @link.rsp |
18 | |
19 | puttyd.exe: $(OBJS1) $(OBJS2) $(OBJS3) $(RESRC) link.rsp |
20 | link /debug -out:puttyd.exe @link.rsp |
21 | |
22 | link.rsp: makefile |
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 |
30 | |
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 |
44 | |
45 | win_res.res: win_res.rc win_res.h putty.ico |
46 | rc $(FWHACK) -r win_res.rc |
47 | |
48 | clean: |
49 | del *.obj |
50 | del *.exe |
51 | del *.res |
52 | del *.pch |
53 | del *.aps |
54 | del *.ilk |
55 | del *.pdb |
56 | del link.rsp |