| 1 |
# Top level Makefile for Easel |
| 2 |
# |
| 3 |
# On most systems, to build Easel you should only need: |
| 4 |
# % ./configure; make |
| 5 |
# |
| 6 |
# Optionally, you can run a test suite: |
| 7 |
# % make check |
| 8 |
# |
| 9 |
# And optionally, you can install everything more permanently: |
| 10 |
# % make install |
| 11 |
# |
| 12 |
# For more information, see the Installation chapter of the Easel Guide. |
| 13 |
|
| 14 |
# You can define V=1 either here, or by doing `make V=1`, to get verbose output from the build. |
| 15 |
#define V = 1 |
| 16 |
|
| 17 |
|
| 18 |
# VPATH and shell configuration |
| 19 |
# |
| 20 |
top_srcdir = @top_srcdir@ |
| 21 |
srcdir = @srcdir@ |
| 22 |
VPATH = @srcdir@ |
| 23 |
SHELL = /bin/sh |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
# Versioning information |
| 28 |
# |
| 29 |
PACKAGE = @PACKAGE_NAME@ |
| 30 |
PACKAGE_VERSION = @PACKAGE_VERSION@ |
| 31 |
PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
| 32 |
BASENAME = @PACKAGE_TARNAME@ |
| 33 |
RELEASE = @EASEL_VERSION@ |
| 34 |
RELEASEDATE = "@EASEL_DATE@" |
| 35 |
COPYRIGHT = "@EASEL_COPYRIGHT@" |
| 36 |
LICENSELINE = "@EASEL_LICENSE@" |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
# Installation targets |
| 41 |
# |
| 42 |
prefix = @prefix@ |
| 43 |
exec_prefix = @exec_prefix@ |
| 44 |
datarootdir = @datarootdir@ |
| 45 |
bindir = @bindir@ |
| 46 |
libdir = @libdir@ |
| 47 |
includedir = @includedir@ |
| 48 |
mandir = @mandir@ |
| 49 |
docdir = @docdir@ |
| 50 |
pdfdir = @pdfdir@ |
| 51 |
mandir = @mandir@ |
| 52 |
man1dir = ${mandir}/man1 |
| 53 |
man1ext = .1 |
| 54 |
|
| 55 |
|
| 56 |
# Compiler configuration |
| 57 |
# |
| 58 |
CC = @CC@ |
| 59 |
CFLAGS = @CFLAGS@ |
| 60 |
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
| 61 |
PIC_CFLAGS = @PIC_CFLAGS@ |
| 62 |
SSE_CFLAGS = @SSE_CFLAGS@ @SSE4_CFLAGS@ |
| 63 |
AVX_CFLAGS = @AVX_CFLAGS@ |
| 64 |
AVX512_CFLAGS = @AVX512_CFLAGS@ |
| 65 |
NEON_CFLAGS = @NEON_CFLAGS@ |
| 66 |
VMX_CFLAGS = @VMX_CFLAGS@ |
| 67 |
CPPFLAGS = @CPPFLAGS@ |
| 68 |
LDFLAGS = @LDFLAGS@ |
| 69 |
LIBGSL = @LIBGSL@ |
| 70 |
LIBS = @LIBS@ @PTHREAD_LIBS@ @LIBGSL@ |
| 71 |
|
| 72 |
|
| 73 |
# Other tools |
| 74 |
# |
| 75 |
COMPRESS = gzip |
| 76 |
AR = @AR@ |
| 77 |
RANLIB = @RANLIB@ |
| 78 |
INSTALL = @INSTALL@ |
| 79 |
|
| 80 |
|
| 81 |
# beautification magic, stolen from git |
| 82 |
# |
| 83 |
QUIET_SUBDIR0 = +${MAKE} -C #space separator after -c |
| 84 |
QUIET_SUBDIR1 = |
| 85 |
ifndef V |
| 86 |
QUIET = @ |
| 87 |
QUIET_CC = @echo ' ' CC $@; |
| 88 |
QUIET_GEN = @echo ' ' GEN $@; |
| 89 |
QUIET_AR = @echo ' ' AR $@; |
| 90 |
QUIET_SUBDIR0 = +@subdir= |
| 91 |
QUIET_SUBDIR1 = ; echo ' ' SUBDIR $$subdir; \ |
| 92 |
${MAKE} -s -C $$subdir |
| 93 |
endif |
| 94 |
|
| 95 |
|
| 96 |
# Code manifests |
| 97 |
# |
| 98 |
HDRS = easel.h\ |
| 99 |
esl_alloc.h\ |
| 100 |
esl_alphabet.h\ |
| 101 |
esl_arr2.h\ |
| 102 |
esl_arr3.h\ |
| 103 |
esl_bitfield.h\ |
| 104 |
esl_avx.h\ |
| 105 |
esl_avx512.h\ |
| 106 |
esl_buffer.h\ |
| 107 |
esl_cluster.h\ |
| 108 |
esl_cpu.h\ |
| 109 |
esl_composition.h\ |
| 110 |
esl_dirichlet.h\ |
| 111 |
esl_distance.h\ |
| 112 |
esl_dmatrix.h\ |
| 113 |
esl_dsqdata.h\ |
| 114 |
esl_exponential.h\ |
| 115 |
esl_fileparser.h\ |
| 116 |
esl_gamma.h\ |
| 117 |
esl_gencode.h\ |
| 118 |
esl_getopts.h\ |
| 119 |
esl_gev.h\ |
| 120 |
esl_graph.h\ |
| 121 |
esl_gumbel.h\ |
| 122 |
esl_heap.h\ |
| 123 |
esl_histogram.h\ |
| 124 |
esl_hmm.h\ |
| 125 |
esl_huffman.h\ |
| 126 |
esl_hyperexp.h\ |
| 127 |
esl_iset.h\ |
| 128 |
esl_json.h\ |
| 129 |
esl_keyhash.h\ |
| 130 |
esl_lognormal.h\ |
| 131 |
esl_matrixops.h\ |
| 132 |
esl_mem.h\ |
| 133 |
esl_minimizer.h\ |
| 134 |
esl_mixdchlet.h\ |
| 135 |
esl_mixgev.h\ |
| 136 |
esl_mpi.h\ |
| 137 |
esl_msa.h\ |
| 138 |
esl_msacluster.h\ |
| 139 |
esl_msafile.h\ |
| 140 |
esl_msafile2.h\ |
| 141 |
esl_msafile_a2m.h\ |
| 142 |
esl_msafile_afa.h\ |
| 143 |
esl_msafile_clustal.h\ |
| 144 |
esl_msafile_phylip.h\ |
| 145 |
esl_msafile_psiblast.h\ |
| 146 |
esl_msafile_selex.h\ |
| 147 |
esl_msafile_stockholm.h\ |
| 148 |
esl_msashuffle.h\ |
| 149 |
esl_msaweight.h\ |
| 150 |
esl_neon.h\ |
| 151 |
esl_normal.h\ |
| 152 |
esl_paml.h\ |
| 153 |
esl_quicksort.h\ |
| 154 |
esl_random.h\ |
| 155 |
esl_rand64.h\ |
| 156 |
esl_randomseq.h\ |
| 157 |
esl_ratematrix.h\ |
| 158 |
esl_recorder.h\ |
| 159 |
esl_red_black.h\ |
| 160 |
esl_regexp.h\ |
| 161 |
esl_rootfinder.h\ |
| 162 |
esl_scorematrix.h\ |
| 163 |
esl_sq.h\ |
| 164 |
esl_sqio.h\ |
| 165 |
esl_sqio_ascii.h\ |
| 166 |
esl_sqio_ncbi.h\ |
| 167 |
esl_sse.h\ |
| 168 |
esl_ssi.h\ |
| 169 |
esl_stack.h\ |
| 170 |
esl_stats.h\ |
| 171 |
esl_stopwatch.h\ |
| 172 |
esl_stretchexp.h\ |
| 173 |
esl_subcmd.h\ |
| 174 |
esl_threads.h\ |
| 175 |
esl_tree.h\ |
| 176 |
esl_varint.h\ |
| 177 |
esl_vectorops.h\ |
| 178 |
esl_vmx.h\ |
| 179 |
esl_weibull.h\ |
| 180 |
esl_workqueue.h\ |
| 181 |
esl_wuss.h |
| 182 |
|
| 183 |
OBJS = easel.o\ |
| 184 |
esl_alloc.o\ |
| 185 |
esl_alphabet.o\ |
| 186 |
esl_arr2.o\ |
| 187 |
esl_arr3.o\ |
| 188 |
esl_bitfield.o\ |
| 189 |
esl_buffer.o\ |
| 190 |
esl_cluster.o\ |
| 191 |
esl_composition.o\ |
| 192 |
esl_cpu.o\ |
| 193 |
esl_dirichlet.o\ |
| 194 |
esl_distance.o\ |
| 195 |
esl_dmatrix.o\ |
| 196 |
esl_dsqdata.o\ |
| 197 |
esl_exponential.o\ |
| 198 |
esl_fileparser.o\ |
| 199 |
esl_gamma.o\ |
| 200 |
esl_gencode.o\ |
| 201 |
esl_getopts.o\ |
| 202 |
esl_gev.o\ |
| 203 |
esl_graph.o\ |
| 204 |
esl_gumbel.o\ |
| 205 |
esl_heap.o\ |
| 206 |
esl_histogram.o\ |
| 207 |
esl_hmm.o\ |
| 208 |
esl_huffman.o\ |
| 209 |
esl_hyperexp.o\ |
| 210 |
esl_iset.o\ |
| 211 |
esl_json.o\ |
| 212 |
esl_keyhash.o\ |
| 213 |
esl_lognormal.o\ |
| 214 |
esl_matrixops.o\ |
| 215 |
esl_mem.o\ |
| 216 |
esl_minimizer.o\ |
| 217 |
esl_mixdchlet.o\ |
| 218 |
esl_mixgev.o\ |
| 219 |
esl_mpi.o\ |
| 220 |
esl_msa.o\ |
| 221 |
esl_msacluster.o\ |
| 222 |
esl_msafile.o\ |
| 223 |
esl_msafile2.o\ |
| 224 |
esl_msafile_a2m.o\ |
| 225 |
esl_msafile_afa.o\ |
| 226 |
esl_msafile_clustal.o\ |
| 227 |
esl_msafile_phylip.o\ |
| 228 |
esl_msafile_psiblast.o\ |
| 229 |
esl_msafile_selex.o\ |
| 230 |
esl_msafile_stockholm.o\ |
| 231 |
esl_msashuffle.o\ |
| 232 |
esl_msaweight.o\ |
| 233 |
esl_normal.o\ |
| 234 |
esl_paml.o\ |
| 235 |
esl_quicksort.o\ |
| 236 |
esl_random.o\ |
| 237 |
esl_rand64.o\ |
| 238 |
esl_randomseq.o\ |
| 239 |
esl_ratematrix.o\ |
| 240 |
esl_recorder.o\ |
| 241 |
esl_red_black.o\ |
| 242 |
esl_regexp.o\ |
| 243 |
esl_rootfinder.o\ |
| 244 |
esl_scorematrix.o\ |
| 245 |
esl_sq.o\ |
| 246 |
esl_sqio.o\ |
| 247 |
esl_sqio_ascii.o\ |
| 248 |
esl_sqio_ncbi.o\ |
| 249 |
esl_ssi.o\ |
| 250 |
esl_stack.o\ |
| 251 |
esl_stats.o\ |
| 252 |
esl_stopwatch.o\ |
| 253 |
esl_stretchexp.o\ |
| 254 |
esl_subcmd.o\ |
| 255 |
esl_threads.o\ |
| 256 |
esl_tree.o\ |
| 257 |
esl_varint.o\ |
| 258 |
esl_vectorops.o\ |
| 259 |
esl_weibull.o\ |
| 260 |
esl_workqueue.o\ |
| 261 |
esl_wuss.o |
| 262 |
# esl_swat.o |
| 263 |
|
| 264 |
|
| 265 |
# Separate lists of objects that may require special compiler flags |
| 266 |
# for SIMD vector code compilation: |
| 267 |
SSE_OBJS = esl_sse.o |
| 268 |
AVX_OBJS = esl_avx.o |
| 269 |
AVX512_OBJS = esl_avx512.o |
| 270 |
NEON_OBJS = esl_neon.o |
| 271 |
VMX_OBJS = esl_vmx.o |
| 272 |
ALL_OBJS = ${OBJS} ${SSE_OBJS} ${AVX_OBJS} ${AVX512_OBJS} ${NEON_OBJS} ${VMX_OBJS} |
| 273 |
|
| 274 |
# ... and add those flags, using gnu make's target-specific variable setting: |
| 275 |
${SSE_OBJS}: SIMD_CFLAGS = ${SSE_CFLAGS} |
| 276 |
${AVX_OBJS}: SIMD_CFLAGS = ${AVX_CFLAGS} |
| 277 |
${AVX512_OBJS}: SIMD_CFLAGS = ${AVX512_CFLAGS} |
| 278 |
${NEON_OBJS}: SIMD_CFLAGS = ${NEON_CFLAGS} |
| 279 |
${VMX_OBJS}: SIMD_CFLAGS = ${VMX_CFLAGS} |
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
UTESTS =\ |
| 284 |
easel_utest\ |
| 285 |
esl_alloc_utest\ |
| 286 |
esl_alphabet_utest\ |
| 287 |
esl_bitfield_utest\ |
| 288 |
esl_buffer_utest\ |
| 289 |
esl_cluster_utest\ |
| 290 |
esl_cpu_utest\ |
| 291 |
esl_dirichlet_utest\ |
| 292 |
esl_distance_utest\ |
| 293 |
esl_dmatrix_utest\ |
| 294 |
esl_dsqdata_utest\ |
| 295 |
esl_exponential_utest\ |
| 296 |
esl_fileparser_utest\ |
| 297 |
esl_gamma_utest\ |
| 298 |
esl_gencode_utest\ |
| 299 |
esl_getopts_utest\ |
| 300 |
esl_graph_utest\ |
| 301 |
esl_gumbel_utest\ |
| 302 |
esl_heap_utest\ |
| 303 |
esl_histogram_utest\ |
| 304 |
esl_hmm_utest\ |
| 305 |
esl_huffman_utest\ |
| 306 |
esl_hyperexp_utest\ |
| 307 |
esl_iset_utest\ |
| 308 |
esl_json_utest\ |
| 309 |
esl_keyhash_utest\ |
| 310 |
esl_lognormal_utest\ |
| 311 |
esl_matrixops_utest\ |
| 312 |
esl_mem_utest\ |
| 313 |
esl_minimizer_utest\ |
| 314 |
esl_mixdchlet_utest\ |
| 315 |
esl_msa_utest\ |
| 316 |
esl_msacluster_utest\ |
| 317 |
esl_msafile_utest\ |
| 318 |
esl_msafile2_utest\ |
| 319 |
esl_msafile_a2m_utest\ |
| 320 |
esl_msafile_afa_utest\ |
| 321 |
esl_msafile_clustal_utest\ |
| 322 |
esl_msafile_phylip_utest\ |
| 323 |
esl_msafile_psiblast_utest\ |
| 324 |
esl_msafile_selex_utest\ |
| 325 |
esl_msafile_stockholm_utest\ |
| 326 |
esl_msaweight_utest\ |
| 327 |
esl_normal_utest\ |
| 328 |
esl_quicksort_utest\ |
| 329 |
esl_random_utest\ |
| 330 |
esl_rand64_utest\ |
| 331 |
esl_randomseq_utest\ |
| 332 |
esl_ratematrix_utest\ |
| 333 |
esl_red_black_utest\ |
| 334 |
esl_recorder_utest\ |
| 335 |
esl_regexp_utest\ |
| 336 |
esl_rootfinder_utest\ |
| 337 |
esl_scorematrix_utest\ |
| 338 |
esl_sq_utest\ |
| 339 |
esl_sqio_utest\ |
| 340 |
esl_ssi_utest\ |
| 341 |
esl_stack_utest\ |
| 342 |
esl_stats_utest\ |
| 343 |
esl_stretchexp_utest\ |
| 344 |
esl_tree_utest\ |
| 345 |
esl_varint_utest\ |
| 346 |
esl_vectorops_utest\ |
| 347 |
esl_weibull_utest\ |
| 348 |
esl_wuss_utest |
| 349 |
# gev_utest\ |
| 350 |
# mixgev_utest\ |
| 351 |
# mpi_utest\ |
| 352 |
# paml_utest\ |
| 353 |
# stopwatch_utest\ |
| 354 |
# swat_utest\ |
| 355 |
|
| 356 |
SSE_UTESTS = esl_sse_utest |
| 357 |
AVX_UTESTS = esl_avx_utest |
| 358 |
AVX512_UTESTS = esl_avx512_utest |
| 359 |
NEON_UTESTS = esl_neon_utest |
| 360 |
VMX_UTESTS = esl_vmx_utest |
| 361 |
ALL_UTESTS = ${UTESTS} ${SSE_UTESTS} ${AVX_UTESTS} ${AVX512_UTESTS} ${NEON_UTESTS} ${VMX_UTESTS} |
| 362 |
|
| 363 |
${SSE_UTESTS}: SIMD_CFLAGS= ${SSE_CFLAGS} |
| 364 |
${AVX_UTESTS}: SIMD_CFLAGS= ${AVX_CFLAGS} |
| 365 |
${AVX512_UTESTS}: SIMD_CFLAGS= ${AVX512_CFLAGS} |
| 366 |
${NEON_UTESTS}: SIMD_CFLAGS= ${NEON_CFLAGS} |
| 367 |
${VMX_UTESTS}: SIMD_CFLAGS= ${VMX_CFLAGS} |
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
EXPERIMENTS = \ |
| 375 |
esl_scorematrix_experiment |
| 376 |
|
| 377 |
SSE_EXPERIMENTS = |
| 378 |
AVX_EXPERIMENTS = |
| 379 |
AVX512_EXPERIMENTS = |
| 380 |
NEON_EXPERIMENTS = |
| 381 |
VMX_EXPERIMENTS = |
| 382 |
ALL_EXPERIMENTS = ${EXPERIMENTS} ${SSE_EXPERIMENTS} ${AVX_EXPERIMENTS} ${AVX512_EXPERIMENTS} ${NEON_EXPERIMENTS} ${VMX_EXPERIMENTS} |
| 383 |
|
| 384 |
${SSE_EXPERIMENTS}: SIMD_CFLAGS= ${SSE_CFLAGS} |
| 385 |
${AVX_EXPERIMENTS}: SIMD_CFLAGS= ${AVX_CFLAGS} |
| 386 |
${AVX512_EXPERIMENTS}: SIMD_CFLAGS= ${AVX512_CFLAGS} |
| 387 |
${NEON_EXPERIMENTS}: SIMD_CFLAGS= ${NEON_CFLAGS} |
| 388 |
${VMX_EXPERIMENTS}: SIMD_CFLAGS= ${VMX_CFLAGS} |
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
BENCHMARKS =\ |
| 395 |
esl_alloc_benchmark \ |
| 396 |
esl_buffer_benchmark \ |
| 397 |
esl_keyhash_benchmark \ |
| 398 |
esl_mem_benchmark \ |
| 399 |
esl_random_benchmark \ |
| 400 |
esl_rand64_benchmark |
| 401 |
|
| 402 |
SSE_BENCHMARKS = esl_sse_benchmark |
| 403 |
AVX_BENCHMARKS = esl_avx_benchmark |
| 404 |
AVX512_BENCHMARKS = |
| 405 |
NEON_BENCHMARKS = esl_neon_benchmark |
| 406 |
VMX_BENCHMARKS = |
| 407 |
ALL_BENCHMARKS = ${BENCHMARKS} ${SSE_BENCHMARKS} ${AVX_BENCHMARKS} ${AVX512_BENCHMARKS} ${NEON_BENCHMARKS} ${VMX_BENCHMARKS} |
| 408 |
|
| 409 |
${SSE_BENCHMARKS}: SIMD_CFLAGS= ${SSE_CFLAGS} |
| 410 |
${AVX_BENCHMARKS}: SIMD_CFLAGS= ${AVX_CFLAGS} |
| 411 |
${AVX512_BENCHMARKS}: SIMD_CFLAGS= ${AVX512_CFLAGS} |
| 412 |
${NEON_BENCHMARKS}: SIMD_CFLAGS= ${NEON_CFLAGS} |
| 413 |
${VMX_BENCHMARKS}: SIMD_CFLAGS= ${VMX_CFLAGS} |
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
EXAMPLES = \ |
| 420 |
easel_example\ |
| 421 |
esl_alphabet_example\ |
| 422 |
esl_alphabet_example2\ |
| 423 |
esl_alphabet_example3\ |
| 424 |
esl_buffer_example\ |
| 425 |
esl_buffer_example2\ |
| 426 |
esl_buffer_example3\ |
| 427 |
esl_buffer_example4\ |
| 428 |
esl_buffer_example5\ |
| 429 |
esl_buffer_example6\ |
| 430 |
esl_cluster_example\ |
| 431 |
esl_cpu_example\ |
| 432 |
esl_dirichlet_example\ |
| 433 |
esl_distance_example\ |
| 434 |
esl_dmatrix_example\ |
| 435 |
esl_dsqdata_example\ |
| 436 |
esl_dsqdata_example2\ |
| 437 |
esl_exponential_example\ |
| 438 |
esl_fileparser_example\ |
| 439 |
esl_fileparser_example2\ |
| 440 |
esl_gamma_example\ |
| 441 |
esl_gencode_example\ |
| 442 |
esl_gencode_example2\ |
| 443 |
esl_getopts_example\ |
| 444 |
esl_getopts_example2\ |
| 445 |
esl_gev_example\ |
| 446 |
esl_gumbel_example\ |
| 447 |
esl_histogram_example\ |
| 448 |
esl_histogram_example2\ |
| 449 |
esl_histogram_example3\ |
| 450 |
esl_histogram_example4\ |
| 451 |
esl_histogram_example5\ |
| 452 |
esl_hmm_example\ |
| 453 |
esl_huffman_example\ |
| 454 |
esl_hyperexp_example\ |
| 455 |
esl_iset_example\ |
| 456 |
esl_json_example\ |
| 457 |
esl_keyhash_example\ |
| 458 |
esl_minimizer_example\ |
| 459 |
esl_mixdchlet_example\ |
| 460 |
esl_mixgev_example\ |
| 461 |
esl_msafile_example\ |
| 462 |
esl_msafile_a2m_example\ |
| 463 |
esl_msafile_a2m_example2\ |
| 464 |
esl_msafile_afa_example\ |
| 465 |
esl_msafile_afa_example2\ |
| 466 |
esl_msafile_clustal_example\ |
| 467 |
esl_msafile_clustal_example2\ |
| 468 |
esl_msafile_phylip_example\ |
| 469 |
esl_msafile_phylip_example2\ |
| 470 |
esl_msafile_psiblast_example\ |
| 471 |
esl_msafile_psiblast_example2\ |
| 472 |
esl_msafile_selex_example\ |
| 473 |
esl_msafile_selex_example2\ |
| 474 |
esl_msafile_stockholm_example\ |
| 475 |
esl_msafile_stockholm_example2\ |
| 476 |
esl_msacluster_example\ |
| 477 |
esl_msashuffle_example\ |
| 478 |
esl_msaweight_example\ |
| 479 |
esl_normal_example\ |
| 480 |
esl_random_example\ |
| 481 |
esl_rand64_example\ |
| 482 |
esl_regexp_example\ |
| 483 |
esl_regexp_example2\ |
| 484 |
esl_regexp_example3\ |
| 485 |
esl_rootfinder_example\ |
| 486 |
esl_rootfinder_example2\ |
| 487 |
esl_scorematrix_example\ |
| 488 |
esl_sq_example\ |
| 489 |
esl_sq_example2\ |
| 490 |
esl_sqio_example\ |
| 491 |
esl_sqio_example2\ |
| 492 |
esl_sqio_example3\ |
| 493 |
esl_ssi_example\ |
| 494 |
esl_ssi_example2\ |
| 495 |
esl_stack_example\ |
| 496 |
esl_stats_example\ |
| 497 |
esl_stats_example2\ |
| 498 |
esl_stopwatch_example\ |
| 499 |
esl_stretchexp_example\ |
| 500 |
esl_threads_example\ |
| 501 |
esl_threads_example2\ |
| 502 |
esl_tree_example\ |
| 503 |
esl_tree_example2\ |
| 504 |
esl_varint_example\ |
| 505 |
esl_vectorops_example\ |
| 506 |
esl_weibull_example\ |
| 507 |
esl_workqueue_example |
| 508 |
# esl_hmm_example\ |
| 509 |
# esl_msafile_clustal_example\ |
| 510 |
# esl_randomseq_example\ |
| 511 |
# esl_msa_example2\ |
| 512 |
|
| 513 |
SSE_EXAMPLES = esl_sse_example |
| 514 |
AVX_EXAMPLES = |
| 515 |
AVX512_EXAMPLES = |
| 516 |
NEON_EXAMPLES = esl_neon_example |
| 517 |
VMX_EXAMPLES = esl_vmx_example |
| 518 |
ALL_EXAMPLES = ${EXAMPLES} ${SSE_EXAMPLES} ${AVX_EXAMPLES} ${AVX512_EXAMPLES} ${NEON_EXAMPLES} ${VMX_EXAMPLES} |
| 519 |
|
| 520 |
${SSE_EXAMPLES}: SIMD_CFLAGS= ${SSE_CFLAGS} |
| 521 |
${AVX_EXAMPLES}: SIMD_CFLAGS= ${AVX_CFLAGS} |
| 522 |
${AVX512_EXAMPLES}: SIMD_CFLAGS= ${AVX512_CFLAGS} |
| 523 |
${NEON_EXAMPLES}: SIMD_CFLAGS= ${NEON_CFLAGS} |
| 524 |
${VMX_EXAMPLES}: SIMD_CFLAGS= ${VMX_CFLAGS} |
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
.PHONY: all dev tests check pdf install uninstall clean distclean dist implode TAGS |
| 530 |
.FORCE: |
| 531 |
|
| 532 |
all: libeasel.a .FORCE |
| 533 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} all |
| 534 |
|
| 535 |
dev: libeasel.a ${ALL_UTESTS} ${BENCHMARKS} ${EXPERIMENTS} ${EXAMPLES} .FORCE |
| 536 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} dev |
| 537 |
|
| 538 |
tests: ${ALL_UTESTS} |
| 539 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} tests |
| 540 |
|
| 541 |
check: ${ALL_UTESTS} .FORCE |
| 542 |
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make check', but is not in your PATH. Aborting."; exit 1; } |
| 543 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} check |
| 544 |
${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} check |
| 545 |
|
| 546 |
# `make dcheck`: run developer testsuite, save output in testsuite/dcheck.report |
| 547 |
dcheck: |
| 548 |
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make dcheck', but is not in your PATH. Aborting."; exit 1; } |
| 549 |
${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} dcheck |
| 550 |
|
| 551 |
pdf: |
| 552 |
${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} pdf |
| 553 |
|
| 554 |
libeasel.a: ${ALL_OBJS} |
| 555 |
${QUIET_AR}${AR} -r libeasel.a $(ALL_OBJS) > /dev/null 2>&1 |
| 556 |
@${RANLIB} libeasel.a |
| 557 |
|
| 558 |
${ALL_OBJS}: %.o : %.c ${HDRS} esl_config.h |
| 559 |
${QUIET_CC}${CC} -I. -I${srcdir} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} -c $< |
| 560 |
|
| 561 |
|
| 562 |
# Driver compilation: |
| 563 |
# |
| 564 |
# To compile built-in drivers, such as unit tests, we need to |
| 565 |
# construct a command line from module basename, module's testdriver |
| 566 |
# flag, and module's C file. This is accomplished via a |
| 567 |
# complex-looking shell scripture. |
| 568 |
# |
| 569 |
# $@ = driver name esl_msa_utest easel_utest |
| 570 |
# $${BASENAME} = base module name msa easel |
| 571 |
# $${DFLAG} = driver flag eslMSA_TESTDRIVE eslEASEL_TESTDRIVE |
| 572 |
# $${DFILE} = driver's C file esl_msa.c easel.c |
| 573 |
# |
| 574 |
${ALL_UTESTS}: libeasel.a |
| 575 |
@BASENAME=`echo $@ | sed -e 's/_utest//'| sed -e 's/^esl_//'` ;\ |
| 576 |
DFLAG=`echo $${BASENAME} | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`;\ |
| 577 |
DFLAG=esl$${DFLAG}_TESTDRIVE ;\ |
| 578 |
if test $@ = "easel_utest" ;\ |
| 579 |
then DFILE=${srcdir}/easel.c ;\ |
| 580 |
else DFILE=${srcdir}/esl_$${BASENAME}.c ;\ |
| 581 |
fi;\ |
| 582 |
if test ${V} ;\ |
| 583 |
then echo "${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS}" ;\ |
| 584 |
else echo ' ' GEN $@ ;\ |
| 585 |
fi ;\ |
| 586 |
${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS} |
| 587 |
|
| 588 |
${ALL_BENCHMARKS}: libeasel.a |
| 589 |
@BASENAME=`echo $@ | sed -e 's/_benchmark//'| sed -e 's/^esl_//'` ;\ |
| 590 |
DFLAG=`echo $${BASENAME} | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`;\ |
| 591 |
DFLAG=esl$${DFLAG}_BENCHMARK ;\ |
| 592 |
if test $@ = "easel_benchmark" ;\ |
| 593 |
then DFILE=${srcdir}/easel.c ;\ |
| 594 |
else DFILE=${srcdir}/esl_$${BASENAME}.c ;\ |
| 595 |
fi;\ |
| 596 |
if test ${V} ;\ |
| 597 |
then echo "${CC} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${CPPFLAGS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS}" ;\ |
| 598 |
else echo ' ' GEN $@ ;\ |
| 599 |
fi ;\ |
| 600 |
${CC} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${CPPFLAGS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS} |
| 601 |
|
| 602 |
${ALL_EXPERIMENTS}: libeasel.a |
| 603 |
@BASENAME=`echo $@ | sed -e 's/_experiment//'| sed -e 's/^esl_//'` ;\ |
| 604 |
DFLAG=`echo $${BASENAME} | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`;\ |
| 605 |
DFLAG=esl$${DFLAG}_EXPERIMENT ;\ |
| 606 |
if test $@ = "easel_experiment" ;\ |
| 607 |
then DFILE=${srcdir}/easel.c ;\ |
| 608 |
else DFILE=${srcdir}/esl_$${BASENAME}.c ;\ |
| 609 |
fi;\ |
| 610 |
if test ${V} ;\ |
| 611 |
then echo "${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS}" ;\ |
| 612 |
else echo ' ' GEN $@ ;\ |
| 613 |
fi ;\ |
| 614 |
${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS} |
| 615 |
|
| 616 |
${ALL_EXAMPLES}: libeasel.a |
| 617 |
@BASENAME=`echo $@ | sed -e 's/_example[0-9]*//'| sed -e 's/^esl_//'` ;\ |
| 618 |
DFLAG=esl`echo $@ | sed -e 's/^esl_//' | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`;\ |
| 619 |
if test $@ = "easel_example"; \ |
| 620 |
then DFILE=${srcdir}/easel.c ;\ |
| 621 |
else DFILE=${srcdir}/esl_$${BASENAME}.c ;\ |
| 622 |
fi ;\ |
| 623 |
if test ${V}; \ |
| 624 |
then echo "${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMDFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS}" ;\ |
| 625 |
else echo ' ' GEN $@ ;\ |
| 626 |
fi ;\ |
| 627 |
${CC} ${CPPFLAGS} ${CFLAGS} ${PTHREAD_CFLAGS} ${PIC_CFLAGS} ${SIMD_CFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS} |
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
# install: miniapp binaries in ${bindir}/ |
| 632 |
# - we don't install headers or libeasel.a; we never use it that way. |
| 633 |
# instead, easel is included as a subdir of hmmer, infernal projects) |
| 634 |
# - always verbose, no quiet beautification |
| 635 |
# |
| 636 |
install: |
| 637 |
${INSTALL} -d ${DESTDIR}${bindir} |
| 638 |
${INSTALL} -d ${DESTDIR}${man1dir} |
| 639 |
${MAKE} -C miniapps install |
| 640 |
|
| 641 |
uninstall: |
| 642 |
${MAKE} -C miniapps uninstall |
| 643 |
|
| 644 |
|
| 645 |
# "make clean" removes almost everything except configuration files |
| 646 |
# |
| 647 |
clean: |
| 648 |
${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} clean |
| 649 |
${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} clean |
| 650 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} clean |
| 651 |
${QUIET}-rm -f ${ALL_OBJS} libeasel.a |
| 652 |
${QUIET}-rm -f ${ALL_UTESTS} ${ALL_BENCHMARKS} ${ALL_EXAMPLES} ${ALL_EXPERIMENTS} |
| 653 |
${QUIET}-rm -f *~ TAGS TAGS.part |
| 654 |
${QUIET}-rm -f *.gcno *.gcda *.gcov |
| 655 |
${QUIET}-rm -f cscope.out |
| 656 |
${QUIET}-rm -f core.[0-9]* |
| 657 |
${QUIET}-rm -f esltmp?????? |
| 658 |
${QUIET}-rm -f config.log config.status |
| 659 |
${QUIET}for prog in ${ALL_UTESTS} ${ALL_BENCHMARKS} ${ALL_EXAMPLES} ${ALL_EXPERIMENTS}; do\ |
| 660 |
if test -d $$prog.dSYM; then rm -rf $$prog.dSYM; fi;\ |
| 661 |
done |
| 662 |
ifndef V |
| 663 |
@echo ' ' CLEAN easel |
| 664 |
endif |
| 665 |
|
| 666 |
|
| 667 |
distclean: clean |
| 668 |
${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} distclean |
| 669 |
${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} distclean |
| 670 |
${QUIET_SUBDIR0}miniapps ${QUIET_SUBDIR1} distclean |
| 671 |
${QUIET}-rm -f esl_config.h decoy_config.h |
| 672 |
${QUIET}-rm -rf autom4te.cache |
| 673 |
${QUIET}-rm -f Makefile |
| 674 |
|
| 675 |
gitclean: distclean |
| 676 |
${QUIET}-rm -f configure |
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
TAGS: |
| 681 |
./makeTAGS.sh |
| 682 |
|