X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/26a9ad56ff2efa79010f11c0cff1bea8c7380eb2..f7cefc263c34a4c8f08d0560b4ac6b0a19419c97:/mkfiles.pl diff --git a/mkfiles.pl b/mkfiles.pl index ad364cd..5bb0d39 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # # Cross-platform Makefile generator. # @@ -17,6 +17,7 @@ # - special-define objects (foo.o[PREPROCSYMBOL]) are not # supported in the mac or vcproj makefiles. +use warnings; use IO::Handle; use Cwd; @@ -1136,7 +1137,7 @@ if (defined $makefiles{'gtk'}) { $objstr = &objects($p, "X.o", undef, undef); print &splitline($prog . ": " . $objstr), "\n"; $libstr = &objects($p, undef, undef, "-lX"); - print &splitline("\t\$(CC) -o \$@ $objstr $libstr \$(${type}LIBS)", 69), + print &splitline("\t\$(CC) -o \$@ $objstr $libstr \$(XLFLAGS) \$(${type}LIBS)", 69), "\n\n"; } foreach $d (&deps("X.o", undef, $dirpfx, "/")) {