]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - Makefile.mpw
The "about" box now behaves approximately as it should (though we still don't
[PuTTY.git] / Makefile.mpw
index 842bf254a97ecab618992dff204b12583df91cce..4cee8db8a53f22ad7716cd7770a78cb6a2c2b3a6 100644 (file)
-# $Id: Makefile.mpw,v 1.1.2.1 1999/03/13 16:51:46 ben Exp $
+# $Id: Makefile.mpw,v 1.1.2.10 1999/04/02 12:56:57 ben Exp $
 # This is the Makefile for building PuTTY for the Mac OS.
 # Users of non-Mac systems will see some pretty strange characters around.
 
 MAKEFILE     = Makefile.mpw
-¥MondoBuild¥ = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
+¥MondoBuild¥ =  # Make blank to avoid rebuilds when makefile is modified
 Includes     =
-Sym¥68K      = 
-ObjDir¥68K   =
+Sym¥68K      =
+Sym¥PPC      = 
 
 COptions     = {Includes} {Sym¥68K} -proto strict -opt all
+# disable "unused parameter" warnings
+PPCCOptions  = {Includes} {Sym¥PPC} -w 35
 
 Objects¥68K  = ¶
-               "{ObjDir¥68K}mac.c.o" ¶
-               "{ObjDir¥68K}maccfg.c.o" ¶
-               "{ObjDir¥68K}macterm.c.o" ¶
-               "{ObjDir¥68K}misc.c.o" ¶
-#              "{ObjDir¥68K}ssh.c.o" ¶
-#              "{ObjDir¥68K}sshcrc.c.o" ¶
-#              "{ObjDir¥68K}sshdes.c.o" ¶
-#              "{ObjDir¥68K}sshmd5.c.o" ¶
-#              "{ObjDir¥68K}sshrand.c.o" ¶
-#              "{ObjDir¥68K}sshrsa.c.o" ¶
-#              "{ObjDir¥68K}sshsha.c.o" ¶
-#              "{ObjDir¥68K}telnet.c.o" ¶
-               "{ObjDir¥68K}terminal.c.o" ¶
-               "{ObjDir¥68K}testback.c.o"
-
-
-PuTTY ÄÄ {¥MondoBuild¥} {Objects¥68K}
-       Link ¶
-               -o {Targ} -d {Sym¥68K} ¶
-               {Objects¥68K} ¶
-               -t 'APPL' ¶
-               -c 'pTTY' ¶
-               #"{Libraries}MathLib.o" ¶
-               #"{CLibraries}Complex.o" ¶
-               "{CLibraries}StdCLib.o" ¶
+               mac.c.o ¶
+               maccfg.c.o ¶
+               macterm.c.o ¶
+               misc.c.o ¶
+#              ssh.c.o ¶
+#              sshcrc.c.o ¶
+#              sshdes.c.o ¶
+#              sshmd5.c.o ¶
+#              sshrand.c.o ¶
+#              sshrsa.c.o ¶
+#              sshsha.c.o ¶
+#              telnet.c.o ¶
+               terminal.c.o ¶
+               testback.c.o
+
+Objects¥PPC  = ¶
+               mac.c.x ¶
+               maccfg.c.x ¶
+               macterm.c.x ¶
+               misc.c.x ¶
+#              ssh.c.x ¶
+#              sshcrc.c.x ¶
+#              sshdes.c.x ¶
+#              sshmd5.c.x ¶
+#              sshrand.c.x ¶
+#              sshrsa.c.x ¶
+#              sshsha.c.x ¶
+#              telnet.c.x ¶
+               terminal.c.x ¶
+               testback.c.x
+
+
+Libs¥68K  =    "{CLibraries}StdCLib.o" ¶
                "{Libraries}MacRuntime.o" ¶
                "{Libraries}IntEnv.o" ¶
-               #"{Libraries}ToolLibs.o" ¶
                "{Libraries}Interface.o"
 
-
-PuTTY ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
-       Rez mac_res.r -o {Targ} {Includes} -append
-
-
-"{ObjDir¥68K}mac.c.o" Ä {¥MondoBuild¥} mac.c putty.h mac.h macresid.h
-       {C} mac.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}maccfg.c.o" Ä {¥MondoBuild¥} maccfg.c putty.h mac.h macresid.h
-       {C} maccfg.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}macterm.c.o" Ä {¥MondoBuild¥} macterm.c mac.h putty.h
-       {C} macterm.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}misc.c.o" Ä {¥MondoBuild¥} misc.c putty.h
-       {C} misc.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}ssh.c.o" Ä {¥MondoBuild¥} ssh.c
-       {C} ssh.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshcrc.c.o" Ä {¥MondoBuild¥} sshcrc.c
-       {C} sshcrc.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshdes.c.o" Ä {¥MondoBuild¥} sshdes.c
-       {C} sshdes.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshmd5.c.o" Ä {¥MondoBuild¥} sshmd5.c
-       {C} sshmd5.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshrand.c.o" Ä {¥MondoBuild¥} sshrand.c
-       {C} sshrand.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshrsa.c.o" Ä {¥MondoBuild¥} sshrsa.c
-       {C} sshrsa.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}sshsha.c.o" Ä {¥MondoBuild¥} sshsha.c
-       {C} sshsha.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}telnet.c.o" Ä {¥MondoBuild¥} telnet.c
-       {C} telnet.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}terminal.c.o" Ä {¥MondoBuild¥} terminal.c putty.h
-       {C} terminal.c -o {Targ} {COptions}
-
-"{ObjDir¥68K}testback.c.o" Ä {¥MondoBuild¥} testback.c putty.h
-       {C} testback.c -o {Targ} {COptions}
-
+Libs¥PPC  =    "{SharedLibraries}InterfaceLib" ¶
+               "{SharedLibraries}StdCLib" ¶
+               "{SharedLibraries}MathLib" ¶
+               "{SharedLibraries}AppearanceLib" -weaklib AppearanceLib ¶
+               "{PPCLibraries}StdCRuntime.o" ¶
+               "{PPCLibraries}PPCCRuntime.o"
+
+# pseudo-targets
+all Ä 68k ppc fat
+clean Ä
+       delete -i {Objects¥68K} {Objects¥PPC} ¶
+               PuTTY PuTTY.fat PuTTY.ppc PuTTY.NJ
+# short names for targets
+68k Ä PuTTY.68k
+ppc Ä PuTTY.ppc
+fat Ä PuTTY
+
+
+PuTTY.rsrc Ä mac_res.r macresid.h
+       Rez mac_res.r -o {Targ} {Includes}
+
+PuTTY.ppc Ä {Objects¥PPC} PuTTY.rsrc
+       Delete -i {Targ}
+       PPCLink ¶
+               -o {Targ} {Sym¥PPC} ¶
+               -t 'APPL' -c 'pTTY' ¶
+               -fragname PuTTY ¶
+               {Objects¥PPC} ¶
+               {Libs¥PPC}
+       Echo 'Include "PuTTY.rsrc";' > merge.r
+       Rez merge.r -o {Targ} -append
+       Delete -i merge.r
+       Rez version.r -d BUILD_ARCH='"PowerPC"' -o {Targ} {Includes} -append
+
+PuTTY.68k ÄÄ {Objects¥68K} {Libs¥68K}
+       IF (`exists {Targ}.NJ`)
+               ILink ¶
+                       -o {Targ} {Sym¥68K} ¶
+                       -t 'APPL' -c 'pTTY' ¶
+                       -newerdeps {NewerDeps}
+       ELSE
+               ILink ¶
+                       -o {Targ} {Sym¥68K} ¶
+                       -t 'APPL' -c 'pTTY' ¶
+                       {Objects¥68K} ¶
+                       {Libs¥68K}
+       END
+
+PuTTY.68k ÄÄ PuTTY.rsrc version.r version.h
+       Echo 'Include "PuTTY.rsrc";' > merge.r
+       Rez merge.r -o {Targ} -append
+       Delete -i merge.r
+       Rez version.r -d BUILD_ARCH='"68k"' -o {Targ} {Includes} -append
+
+PuTTY Ä PuTTY.68k PuTTY.ppc version.r version.h
+       Duplicate -y PuTTY.68k {Targ}
+       MergeFragment PuTTY.ppc {Targ}
+       Rez version.r -d BUILD_ARCH='"fat"' -o {Targ} {Includes} -append
+
+.c.o Ä .c
+       {C} {default}.c -o {Targ} {COptions}
+
+# The odd stuff here seems to stop afpd getting confused.
+.c.x Ä .c
+       echo -n > {Targ}
+       setfile -t XCOF {Targ}
+       {PPCC} {default}.c -o {Targ} {PPCCOptions}
+
+mac.c.o        mac.c.x         Ä putty.h mac.h macresid.h
+maccfg.c.o     maccfg.c.x      Ä putty.h mac.h macresid.h
+macterm.c.o    macterm.c.x     Ä putty.h mac.h
+misc.c.o       misc.c.x        Ä putty.h
+ssh.c.o                ssh.c.x         Ä putty.h ssh.h
+sshcrc.c.o     sshcrc.c.x      Ä
+sshdes.c.o     sshdes.c.x      Ä ssh.h 
+sshmd5.c.o     sshmd5.c.x      Ä ssh.h
+sshrand.c.o    sshrand.c.x     Ä ssh.h
+sshrsa.c.o     sshrsa.c.x      Ä ssh.h
+sshsha.c.o     sshsha.c.x      Ä ssh.h
+telnet.c.o     telnet.c.x      Ä putty.h
+terminal.c.o   terminal.c.x    Ä putty.h
+testback.c.o   testback.c.x    Ä putty.h