mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-17 04:18:38 -05:00
Joris van Rantwijk's fixes for cygwin (NB includes WIN32S_COMPAT)
[originally from svn r389]
This commit is contained in:
parent
c793ad69f7
commit
bd4b8c1285
10
mkfiles.pl
10
mkfiles.pl
@ -70,11 +70,12 @@ print
|
|||||||
"# You may also need to tell windres where to find include files:\n".
|
"# You may also need to tell windres where to find include files:\n".
|
||||||
"# RCINC = --include-dir c:\\cygwin\\include\\\n".
|
"# RCINC = --include-dir c:\\cygwin\\include\\\n".
|
||||||
"\n".
|
"\n".
|
||||||
"CFLAGS = -g -O2 -D_WINDOWS -DDEBUG\n".
|
"CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT -D_NO_OLDNAMES -I.\n".
|
||||||
|
"LDFLAGS = -mno-cygwin -s\n".
|
||||||
"RCFLAGS = \$(RCINC) --define WIN32=1 --define _WIN32=1 --define WINVER=0x0400\n".
|
"RCFLAGS = \$(RCINC) --define WIN32=1 --define _WIN32=1 --define WINVER=0x0400\n".
|
||||||
"LIBS = -ladvapi32 -luser32 -lgdi32 -lwsock32 -lcomctl32 -lcomdlg32\n".
|
"LIBS = -ladvapi32 -luser32 -lgdi32 -lwsock32 -lcomctl32 -lcomdlg32\n".
|
||||||
"OBJ=o\n".
|
"OBJ=o\n".
|
||||||
"RES=o\n".
|
"RES=res.o\n".
|
||||||
"\n";
|
"\n";
|
||||||
print $store{"objdefs"};
|
print $store{"objdefs"};
|
||||||
print
|
print
|
||||||
@ -84,12 +85,13 @@ print
|
|||||||
"%.o: %.c\n".
|
"%.o: %.c\n".
|
||||||
"\t\$(CC) \$(FWHACK) \$(CFLAGS) -c \$<\n".
|
"\t\$(CC) \$(FWHACK) \$(CFLAGS) -c \$<\n".
|
||||||
"\n".
|
"\n".
|
||||||
"%.o: %.rc\n".
|
"%.res.o: %.rc\n".
|
||||||
"\t\$(RC) \$(FWHACK) \$(RCFL) \$(RCFLAGS) \$< \$\@\n".
|
"\t\$(RC) \$(FWHACK) \$(RCFL) \$(RCFLAGS) \$< \$\@\n".
|
||||||
"\n";
|
"\n";
|
||||||
foreach $p (@projects) {
|
foreach $p (@projects) {
|
||||||
print $p, ".exe: ", &project($p), "\n";
|
print $p, ".exe: ", &project($p), "\n";
|
||||||
print "\t\$(CC) \$(LDFLAGS) -o \$@ " . &project($p), " \$(LIBS)\n\n";
|
my $mw = $gui{$p} ? " -mwindows" : "";
|
||||||
|
print "\t\$(CC)" . $mw . " \$(LDFLAGS) -o \$@ " . &project($p), " \$(LIBS)\n\n";
|
||||||
}
|
}
|
||||||
print $store{"dependencies"};
|
print $store{"dependencies"};
|
||||||
print
|
print
|
||||||
|
Loading…
x
Reference in New Issue
Block a user