symm/Makefile.am: Add a `base' column to the $(STUBS_SRC) list.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 10 May 2017 18:35:59 +0000 (19:35 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 13:58:41 +0000 (14:58 +0100)
The list is currently empty, so this is just a matter of fiddling with
the bits of Makefile which process it.  But it means that we can add
things to `stub.c.in' which refer to the base C file, for example to
tell a reader where the real thing is.

symm/Makefile.am

index 3cd98cf..ceefff2 100644 (file)
@@ -69,7 +69,7 @@ $(srcdir)/modes.am: modes.am.in Makefile.am
                        hashmacmode="$(HASHMACMODES)"
 $(srcdir)/stubs.am: stubs.am.in Makefile.am
        $(AM_V_GEN)$(multigen) -g $(srcdir)/stubs.am.in $(srcdir)/stubs.am \
-               descr,hname,base="$(STUBS_HDR)" cname="$(STUBS_SRC)"
+               descr,hname,base="$(STUBS_HDR)" cname,cbase="$(STUBS_SRC)"
 
 ## Initialize lists of known classes.
 ALL_CIPHERS             = $(CIPHER_MODES)
@@ -526,7 +526,7 @@ stubs.gen-stamp: Makefile.am
        $(AM_V_GEN)$(multigen) -g $(srcdir)/stub.h.in \
                $(srcdir)/@name.h descr,name,base="$(STUBS_HDR)"
        $(AM_V_GEN)$(multigen) -g $(srcdir)/stub.c.in \
-               $(srcdir)/@name.c name="$(STUBS_SRC)"
+               $(srcdir)/@name.c name,base="$(STUBS_SRC)"
        $(AM_V_at)touch $(srcdir)/stubs.gen-stamp
 
 ## Generated stub headers.