]> git.ipfire.org Git - thirdparty/openssl.git/commit - Configurations/unix-Makefile.tmpl
Redo the Unix source code generator
authorRichard Levitte <levitte@openssl.org>
Tue, 8 Mar 2016 18:19:53 +0000 (19:19 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 8 Mar 2016 23:15:56 +0000 (00:15 +0100)
commit8458f1bfab1b30ce96a39593331a94b44efbe2b2
tree11993239ca94bcadde7367d0c00d43d277fe57f8
parentb2d6aed499e584e0da232fd109459cf7743f00fe
Redo the Unix source code generator

For assembler, we want the final target to be foo.s (lowercase s).
However, the build.info may have lines like this (note upper case S):

    GENERATE[foo.S]=foo.pl

This indicates that foo.s (lowercase s) is still to be produced, but
that producing it will take an extra step via $(CC) -E.  Therefore,
the following variants (simplified for display) can be generated:

    GENERATE[foo.S]=foo.pl  =>  foo.s: foo.pl
                                 $(PERL) $foo.pl $@.S; \
                                 $(CC) $(CFLAGS) -E -P $@.S > $@ && \
                                 rm -f $@.S

    GENERATE[foo.s]=foo.pl  =>  foo.s: foo.pl
                                 $(PERL) $foo.pl $@

    GENERATE[foo.S]=foo.m4  =>  foo.s: foo.m4
                                 m4 -B 8192 $foo.m4 > $@.S; \
                                 $(CC) $(CFLAGS) -E -P $@.S > $@ && \
                                 rm -f $@.S

    GENERATE[foo.s]=foo.m4  =>  foo.s: foo.m4
                                 m4 -B 8192 $foo.m4 > $@

Reviewed-by: Andy Polyakov <appro@openssl.org>
Configurations/unix-Makefile.tmpl