]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix problems with resource compilation Makefile lines
authorSimon Tatham <anakin@pobox.com>
Wed, 19 Jan 2000 12:16:19 +0000 (12:16 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 19 Jan 2000 12:16:19 +0000 (12:16 +0000)
[originally from svn r371]

Makefile
mkfiles.pl

index 605cf91ae81a8aa15ebbdcd18f523708a5775a4b..c141399b4455f39fbd41bd84375c4b1a2428f2ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@
 #  - COMPAT=/DWIN32S_COMPAT
 #      Generates a binary that works (minimally) with Win32s.
 #
-#  - CFL=/DASCIICTLS
+#  - RCFL=/DASCIICTLS
 #      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
@@ -124,13 +124,13 @@ versionpseudotarget:
 win_res.$(RES): win_res.rc win_res.h putty.ico
 ##--
 win_res.$(RES):
-       rc $(FWHACK) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc
+       rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc
 
 ##-- dependencies
 scp.$(RES): scp.rc scp.ico
 ##--
 scp.$(RES):
-       rc $(FWHACK) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 scp.rc
+       rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 scp.rc
 
 clean:
        del *.obj
index ab896c5789d1ada328b50c63aa2ff9a1750d6630..a2b4dd9c80b528fcac5f0744275783d884b489a1 100755 (executable)
@@ -85,7 +85,7 @@ print
 "\t\$(CC) \$(FWHACK) \$(CFLAGS) -c \$<\n".
 "\n".
 "%.o: %.rc\n".
-"\t\$(RC) \$(FWHACK) \$(RCFLAGS) \$<\n".
+"\t\$(RC) \$(FWHACK) \$(RCFL) \$(RCFLAGS) \$< \$\@\n".
 "\n";
 foreach $p (@projects) {
   print $p, ".exe: ", &project($p), "\n";
@@ -127,7 +127,7 @@ print
 ".c.obj:\n".
 "\tbcc32 \$(COMPAT) \$(FWHACK) \$(CFLAGS) /c \$*.c\n".
 ".rc.res:\n".
-"\tbrc32 \$(FWHACK) -i \$(BCB)\\include \\\n".
+"\tbrc32 \$(FWHACK) \$(RCFL) -i \$(BCB)\\include \\\n".
 "\t\t-r -DWIN32 -D_WIN32 -DWINVER=0x0400 \$*.rc\n".
 "\n".
 "OBJ=obj\n".