Provide CFLAGS and PLATFORM information on Windows platforms.
This commit is contained in:
parent
975d3dc2ca
commit
9e935d7e4c
1 changed files with 8 additions and 0 deletions
|
@ -688,6 +688,14 @@ print "BF_PTR2 used\n" if $bf_ptr == 2;
|
|||
if($IsWindows) {
|
||||
open (OUT,">crypto/date.h") || die "Can't open date.h";
|
||||
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
|
||||
printf OUT <<EOF; # Kludge -- usually those are passed on the command line
|
||||
#ifndef CFLAGS
|
||||
#define CFLAGS "$cc $cflags"
|
||||
#endif
|
||||
#ifndef PLATFORM
|
||||
#define PLATFORM "$target"
|
||||
#endif
|
||||
EOF
|
||||
close(OUT);
|
||||
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue