Commit 1ed0c662 authored by Richard Levitte's avatar Richard Levitte
Browse files

Reformat the CFLAG string so it can be made part of a C string.

Incidently, this works pretty well on the command line as well.
PR: 52
parent 5f845358
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1124,6 +1124,10 @@ if ($rmd160_obj =~ /\.o$/)
	$cflags.=" -DRMD160_ASM";
	}

# "Stringify" the C flags string.  This permits it to be made part of a string
# and works as well on command lines.
$cflags =~ s/([\\\"])/\\\1/g;

my $version = "unknown";
my $major = "unknown";
my $minor = "unknown";
+4 −4
Original line number Diff line number Diff line
@@ -54,11 +54,11 @@ all: buildinf.h lib subdirs shared

buildinf.h: ../Makefile.ssl
	( echo "#ifndef MK1MF_BUILD"; \
	echo "  /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
	echo "  #define CFLAGS \"$(CC) $(CFLAG)\""; \
	echo "  #define PLATFORM \"$(PLATFORM)\""; \
	echo '  /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */'; \
	echo '  #define CFLAGS "$(CC) $(CFLAG)"'; \
	echo '  #define PLATFORM "$(PLATFORM)"'; \
	echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
	echo "#endif" ) >buildinf.h
	echo '#endif' ) >buildinf.h

testapps:
	if echo ${SDIRS} | fgrep ' des '; \