diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-09-21 20:07:10 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-09-21 20:07:10 +0200 |
commit | 2e6c93ca0f1d3814411b009c90abd2d70e71edea (patch) | |
tree | a05632cbc65d502233732a92f24d5215fdd84bc2 /Makefile.in | |
parent | dc89647b3033c943f3ac9a82e90dee6299ce0449 (diff) | |
download | nettle-2e6c93ca0f1d3814411b009c90abd2d70e71edea.tar.gz |
ppc: Add configure test and macros to replace register names.
* aclocal.m4 (GMP_ASM_POWERPC_R_REGISTERS): New configure test,
adapted from corresponding test in GMP's acinlude.m4.
* configure.ac (ASM_PPC_WANT_R_REGISTERS): New substituted
variable. Set using GMP_ASM_POWERPC_R_REGISTERS, when powerpc64
assembly code is enabled.
* config.m4.in: Substituted here.
* powerpc64/machine.m4: Check ASM_PPC_WANT_R_REGISTERS, and
if needed, replace register names like r0, r1, ... with integers.
* Makefile.in (%.asm): Include m4-utils.m4 for preprocessing of .asm
files, and include config.m4 before machine.m4.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index e766d23d..c10f3e9d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -289,8 +289,8 @@ libhogweed.a: $(hogweed_OBJS) $(RANLIB) $@ echo hogweed > libhogweed.stamp -%.$(OBJEXT): %.asm $(srcdir)/asm.m4 machine.m4 config.m4 - $(M4) $(srcdir)/asm.m4 machine.m4 config.m4 $< >$*.s +%.$(OBJEXT): %.asm $(srcdir)/m4-utils.m4 $(srcdir)/asm.m4 config.m4 machine.m4 + $(M4) $(srcdir)/m4-utils.m4 $(srcdir)/asm.m4 config.m4 machine.m4 $< >$*.s $(COMPILE) -c $*.s %.$(OBJEXT): %.c |