Skip to content
Snippets Groups Projects
Commit 343be0b5 authored by Niels Möller's avatar Niels Möller
Browse files

Refactor PROLOGUE macro in asm.m4.

parent 1f0c7e6b
Branches
Tags
No related merge requests found
2015-01-12 Niels Möller <nisse@lysator.liu.se>
* asm.m4 (DECLARE_FUNC): New macro, extracted from PROLOGUE.
(PROLOGUE): Use it.
* configure.ac (OPT_NETTLE_OBJS, OPT_HOGWEED_OBJS): Renamed
substituted variables, and list the object files rather than
source files.
......
......@@ -13,21 +13,20 @@ dnl Including files from the srcdir
define(<include_src>, <include(srcdir/$1)>)dnl
dnl Pseudo ops
define(<PROLOGUE>,
define(<DECLARE_FUNC>,
<ifelse(ELF_STYLE,yes,
<.globl C_NAME($1)
.type C_NAME($1),TYPE_FUNCTION
C_NAME($1):>,
COFF_STYLE, <yes>,
<.globl C_NAME($1)
.def C_NAME($1)
<.type $1,TYPE_FUNCTION>,
COFF_STYLE, yes,
<.def $1
.scl 2
.type 32
.endef
C_NAME($1):>,
.endef>,
<>)>)
define(<PROLOGUE>,
<.globl C_NAME($1)
C_NAME($1):>)>)
DECLARE_FUNC(C_NAME($1))
C_NAME($1):>)
define(<EPILOGUE>,
<ifelse(ELF_STYLE,yes,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment