2 # Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the OpenSSL license (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
10 my ($cflags, $platform) = @ARGV;
12 $cflags = "compiler: $cflags";
15 /* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
18 * Generate CFLAGS as an array of individual characters. This is a
19 * workaround for the situation where CFLAGS gets too long for a C90 string
22 static const char cflags[] = {
25 foreach my $c (split //, $cflags) {
26 $c =~ s|([\\'])|\\$1|;
27 # Max 16 characters per line
28 if (($ctr++ % 16) == 0) {
39 #define PLATFORM "platform: $platform"
40 #define DATE "built on: $date"