summaryrefslogtreecommitdiffstats
path: root/Configurations/README.design
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-07 14:37:00 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-07 18:25:56 +0100
commitae4c7450754ea13265edd69e6ff74d87c89401cd (patch)
tree8acb4c1b1120b58109e4b66d60b2cccf9750b6d7 /Configurations/README.design
parent667867cced0013c1cfd8d7a9efa43b8f2cebc942 (diff)
Unified - Add the build.info command GENERATE, to generate source files
In some cases, one might want to generate some source files from others, that's done as follows: GENERATE[foo.s]=asm/something.pl $(CFLAGS) GENERATE[bar.s]=asm/bar.S The value of each GENERATE line is a command line or part of it. Configure places no rules on the command line, except the the first item muct be the generator file. It is, however, entirely up to the build file template to define exactly how those command lines should be handled, how the output is captured and so on. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations/README.design')
-rw-r--r--Configurations/README.design16
1 files changed, 5 insertions, 11 deletions
diff --git a/Configurations/README.design b/Configurations/README.design
index 5a28ef3271..5065960a76 100644
--- a/Configurations/README.design
+++ b/Configurations/README.design
@@ -89,11 +89,8 @@ depends on the library 'libssl' to function properly.
SOURCE[../libcrypto]=aes.c evp.c cversion.c
DEPEND[cversion.o]=buildinf.h
- BEGINRAW[Makefile(unix)]
- crypto/buildinf.h : Makefile
- perl util/mkbuildinf.h "$(CC) $(CFLAGS)" "$(PLATFORM)" \
- > crypto/buildinf.h
- ENDRAW[Makefile(unix)]
+ GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)"
+ DEPEND[buildinf.h]=../Makefile
This is the build.info file in 'crypto', and it tells us a little more
about what's needed to produce 'libcrypto'. LIBS is used again to
@@ -161,11 +158,8 @@ information comes down to this:
DEPEND[engines/libossltest]=libcrypto
INCLUDE[engines/libossltest]=include
- BEGINRAW[Makefile(unix)]
- crypto/buildinf.h : Makefile
- perl util/mkbuildinf.h "$(CC) $(CFLAGS)" "$(PLATFORM)" \
- > crypto/buildinf.h
- ENDRAW[Makefile(unix)]
+ GENERATE[crypto/buildinf.h]=util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)"
+ DEPEND[crypto/buildinf.h]=Makefile
A few notes worth mentioning:
@@ -180,7 +174,7 @@ The indexes for SOURCE, INCLUDE and ORDINALS must only be end product
files, such as libraries, programs or engines. The values of SOURCE
variables must only be source files (possibly generated)
-DEPEND shows a relationship between different end product files, such
+DEPEND shows a relationship between different produced files, such
as a program depending on a library, or between an object file and
some extra source file.