Provide CFLAGS and PLATFORM information on Windows platforms.

This commit is contained in:
Bodo Möller 1999-07-09 14:04:57 +00:00
parent 975d3dc2ca
commit 9e935d7e4c

View file

@ -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 {