Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
0a0a61f3
Commit
0a0a61f3
authored
Oct 02, 2002
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed assembler rules, and shared libraries.
Rev: src/nettle/Makefile.am:1.43
parent
7f3dec63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
Makefile.am
Makefile.am
+17
-19
No files found.
Makefile.am
View file @
0a0a61f3
SUBDIRS
=
.
testsuite examples
SHLIBFORLINK
=
@SHLIBFORLINK@
SHLIBSONAME
=
@SHLIBSONAME@
SHLIBFILE
=
@SHLIBFILE@
SHLIBCFLAGS
=
@SHLIBCFLAGS@
SHLIBLINK
=
@SHLIBLINK@
SHLIBTARGET
=
@SHLIBTARGET@
SHLIBINSTALL
=
@SHLIBINSTALL@
noinst_PROGRAMS
=
aesdata desdata shadata
libnettleincludedir
=
$(includedir)
/nettle
...
...
@@ -76,29 +67,36 @@ SUFFIXES = .asm
RM_TMP
=
rm
-f
# FIXME: How to write this without using GNU make features?
%.s
:
%.asm asm.m4 machine.m4 config.m4
$(M4)
$(srcdir)
/asm.m4 machine.m4 config.m4
\
`
test
-f
$<
||
echo
'
$(srcdir)
/'
`
$<
>
$@
# NOTE: We have to use an explicit rule .asm -> .o, to override the .c
# -> .o rule. Using rules involving .s doesn't seem to work.
# %.s: %.asm asm.m4 machine.m4 config.m4
# $(M4) $(srcdir)/asm.m4 machine.m4 config.m4 \
# `test -f $< || echo '$(srcdir)/'`$< >$@
# NOTE: We create an empty .deps-file, to make the make/automake
# dependency tracking happier.
%.$(OBJEXT)
:
%.s
$(COMPILE)
-c
$<
-o
$@
%.$(OBJEXT)
:
%.asm asm.m4 machine.m4 config.m4
$(M4)
$(srcdir)
/asm.m4 machine.m4 config.m4
\
`
test
-f
$<
||
echo
'
$(srcdir)
/'
`
$<
>
$*
.s
$(COMPILE)
-c
$*
.s
-o
$@
echo
>
.deps/
$*
.Po
# Shared library rules
all-local
:
$(SHLIBTARGET)
install-data-local
:
$(SHLIBINSTALL)
%_p.$(OBJEXT)
:
%.asm asm.m4 machine.m4 config.m4
$(M4)
$(srcdir)
/asm.m4 machine.m4 config.m4
\
`
test
-f
$<
||
echo
'
$(srcdir)
/'
`
$<
>
$*
.s
$(COMPILE)
-c
$*
.s
-o
$@
echo
>
.deps/
$*
.Po
# Assembler files must contain only PIC-clean code.
%_p.$(OBJEXT)
:
%.c
$(COMPILE)
$(SHLIBCFLAGS)
-c
$<
-o
$@
%_p.$(OBJEXT)
:
%.s
$(COMPILE)
$(SHLIBCFLAGS)
-c
$<
-o
$@
echo
>
.deps/
$*
.Po
SHLIBOBJECTS
=
(
patsubst %.
$(OBJEXT)
,%_p.
$(OBJEXT)
,
$(am_libnettle_a_OBJECTS)
$(LIBOBJS)
)
SHLIBOBJECTS
=
$(
patsubst
%.
$(OBJEXT)
,%_p.
$(OBJEXT)
,
$(am_libnettle_a_OBJECTS)
$(LIBOBJS)
)
$(SHLIBFORLINK)
:
$(SHLIBOBJECTS)
$(SHLIBLINK)
$^
-o
$@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment