1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
Date: Wed, 7 Sep 2022 11:50:41 +0200
Subject: Autotoolize
---
Makefile.am | 1 +
ann2fig/Makefile.am | 4 ++++
configure.ac | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
include/Makefile.am | 6 ++++++
sample/Makefile.am | 4 ++++
src/Makefile.am | 32 +++++++++++++++++++++++++++++++
test/Makefile.am | 4 ++++
7 files changed, 105 insertions(+)
create mode 100644 Makefile.am
create mode 100644 ann2fig/Makefile.am
create mode 100644 configure.ac
create mode 100644 include/Makefile.am
create mode 100644 sample/Makefile.am
create mode 100644 src/Makefile.am
create mode 100644 test/Makefile.am
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..668bab0
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = src include ann2fig sample test
diff --git a/ann2fig/Makefile.am b/ann2fig/Makefile.am
new file mode 100644
index 0000000..aaa9d48
--- /dev/null
+++ b/ann2fig/Makefile.am
@@ -0,0 +1,4 @@
+bin_PROGRAMS=ann2fig
+ann2fig_SOURCES=ann2fig.cpp
+AM_CPPFLAGS=-I$(top_builddir)/include
+LDADD=../src/libann.la
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..4626b86
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,54 @@
+# Process this file with autoconf to produce a configure script.
+AC_INIT([ann], [1.0], [bornik@icg.tu-graz.aca.t])
+
+AC_CONFIG_AUX_DIR(cfg)
+
+AM_INIT_AUTOMAKE
+AC_CONFIG_HEADERS(config.h)
+AM_MAINTAINER_MODE
+
+ANN_VERSION="1.0"
+AC_SUBST([ANN_VERSION])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_CXX
+AC_PROG_CXXCPP
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_LANG(C++)
+
+# AM_DISABLE_SHARED
+# AM_DISABLE_STATIC
+AC_DISABLE_FAST_INSTALL
+AC_PROG_LIBTOOL
+
+# Checks for header files.
+AC_HEADER_STDC
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_HEADER_TIME
+AC_STRUCT_TM
+AC_CXX_HAVE_STD
+AC_CXX_HAVE_STL
+AC_CXX_TYPENAME
+
+# Checks for library functions.
+AC_PROG_GCC_TRADITIONAL
+
+AC_SUBST([LIBS])
+AC_SUBST([CXXFLAGS])
+AC_SUBST([CPPFLAGS])
+AC_SUBST([LDFLAGS])
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ include/Makefile
+ ann2fig/Makefile
+ sample/Makefile
+ test/Makefile])
+
+AC_OUTPUT
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644
index 0000000..20137b8
--- /dev/null
+++ b/include/Makefile.am
@@ -0,0 +1,6 @@
+annincdir = $(includedir)/ANN
+
+anninc_HEADERS = \
+ ANN/ANN.h \
+ ANN/ANNx.h \
+ ANN/ANNperf.h
diff --git a/sample/Makefile.am b/sample/Makefile.am
new file mode 100644
index 0000000..a26e1ae
--- /dev/null
+++ b/sample/Makefile.am
@@ -0,0 +1,4 @@
+bin_PROGRAMS=ann_sample
+ann_sample_SOURCES=ann_sample.cpp
+AM_CPPFLAGS=-I$(top_builddir)/include
+LDADD=../src/libann.la
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..1dc1490
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,32 @@
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
+lib_LTLIBRARIES = libann.la
+
+libann_la_SOURCES = \
+ ANN.h \
+ ANN.cpp \
+ ANNx.h \
+ ANNperf.h \
+ bd_fix_rad_search.cpp \
+ bd_pr_search.cpp \
+ bd_search.cpp \
+ bd_tree.cpp \
+ bd_tree.h \
+ brute.cpp \
+ kd_dump.cpp \
+ kd_fix_rad_search.cpp \
+ kd_pr_search.cpp \
+ kd_pr_search.h \
+ kd_search.cpp \
+ kd_search.h \
+ kd_split.cpp \
+ kd_split.h \
+ kd_tree.cpp \
+ kd_tree.h \
+ kd_util.cpp \
+ kd_util.h \
+ perf.cpp \
+ pr_queue.h \
+ pr_queue_k.h
+
+libann_la_LDFLAGS = -no-undefined -version-info 0:0:0
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644
index 0000000..d90afd6
--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,4 @@
+bin_PROGRAMS=ann_test
+ann_test_SOURCES=ann_test.cpp rand.cpp
+AM_CPPFLAGS=-I$(top_builddir)/include
+LDADD=../src/libann.la
|