-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
624 lines (546 loc) · 25.7 KB
/
Makefile.am
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
#
# Copyright © 2022 Barry Schwartz
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License, as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received copies of the GNU General Public License
# along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
.DELETE_ON_ERROR:
ACLOCAL_AMFLAGS = -I m4 --install
AUTOMAKE_OPTIONS =
AUTOMAKE_OPTIONS += foreign
AUTOMAKE_OPTIONS += subdir-objects
AUTOMAKE_OPTIONS += -Wno-portability
include $(top_srcdir)/aminclude_static.am
@GNU@ include $(top_srcdir)/silent-rules.mk
@GNU@ -include ats-dependencies/*.mk
EXTRA_DIST =
MOSTLYCLEANFILES =
CLEANFILES =
DISTCLEANFILES =
BUILT_SOURCES =
AM_M4FLAGS =
AM_CPPFLAGS =
AM_CFLAGS =
AM_LDFLAGS =
LDADD =
bin_PROGRAMS =
lib_LTLIBRARIES =
EXTRA_PROGRAMS =
TESTS =
nobase_nodist_pkginclude_HEADERS =
nodist_pkgconfig_DATA =
EXTRA_DIST += $(srcdir)/silent-rules.mk
EXTRA_DIST += COPYING
EXTRA_DIST += INSTALL
EXTRA_DIST += README
EXTRA_DIST += AUTHORS
DISTCLEANFILES += Makefile
DISTCLEANFILES += GNUmakefile
AM_CPPFLAGS += -I$(builddir)
AM_CPPFLAGS += -I$(srcdir)
AM_CPPFLAGS += -I$(PATSHOME)
AM_CPPFLAGS += -I$(PATSHOME)/ccomp/runtime/
LDADD += $(CODE_COVERAGE_LIBS)
CODE_COVERAGE_IGNORE_PATTERN =
CODE_COVERAGE_IGNORE_PATTERN += /usr/include/*
CODE_COVERAGE_IGNORE_PATTERN += /usr/include/*/*
CODE_COVERAGE_IGNORE_PATTERN += $(PATSHOME)/ccomp/runtime/*
CODE_COVERAGE_IGNORE_PATTERN += $(PATSHOME)/prelude/CATS/*
clean-local: code-coverage-clean tests-clean
distclean-local: code-coverage-dist-clean ats-includes-distclean
#--------------------------------------------------------------------------
TOTAL_M4FLAGS =
TOTAL_M4FLAGS += $(AM_M4FLAGS)
TOTAL_M4FLAGS += $(M4FLAGS)
TOTAL_M4FLAGS += $(XM4FLAGS)
%.dats: %.dats.m4 common-macros.m4 timsort-macros.m4
@$(MKDIR_P) $(@D)
$(call v,M4)$(M4) $(TOTAL_M4FLAGS) $(<) > $(@)
#--------------------------------------------------------------------------
PATSOPT_DEPS =
AM_PATSOPTFLAGS =
AM_PATSOPTFLAGS += -IATS $(builddir)
AM_PATSOPTFLAGS += -IATS $(srcdir)
TOTAL_PATSOPTFLAGS =
TOTAL_PATSOPTFLAGS += $(AM_PATSOPTFLAGS)
TOTAL_PATSOPTFLAGS += $(PATSOPTFLAGS)
TOTAL_PATSOPTFLAGS += $(XPATSOPTFLAGS)
TESTS_PATSOPTFLAGS =
TESTS_PATSOPTFLAGS += -IATS $(builddir)/tests
TESTS_PATSOPTFLAGS += -IATS $(srcdir)/tests
@GNU@ define write-dependencies-file =
@GNU@ $(MKDIR_P) ats-dependencies && \
@GNU@ echo $(1): $(shell ./list-ats-dependencies $(2)) \
@GNU@ > ats-dependencies/`echo $(@) | $(SED) 's|/|_057_|g'`.mk
@GNU@ endef
.PHONY: ats-includes-distclean
ats-includes-distclean:
-rm -f -R ats-dependencies
if DEPENDENCY_TRACKING
%_sats.c: %.sats $(PATSOPT_DEPS) list-ats-dependencies
@$(call write-dependencies-file,$(@),$(<))
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) -s $(<)
%_dats.c: %.dats $(PATSOPT_DEPS) list-ats-dependencies
@$(call write-dependencies-file,$(@),$(<))
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) -d $(<)
%_tests.c: %.dats $(PATSOPT_DEPS) list-ats-dependencies
@$(call write-dependencies-file,$(@),$(<))
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) \
$(TESTS_PATSOPTFLAGS) -d $(<)
else !DEPENDENCY_TRACKING
%_sats.c: %.sats $(PATSOPT_DEPS)
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) -s $(<)
%_dats.c: %.dats $(PATSOPT_DEPS)
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) -d $(<)
%_tests.c: %.dats $(PATSOPT_DEPS)
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) \
$(TESTS_PATSOPTFLAGS) -d $(<)
endif !DEPENDENCY_TRACKING
%_depsprog.c: %.dats $(PATSOPT_DEPS)
@$(MKDIR_P) $(@D)
$(call v,PATSOPT)$(PATSOPT) -o $(@) $(TOTAL_PATSOPTFLAGS) -d $(<)
#--------------------------------------------------------------------------
#
# The ATS2 library.
#
lib_LTLIBRARIES += libats2-timsort.la
BPTR_SATS = timsort/SATS/bptr.sats
BPTR_DATS = timsort/DATS/bptr.dats
BPTR_SATS_C = timsort/SATS/bptr_sats.c
BPTR_DATS_C = timsort/DATS/bptr_dats.c
CLEANFILES += $(BPTR_SATS_C)
CLEANFILES += $(BPTR_DATS_C)
BPTR_CATS = timsort/CATS/bptr.cats
ARRAY_TIMSORT_SATS = timsort/SATS/array-timsort.sats
ARRAY_TIMSORT_DATS = timsort/DATS/array-timsort.dats
ARRAY_TIMSORT_SATS_C = timsort/SATS/array-timsort_sats.c
ARRAY_TIMSORT_DATS_C = timsort/DATS/array-timsort_dats.c
CLEANFILES += $(ARRAY_TIMSORT_SATS_C)
CLEANFILES += $(ARRAY_TIMSORT_DATS_C)
ARRAY_TIMSORT_HATS =
ARRAY_TIMSORT_HATS += timsort/HATS/array-timsort_dats.hats
ARRAY_TIMSORT_HATS += timsort/HATS/array-timsort.hats
LIST_TIMSORT_SATS = timsort/SATS/list-timsort.sats
LIST_TIMSORT_DATS = timsort/DATS/list-timsort.dats
LIST_TIMSORT_SATS_C = timsort/SATS/list-timsort_sats.c
LIST_TIMSORT_DATS_C = timsort/DATS/list-timsort_dats.c
CLEANFILES += $(LIST_TIMSORT_SATS_C)
CLEANFILES += $(LIST_TIMSORT_DATS_C)
LIST_TIMSORT_HATS =
LIST_TIMSORT_HATS += timsort/HATS/list-timsort_dats.hats
LIST_TIMSORT_HATS += timsort/HATS/list-timsort.hats
TIMSORT_COMMON_SATS = timsort/SATS/COMMON/timsort-common.sats
TIMSORT_COMMON_DATS = timsort/DATS/COMMON/timsort-common.dats
TIMSORT_COMMON_SATS_C = timsort/SATS/COMMON/timsort-common_sats.c
TIMSORT_COMMON_DATS_C = timsort/DATS/COMMON/timsort-common_dats.c
CLEANFILES += $(TIMSORT_COMMON_SATS_C)
CLEANFILES += $(TIMSORT_COMMON_DATS_C)
TIMSORT_CATS = timsort/CATS/timsort.cats
nobase_dist_pkginclude_HEADERS =
nobase_dist_pkginclude_HEADERS += $(BPTR_SATS)
nobase_dist_pkginclude_HEADERS += $(BPTR_DATS)
nobase_dist_pkginclude_HEADERS += $(BPTR_CATS)
nobase_dist_pkginclude_HEADERS += $(ARRAY_TIMSORT_SATS)
nobase_dist_pkginclude_HEADERS += $(ARRAY_TIMSORT_DATS)
nobase_dist_pkginclude_HEADERS += $(LIST_TIMSORT_SATS)
nobase_dist_pkginclude_HEADERS += $(LIST_TIMSORT_DATS)
nobase_dist_pkginclude_HEADERS += $(TIMSORT_COMMON_SATS)
nobase_dist_pkginclude_HEADERS += $(TIMSORT_COMMON_DATS)
nobase_dist_pkginclude_HEADERS += $(ARRAY_TIMSORT_HATS)
nobase_dist_pkginclude_HEADERS += $(LIST_TIMSORT_HATS)
nobase_dist_pkginclude_HEADERS += $(TIMSORT_CATS)
nodist_libats2_timsort_la_SOURCES =
nodist_libats2_timsort_la_SOURCES += $(BPTR_SATS_C)
nodist_libats2_timsort_la_SOURCES += $(BPTR_DATS_C)
nodist_libats2_timsort_la_SOURCES += $(ARRAY_TIMSORT_SATS_C)
nodist_libats2_timsort_la_SOURCES += $(ARRAY_TIMSORT_DATS_C)
nodist_libats2_timsort_la_SOURCES += $(LIST_TIMSORT_SATS_C)
nodist_libats2_timsort_la_SOURCES += $(LIST_TIMSORT_DATS_C)
nodist_libats2_timsort_la_SOURCES += $(TIMSORT_COMMON_SATS_C)
nodist_libats2_timsort_la_SOURCES += $(TIMSORT_COMMON_DATS_C)
libats2_timsort_la_DEPENDENCIES =
libats2_timsort_la_DEPENDENCIES += $(TIMSORT_CATS)
libats2_timsort_la_DEPENDENCIES += $(BPTR_CATS)
#--------------------------------------------------------------------------
#
# The C library.
#
lib_LTLIBRARIES += libats2-timsort-c.la
TIMSORT_ATS_SRC =
TIMSORT_C_SRC =
$(TIMSORT_ATS_SRC): typed-timsort-for-c.dats.m4
include $(top_srcdir)/ats2-timsort-c.am
nodist_libats2_timsort_c_la_SOURCES =
nodist_libats2_timsort_c_la_SOURCES += $(TIMSORT_C_SRC)
nodist_libats2_timsort_c_la_SOURCES += timsort-for-c-memory_dats.c
nodist_libats2_timsort_c_la_SOURCES += timsort-for-c-to-array_dats.c
dist_libats2_timsort_c_la_SOURCES =
dist_libats2_timsort_c_la_SOURCES += ats2-timsort.h
dist_libats2_timsort_c_la_SOURCES += timsort-for-c-memory.h
nobase_dist_pkginclude_HEADERS += ats2-timsort.h
timsort-for-c-memory_dats.$(OBJEXT): timsort-for-c-memory.include.c
CLEANFILES += timsort-for-c-memory_dats.c
CLEANFILES += timsort-for-c-to-array_dats.c
EXTRA_DIST += typed-timsort-for-c.dats.m4
EXTRA_DIST += timsort-for-c-memory.dats
EXTRA_DIST += timsort-for-c-memory.include.c
EXTRA_DIST += timsort-for-c-to-array.dats
#--------------------------------------------------------------------------
EXTRA_DIST += tests/test-timsort-c.c.m4
TESTS += tests/test-clz
EXTRA_PROGRAMS += tests/test-clz
CLEANFILES += tests/test-clz
CLEANFILES += tests/test-clz_tests.c
EXTRA_DIST += tests/test-clz.dats
tests_test_clz_SOURCES =
tests_test_clz_SOURCES += tests/test-clz_tests.c
tests_test_clz_DEPENDENCIES =
tests_test_clz_DEPENDENCIES += tests/test-clz.dats
tests_test_clz_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_clz_CPPFLAGS =
tests_test_clz_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_clz_LDADD =
tests/test-clz_tests.c: tests/test-clz.dats
TESTS += tests/test-minrun
EXTRA_PROGRAMS += tests/test-minrun
CLEANFILES += tests/test-minrun
CLEANFILES += tests/test-minrun_tests.c
EXTRA_DIST += tests/test-minrun.dats
tests_test_minrun_SOURCES =
tests_test_minrun_SOURCES += tests/test-minrun_tests.c
tests_test_minrun_DEPENDENCIES =
tests_test_minrun_DEPENDENCIES += tests/test-minrun.dats
tests_test_minrun_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_minrun_CPPFLAGS =
tests_test_minrun_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_minrun_LDADD =
tests/test-minrun_tests.c: tests/test-minrun.dats
TESTS += tests/test-nodepower
EXTRA_PROGRAMS += tests/test-nodepower
CLEANFILES += tests/test-nodepower
CLEANFILES += tests/test-nodepower_tests.c
EXTRA_DIST += tests/test-nodepower.dats
tests_test_nodepower_SOURCES =
tests_test_nodepower_SOURCES += tests/test-nodepower_tests.c
tests_test_nodepower_DEPENDENCIES =
tests_test_nodepower_DEPENDENCIES += tests/test-nodepower.dats
tests_test_nodepower_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_nodepower_CPPFLAGS =
tests_test_nodepower_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_nodepower_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_nodepower_LDADD =
tests/test-nodepower_tests.c: tests/test-nodepower.dats
TESTS += tests/test-galloping
EXTRA_PROGRAMS += tests/test-galloping
CLEANFILES += tests/test-galloping
CLEANFILES += tests/test-galloping_tests.c
EXTRA_DIST += tests/test-galloping.dats
tests_test_galloping_SOURCES =
tests_test_galloping_SOURCES += tests/test-galloping_tests.c
tests_test_galloping_DEPENDENCIES =
tests_test_galloping_DEPENDENCIES += tests/test-galloping.dats
tests_test_galloping_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_galloping_CPPFLAGS =
tests_test_galloping_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_galloping_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_galloping_LDADD =
tests/test-galloping_tests.c: tests/test-galloping.dats
TESTS += tests/test-merges
EXTRA_PROGRAMS += tests/test-merges
CLEANFILES += tests/test-merges
CLEANFILES += tests/test-merges_tests.c
EXTRA_DIST += tests/test-merges.dats
tests_test_merges_SOURCES =
tests_test_merges_SOURCES += tests/test-merges_tests.c
tests_test_merges_DEPENDENCIES =
tests_test_merges_DEPENDENCIES += tests/test-merges.dats
tests_test_merges_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_merges_CPPFLAGS =
tests_test_merges_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_merges_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_merges_LDADD =
tests/test-merges_tests.c: tests/test-merges.dats
TESTS += tests/test-array_timsort
EXTRA_PROGRAMS += tests/test-array_timsort
CLEANFILES += tests/test-array_timsort
CLEANFILES += tests/test-array_timsort_tests.c
EXTRA_DIST += tests/test-array_timsort.dats
tests_test_array_timsort_SOURCES =
tests_test_array_timsort_SOURCES += tests/test-array_timsort_tests.c
tests_test_array_timsort_DEPENDENCIES =
tests_test_array_timsort_DEPENDENCIES += tests/test-array_timsort.dats
tests_test_array_timsort_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_array_timsort_DEPENDENCIES += libats2-timsort.la
tests_test_array_timsort_CPPFLAGS =
tests_test_array_timsort_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_array_timsort_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_array_timsort_LDADD =
tests_test_array_timsort_LDADD += libats2-timsort.la
tests/test-array_timsort_tests.c: tests/test-array_timsort.dats
TESTS += tests/test-timing-array_timsort
EXTRA_PROGRAMS += tests/test-timing-array_timsort
CLEANFILES += tests/test-timing-array_timsort
CLEANFILES += tests/test-timing-array_timsort_tests.c
EXTRA_DIST += tests/test-timing-array_timsort.dats
tests_test_timing_array_timsort_SOURCES =
tests_test_timing_array_timsort_SOURCES += tests/test-timing-array_timsort_tests.c
tests_test_timing_array_timsort_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timing_array_timsort_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timing_array_timsort_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timing_array_timsort_DEPENDENCIES =
tests_test_timing_array_timsort_DEPENDENCIES += tests/test-timing-array_timsort.dats
tests_test_timing_array_timsort_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_timing_array_timsort_DEPENDENCIES += libats2-timsort.la
tests_test_timing_array_timsort_CPPFLAGS =
tests_test_timing_array_timsort_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timing_array_timsort_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timing_array_timsort_LDADD =
tests_test_timing_array_timsort_LDADD += libats2-timsort.la
tests/test-timing-array_timsort_tests.c: tests/test-timing-array_timsort.dats
TESTS += tests/test-timsort_to_pointers
EXTRA_PROGRAMS += tests/test-timsort_to_pointers
CLEANFILES += tests/test-timsort_to_pointers
tests_test_timsort_to_pointers_SOURCES =
tests_test_timsort_to_pointers_SOURCES += tests/test-timsort_to_pointers.c
tests_test_timsort_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timsort_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timsort_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timsort_to_pointers_DEPENDENCIES =
tests_test_timsort_to_pointers_DEPENDENCIES += libats2-timsort-c.la
tests_test_timsort_to_pointers_CPPFLAGS =
tests_test_timsort_to_pointers_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timsort_to_pointers_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timsort_to_pointers_LDADD =
tests_test_timsort_to_pointers_LDADD += libats2-timsort-c.la
TESTS += tests/test-timsort_r_to_pointers
EXTRA_PROGRAMS += tests/test-timsort_r_to_pointers
CLEANFILES += tests/test-timsort_r_to_pointers
tests_test_timsort_r_to_pointers_SOURCES =
tests_test_timsort_r_to_pointers_SOURCES += tests/test-timsort_r_to_pointers.c
tests_test_timsort_r_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timsort_r_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timsort_r_to_pointers_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timsort_r_to_pointers_DEPENDENCIES =
tests_test_timsort_r_to_pointers_DEPENDENCIES += libats2-timsort-c.la
tests_test_timsort_r_to_pointers_CPPFLAGS =
tests_test_timsort_r_to_pointers_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timsort_r_to_pointers_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timsort_r_to_pointers_LDADD =
tests_test_timsort_r_to_pointers_LDADD += libats2-timsort-c.la
TESTS += tests/test-timsort_to_array
EXTRA_PROGRAMS += tests/test-timsort_to_array
CLEANFILES += tests/test-timsort_to_array
tests_test_timsort_to_array_SOURCES =
tests_test_timsort_to_array_SOURCES += tests/test-timsort_to_array.c
tests_test_timsort_to_array_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timsort_to_array_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timsort_to_array_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timsort_to_array_DEPENDENCIES =
tests_test_timsort_to_array_DEPENDENCIES += libats2-timsort-c.la
tests_test_timsort_to_array_CPPFLAGS =
tests_test_timsort_to_array_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timsort_to_array_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timsort_to_array_LDADD =
tests_test_timsort_to_array_LDADD += libats2-timsort-c.la
TESTS += tests/test-timsort_r_to_array
EXTRA_PROGRAMS += tests/test-timsort_r_to_array
CLEANFILES += tests/test-timsort_r_to_array
tests_test_timsort_r_to_array_SOURCES =
tests_test_timsort_r_to_array_SOURCES += tests/test-timsort_r_to_array.c
tests_test_timsort_r_to_array_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timsort_r_to_array_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timsort_r_to_array_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timsort_r_to_array_DEPENDENCIES =
tests_test_timsort_r_to_array_DEPENDENCIES += libats2-timsort-c.la
tests_test_timsort_r_to_array_CPPFLAGS =
tests_test_timsort_r_to_array_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timsort_r_to_array_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timsort_r_to_array_LDADD =
tests_test_timsort_r_to_array_LDADD += libats2-timsort-c.la
TESTS += tests/test-timsort_to_array-big-records
EXTRA_PROGRAMS += tests/test-timsort_to_array-big-records
CLEANFILES += tests/test-timsort_to_array-big-records
tests_test_timsort_to_array_big_records_SOURCES =
tests_test_timsort_to_array_big_records_SOURCES += tests/test-timsort_to_array-big-records.c
tests_test_timsort_to_array_big_records_SOURCES += tests/Perry-Nadkarni/timsort.c
tests_test_timsort_to_array_big_records_SOURCES += tests/Perry-Nadkarni/timsort.h
tests_test_timsort_to_array_big_records_SOURCES += tests/Perry-Nadkarni/timsort-impl.h
tests_test_timsort_to_array_big_records_DEPENDENCIES =
tests_test_timsort_to_array_big_records_DEPENDENCIES += libats2-timsort-c.la
tests_test_timsort_to_array_big_records_CPPFLAGS =
tests_test_timsort_to_array_big_records_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_timsort_to_array_big_records_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_timsort_to_array_big_records_LDADD =
tests_test_timsort_to_array_big_records_LDADD += libats2-timsort-c.la
TESTS += tests/test-list_vt_insertion_sort
EXTRA_PROGRAMS += tests/test-list_vt_insertion_sort
CLEANFILES += tests/test-list_vt_insertion_sort
CLEANFILES += tests/test-list_vt_insertion_sort_tests.c
EXTRA_DIST += tests/test-list_vt_insertion_sort.dats
tests_test_list_vt_insertion_sort_SOURCES =
tests_test_list_vt_insertion_sort_SOURCES += tests/test-list_vt_insertion_sort_tests.c
tests_test_list_vt_insertion_sort_DEPENDENCIES =
tests_test_list_vt_insertion_sort_DEPENDENCIES += tests/test-list_vt_insertion_sort.dats
tests_test_list_vt_insertion_sort_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_list_vt_insertion_sort_CPPFLAGS =
tests_test_list_vt_insertion_sort_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_list_vt_insertion_sort_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_list_vt_insertion_sort_LDADD =
tests/test-list_vt_insertion_sort_tests.c: tests/test-list_vt_insertion_sort.dats
TESTS += tests/test-splits-after-run
EXTRA_PROGRAMS += tests/test-splits-after-run
CLEANFILES += tests/test-splits-after-run
CLEANFILES += tests/test-splits-after-run_tests.c
EXTRA_DIST += tests/test-splits-after-run.dats
tests_test_splits_after_run_SOURCES =
tests_test_splits_after_run_SOURCES += tests/test-splits-after-run_tests.c
tests_test_splits_after_run_DEPENDENCIES =
tests_test_splits_after_run_DEPENDENCIES += tests/test-splits-after-run.dats
tests_test_splits_after_run_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_splits_after_run_CPPFLAGS =
tests_test_splits_after_run_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_splits_after_run_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_splits_after_run_LDADD =
tests/test-splits-after-run_tests.c: tests/test-splits-after-run.dats
TESTS += tests/test-provide_a_nondecreasing_run
EXTRA_PROGRAMS += tests/test-provide_a_nondecreasing_run
CLEANFILES += tests/test-provide_a_nondecreasing_run
CLEANFILES += tests/test-provide_a_nondecreasing_run_tests.c
EXTRA_DIST += tests/test-provide_a_nondecreasing_run.dats
tests_test_provide_a_nondecreasing_run_SOURCES =
tests_test_provide_a_nondecreasing_run_SOURCES += tests/test-provide_a_nondecreasing_run_tests.c
tests_test_provide_a_nondecreasing_run_DEPENDENCIES =
tests_test_provide_a_nondecreasing_run_DEPENDENCIES += tests/test-provide_a_nondecreasing_run.dats
tests_test_provide_a_nondecreasing_run_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_provide_a_nondecreasing_run_CPPFLAGS =
tests_test_provide_a_nondecreasing_run_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_provide_a_nondecreasing_run_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_provide_a_nondecreasing_run_LDADD =
tests/test-provide_a_nondecreasing_run_tests.c: tests/test-provide_a_nondecreasing_run.dats
TESTS += tests/test-merge_two_nondecreasing_runs
EXTRA_PROGRAMS += tests/test-merge_two_nondecreasing_runs
CLEANFILES += tests/test-merge_two_nondecreasing_runs
CLEANFILES += tests/test-merge_two_nondecreasing_runs_tests.c
EXTRA_DIST += tests/test-merge_two_nondecreasing_runs.dats
tests_test_merge_two_nondecreasing_runs_SOURCES =
tests_test_merge_two_nondecreasing_runs_SOURCES += tests/test-merge_two_nondecreasing_runs_tests.c
tests_test_merge_two_nondecreasing_runs_DEPENDENCIES =
tests_test_merge_two_nondecreasing_runs_DEPENDENCIES += tests/test-merge_two_nondecreasing_runs.dats
tests_test_merge_two_nondecreasing_runs_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_merge_two_nondecreasing_runs_CPPFLAGS =
tests_test_merge_two_nondecreasing_runs_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_merge_two_nondecreasing_runs_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_merge_two_nondecreasing_runs_LDADD =
tests/test-merge_two_nondecreasing_runs_tests.c: tests/test-merge_two_nondecreasing_runs.dats
TESTS += tests/test-list_vt_timsort
EXTRA_PROGRAMS += tests/test-list_vt_timsort
CLEANFILES += tests/test-list_vt_timsort
CLEANFILES += tests/test-list_vt_timsort_tests.c
EXTRA_DIST += tests/test-list_vt_timsort.dats
tests_test_list_vt_timsort_SOURCES =
tests_test_list_vt_timsort_SOURCES += tests/test-list_vt_timsort_tests.c
tests_test_list_vt_timsort_DEPENDENCIES =
tests_test_list_vt_timsort_DEPENDENCIES += tests/test-list_vt_timsort.dats
tests_test_list_vt_timsort_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_list_vt_timsort_DEPENDENCIES += libats2-timsort.la
tests_test_list_vt_timsort_CPPFLAGS =
tests_test_list_vt_timsort_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_list_vt_timsort_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_list_vt_timsort_LDADD =
tests_test_list_vt_timsort_LDADD += libats2-timsort.la
tests/test-list_vt_timsort_tests.c: tests/test-list_vt_timsort.dats
TESTS += tests/test-list_vt_timsort-derivatives
EXTRA_PROGRAMS += tests/test-list_vt_timsort-derivatives
CLEANFILES += tests/test-list_vt_timsort-derivatives
CLEANFILES += tests/test-list_vt_timsort-derivatives_tests.c
EXTRA_DIST += tests/test-list_vt_timsort-derivatives.dats
tests_test_list_vt_timsort_derivatives_SOURCES =
tests_test_list_vt_timsort_derivatives_SOURCES += tests/test-list_vt_timsort-derivatives_tests.c
tests_test_list_vt_timsort_derivatives_DEPENDENCIES =
tests_test_list_vt_timsort_derivatives_DEPENDENCIES += tests/test-list_vt_timsort-derivatives.dats
tests_test_list_vt_timsort_derivatives_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_list_vt_timsort_derivatives_DEPENDENCIES += libats2-timsort.la
tests_test_list_vt_timsort_derivatives_CPPFLAGS =
tests_test_list_vt_timsort_derivatives_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_list_vt_timsort_derivatives_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_list_vt_timsort_derivatives_LDADD =
tests_test_list_vt_timsort_derivatives_LDADD += libats2-timsort.la
tests/test-list_vt_timsort_derivatives_tests.c: tests/test-list_vt_timsort-derivatives.dats
TESTS += tests/test-list_timsort
EXTRA_PROGRAMS += tests/test-list_timsort
CLEANFILES += tests/test-list_timsort
CLEANFILES += tests/test-list_timsort_tests.c
EXTRA_DIST += tests/test-list_timsort.dats
tests_test_list_timsort_SOURCES =
tests_test_list_timsort_SOURCES += tests/test-list_timsort_tests.c
tests_test_list_timsort_DEPENDENCIES =
tests_test_list_timsort_DEPENDENCIES += tests/test-list_timsort.dats
tests_test_list_timsort_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_list_timsort_DEPENDENCIES += libats2-timsort.la
tests_test_list_timsort_CPPFLAGS =
tests_test_list_timsort_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_list_timsort_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_list_timsort_LDADD =
tests_test_list_timsort_LDADD += libats2-timsort.la
tests/test-list_timsort_tests.c: tests/test-list_timsort.dats
TESTS += tests/test-list_timsort-derivatives
EXTRA_PROGRAMS += tests/test-list_timsort-derivatives
CLEANFILES += tests/test-list_timsort-derivatives
CLEANFILES += tests/test-list_timsort-derivatives_tests.c
EXTRA_DIST += tests/test-list_timsort-derivatives.dats
tests_test_list_timsort_derivatives_SOURCES =
tests_test_list_timsort_derivatives_SOURCES += tests/test-list_timsort-derivatives_tests.c
tests_test_list_timsort_derivatives_DEPENDENCIES =
tests_test_list_timsort_derivatives_DEPENDENCIES += tests/test-list_timsort-derivatives.dats
tests_test_list_timsort_derivatives_DEPENDENCIES += timsort/CATS/timsort.cats
tests_test_list_timsort_derivatives_DEPENDENCIES += libats2-timsort.la
tests_test_list_timsort_derivatives_CPPFLAGS =
tests_test_list_timsort_derivatives_CPPFLAGS += $(AM_CPPFLAGS)
tests_test_list_timsort_derivatives_CPPFLAGS += -DATS_MEMALLOC_LIBC
tests_test_list_timsort_derivatives_LDADD =
tests_test_list_timsort_derivatives_LDADD += libats2-timsort.la
tests/test-list_timsort_derivatives_tests.c: tests/test-list_timsort-derivatives.dats
tests-clean:
-rm -f tests/*.$(OBJEXT)
#--------------------------------------------------------------------------
#
# Computation of dependencies.
#
EXTRA_PROGRAMS += list-ats-dependencies
EXTRA_DIST += list-ats-dependencies.dats
CLEANFILES += list-ats-dependencies
CLEANFILES += list-ats-dependencies_depsprog.c
nodist_list_ats_dependencies_SOURCES =
nodist_list_ats_dependencies_SOURCES += list-ats-dependencies_depsprog.c
list_ats_dependencies_CPPFLAGS =
list_ats_dependencies_CPPFLAGS += $(AM_CPPFLAGS)
list_ats_dependencies_CPPFLAGS += -DATS_MEMALLOC_LIBC
list_ats_dependencies_DEPENDENCIES =
list_ats_dependencies_DEPENDENCIES += list-ats-dependencies.dats
list_ats_dependencies_LDADD =
list_ats_dependencies_LDADD += -L'$(PATSHOME)/ccomp/atslib/lib'
list_ats_dependencies_LDADD += -latslib
#--------------------------------------------------------------------------
nodist_pkgconfig_DATA += ats2-timsort.pc
nodist_pkgconfig_DATA += ats2-timsort-c.pc
#--------------------------------------------------------------------------
# local variables:
# coding: utf-8
# end: