Provide CFLAGS and PLATFORM information on Windows platforms.
authorBodo Möller <bodo@openssl.org>
Fri, 9 Jul 1999 14:04:57 +0000 (14:04 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 9 Jul 1999 14:04:57 +0000 (14:04 +0000)
Configure

index 8f5285c218319ba73cbbca9ff1d2a4d79c95b419..782cbccbbef831df2b094dcc6c5fdfcf1cca16bb 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -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 {