projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged from silc_1_0_branch.
[silc.git]
/
lib
/
silcmath
/
Makefile.am
diff --git
a/lib/silcmath/Makefile.am
b/lib/silcmath/Makefile.am
index 663a2ef8c7d899ee1207c72050b07e20cb90ed5a..4dec62ac8500d3c05e8ac9cd65827e357d2b64f8 100644
(file)
--- a/
lib/silcmath/Makefile.am
+++ b/
lib/silcmath/Makefile.am
@@
-18,19
+18,41
@@
AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
-if SILC_
BUILD_GMP
-SUBDIRS =
gmp
+if SILC_
MP_NSS_MPI
+SUBDIRS =
mpi
else
SUBDIRS =
endif
else
SUBDIRS =
endif
-noinst_L
IBRARIES = libsilcmath.
a
+noinst_L
TLIBRARIES = libsilcmath.l
a
-libsilcmath_a_SOURCES = \
+if SILC_MP_NSS_MPI
+MP_SOURCE = mp_mpi.c
+if SILC_DIST_TOOLKIT
+MP_HEADER = mpi/mpi.h mpi/mplogic.h mpi/mpi-config.h
+else
+MP_HEADER =
+endif
+else
+MP_SOURCE = mp_gmp.c
+MP_HEADER =
+endif
+
+libsilcmath_la_SOURCES = \
silcprimegen.c \
modinv.c \
silcprimegen.c \
modinv.c \
- mpbin.c
+ mpbin.c \
+ $(MP_SOURCE)
+
+if SILC_DIST_TOOLKIT
+include_HEADERS = \
+ mp_gmp.h \
+ mp_mpi.h \
+ silcmath.h \
+ silcmp.h \
+ $(MP_HEADER)
+endif
-EXTRA_DIST = *.h
+EXTRA_DIST =
mp_gmp.c mp_mpi.c
*.h
include $(top_srcdir)/Makefile.defines.in
include $(top_srcdir)/Makefile.defines.in