X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/825794ab82e6eb36365fac6bdb0095baa91d2a45..c51a56e2f86b1ab9c803453186e5e21697554c06:/Makefile diff --git a/Makefile b/Makefile index ba22b187..06765573 100644 --- a/Makefile +++ b/Makefile @@ -5,18 +5,26 @@ # `VER=/DRELEASE=0.43' to get version numbering; otherwise you'll # get `Unidentified build'. +# COMPAT=/DWIN32S_COMPAT will produce a binary that works (minimally) +# with Win32s + CFLAGS = /nologo /W3 /YX /O2 /Yd /D_WINDOWS /DDEBUG /ML /Fd .c.obj: - cl $(FWHACK) $(CFLAGS) /c $*.c + cl $(COMPAT) $(FWHACK) $(CFLAGS) /c $*.c -PUTTYOBJS = window.obj windlg.obj terminal.obj telnet.obj +PUTTYOBJS = window.obj windlg.obj terminal.obj telnet.obj raw.obj xlat.obj OBJS1 = misc.obj noise.obj OBJS2 = ssh.obj sshcrc.obj sshdes.obj sshmd5.obj sshrsa.obj sshrand.obj -OBJS3 = sshsha.obj version.obj +OBJS3 = sshsha.obj sshblowf.obj version.obj sizetip.obj RESRC = win_res.res LIBS1 = advapi32.lib user32.lib gdi32.lib -LIBS2 = ws2_32.lib comctl32.lib comdlg32.lib +LIBS2 = wsock32.lib comctl32.lib comdlg32.lib +SCPOBJS = scp.obj windlg.obj misc.obj noise.obj +SCPOBJS2 = scpssh.obj sshcrc.obj sshdes.obj sshmd5.obj +SCPOBJS3 = sshrsa.obj sshrand.obj sshsha.obj sshblowf.obj version.obj + +all: putty.exe pscp.exe putty.exe: $(PUTTYOBJS) $(OBJS1) $(OBJS2) $(OBJS3) $(RESRC) link.rsp link /debug -out:putty.exe @link.rsp @@ -34,10 +42,13 @@ link.rsp: makefile echo $(LIBS1) >> link.rsp echo $(LIBS2) >> link.rsp -window.obj: window.c putty.h win_res.h +window.obj: window.c putty.h win_res.h sizetip.h windlg.obj: windlg.c putty.h ssh.h win_res.h terminal.obj: terminal.c putty.h +sizetip.obj: sizetip.c putty.h telnet.obj: telnet.c putty.h +raw.obj: raw.c putty.h +xlat.obj: xlat.c putty.h misc.obj: misc.c putty.h noise.obj: noise.c putty.h ssh.h ssh.obj: ssh.c ssh.h putty.h @@ -47,8 +58,9 @@ sshmd5.obj: sshmd5.c ssh.h sshrsa.obj: sshrsa.c ssh.h sshsha.obj: sshsha.c ssh.h sshrand.obj: sshrand.c ssh.h +sshblowf.obj: sshblowf.c ssh.h version.obj: versionpseudotarget - cl $(FWHACK) $(VER) $(CFLAGS) /c version.c + @echo (built version.obj) # Hack to force version.obj to be rebuilt always versionpseudotarget: @@ -57,6 +69,24 @@ versionpseudotarget: win_res.res: win_res.rc win_res.h putty.ico rc $(FWHACK) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc +pscp.exe: $(SCPOBJS) $(SCPOBJS2) $(SCPOBJS3) scp.res scp.rsp + link /debug -out:pscp.exe @scp.rsp + +scp.rsp: makefile + echo /nologo /subsystem:console > scp.rsp + echo $(SCPOBJS) >> scp.rsp + echo $(SCPOBJS2) >> scp.rsp + echo $(SCPOBJS3) >> scp.rsp + echo scp.res >> scp.rsp + echo $(LIBS1) >> scp.rsp + echo $(LIBS2) >> scp.rsp + +scp.obj: scp.c putty.h scp.h +scpssh.obj: scpssh.c putty.h ssh.h scp.h + +scp.res: scp.rc scp.ico + rc -r -DWIN32 -D_WIN32 -DWINVER=0x0400 scp.rc + clean: del *.obj del *.exe