-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
688 lines (542 loc) · 25.9 KB
/
Makefile
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
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
include libraries.mk
SOURCES = planar/stats_pl.c planar/count_pl.c planar/select_pl.c\
planar/split_pl.c planar/dual_pl.c planar/non_iso_pl/non_iso_pl.c\
planar/non_iso_pl/hashfunction.c planar/non_iso_pl/splay.c\
planar/subdivide_vertex.c planar/regular_pl.c planar/bipartite_pl.c\
planar/random_relabel_pl.c\
planar/adjlist2planarcode.py\
conversion/gconv.c conversion/gconvman.txt conversion/Makefile\
multicode/multiread.c multicode/multi_add_edges.c\
multicode/multi_combine.c multicode/multi_remove_edges.c\
multicode/multi_non_iso.c multicode/multi_filter_regular.c\
multicode/multi_filter_snark.c multicode/multi_corona.c\
multicode/multi_induced_subgraph.c multicode/multi_mycielski.c\
multicode/multi_identify.c multicode/multi_filter_bipartite.c\
multicode/shared/multicode_base.c multicode/shared/multicode_base.h\
multicode/shared/multicode_input.c multicode/shared/multicode_input.h\
multicode/shared/multicode_output.c multicode/shared/multicode_output.h\
multicode/connect/connect_general.c multicode/connect/connect_general.h\
multicode/connect/multi_cyclic_connect.c\
multicode/connect/multi_complete_connect.c\
multicode/connect/multi_path_connect.c\
embedders/embed.c\
visualise/writegraph2png/ant.xml visualise/writegraph2png/visualise/*\
visualise/pngtoolkit.c visualise/pngtoolkit.h visualise/writegraph2png.c\
invariants/multi_int_invariant.c invariants/multi_invariant_order.c\
cubic/shared/cubic_base.c cubic/shared/cubic_base.h\
cubic/shared/cubic.c cubic/shared/cubic_input.h\
cubic/shared/cubic_output.c cubic/shared/cubic_output.h\
cubic/cubic_is_odd_2_factored.c\
Makefile COPYRIGHT.txt LICENSE.txt README.md
MULTICODE_SHARED = multicode/shared/multicode_base.c\
multicode/shared/multicode_input.c\
multicode/shared/multicode_output.c
CUBIC_SHARED = cubic/shared/cubic_base.c cubic/shared/cubic_input.c\
cubic/shared/cubic_output.c
SIGNED_SHARED = signed/shared/signed_base.c signed/shared/signed_input.c\
signed/shared/signed_output.c
all: planar conversion multi visualise embedders invariants cubic signed\
multilib
planar: build/stats_pl build/count_pl build/select_pl \
build/split_pl build/nauty_pl build/dual_pl \
build/non_iso_pl build/subdivide_vertex build/regular_pl \
build/random_relabel_pl build/bipartite_pl build/delete_pl\
build/multiply_pl build/fill_face_pl build/show_pl\
build/delete_edges_pl build/filter_group_size_pl build/group_pl\
build/has_automorphism_swapping_partitions_pl\
build/suppress_degree2_pl build/delete_max_degree_pl\
build/name_pl build/filter_degree_pl
conversion: build/gconv build/genreg2multicode build/freetree2multicode\
build/multicode2signedcode build/pregraphcode2multicode
multi: build/multiread build/multi_add_edges build/multi_cyclic_connect \
build/multi_complete_connect build/multi_path_connect \
build/multi_combine build/multi_remove_edges build/multi_corona \
build/multi_filter_regular build/multi_filter_snark \
build/multi_induced_subgraph build/multi_identify build/multi_mycielski\
build/multi_filter_bipartite build/multi_non_iso build/multi_select\
build/multi_complement build/multi_multiply build/multi_star_product\
build/multi_components build/multi_adjacency_matrix\
build/multi_suppress_degree_2 build/multi_remove_degree_1\
build/multi_add_vertices\
build/multi_simplify build/multi_cut_vertices build/multi_biconnected_components\
build/multi_edge_orbits build/multi_vertex_orbits
multilib: build/headers/multicode_base.h build/headers/multicode_input.h \
build/headers/multicode_output.h build/headers/multicode_connectivity.h \
build/libmultilib.a build/libmultilib-debug.a
visualise: build/writegraph2png build/writegraph2png.jar build/writegraph2tikz
embedders: build/embed build/tutte build/circular build/all_embeddings build/hamiltonian_embed
invariants: build/multi_invariant_order build/multi_invariant_edge_connectivity \
build/multi_invariant_girth build/multi_invariant_essential_edge_connectivity\
build/multi_invariant_hamiltonian_cycles build/multi_invariant_hamiltonian_cycles_edge_incidence\
build/multi_invariant_hamiltonian_cycles_universal_edges\
build/multi_invariant_hamiltonian_cycles_uncovered_edges\
build/multi_invariant_is_traceable\
build/multi_invariant_is_weak_hypotraceable\
build/multi_invariant_is_2_leaf_stable\
build/multi_invariant_is_hamiltonian_connected\
build/multi_invariant_is_hamiltonian build/multi_invariant_chromatic_number\
build/multi_invariant_maximum_degree build/multi_invariant_vertex_connectivity\
build/multi_invariant_number_of_perfect_matchings\
build/multi_invariant_contains_wheel build/multi_invariant_contains_wheel_large_graphs\
build/multi_wheels_overview build/multi_overview_degrees\
build/multi_overview_cycles build/multi_invariant_is_pancyclic\
build/multi_invariant_is_even_pancyclic build/multi_invariant_is_overfull
cubic: build/cubic_is_odd_2_factored build/cubic_is_matching_in_dominating_cycle\
build/cubic_extend_matching_to_dominating_cycle build/cubic_is_matching_in_dominating_cycle2\
build/cubic_is_matching_and_vertices_in_dominating_cycle\
build/cubic_are_matching_vertices_in_dominating_cycle\
build/cubic_every_edge_in_5_cycle build/cubic_all_2_factors\
build/cubic_K33S_M_2_factors build/cubic_is_2_factor_hamiltonian
signed: build/signed_show build/signed_all build/signed_all_high_symmetry\
build/signed_has_k_flow build/signed_is_6_flow_irreducible\
build/signed_is_flow_admissable build/signed_random_equivalent\
build/signed_is_flow_admissable_ST build/signed_select\
build/signed_has_barbell build/signed_underlying\
build/signed_has_balanced_hamiltonian_cycle
clean:
rm -rf build
rm -rf dist
build/stats_pl: planar/stats_pl.c
mkdir -p build
cc -o build/stats_pl -O4 planar/stats_pl.c
build/count_pl: planar/count_pl.c
mkdir -p build
cc -o build/count_pl -O4 planar/count_pl.c
build/select_pl: planar/select_pl.c
mkdir -p build
cc -o build/select_pl -O4 planar/select_pl.c
build/split_pl: planar/split_pl.c
mkdir -p build
cc -o build/split_pl -O4 planar/split_pl.c
build/nauty_pl: planar/nauty_pl.c planar/nauty/nauty.c planar/nauty/nautil.c planar/nauty/naugraph.c planar/nauty/schreier.c planar/nauty/naurng.c
mkdir -p build
cc -o build/nauty_pl -O4 planar/nauty_pl.c planar/nauty/nauty.c \
planar/nauty/nautil.c planar/nauty/naugraph.c planar/nauty/schreier.c \
planar/nauty/naurng.c
build/dual_pl: planar/dual_pl.c
mkdir -p build
cc -o build/dual_pl -O4 planar/dual_pl.c
build/regular_pl: planar/regular_pl.c
mkdir -p build
cc -o build/regular_pl -O4 planar/regular_pl.c
build/non_iso_pl: planar/non_iso_pl/non_iso_pl.c planar/non_iso_pl/hashfunction.c planar/non_iso_pl/splay.c
mkdir -p build
cc -o build/non_iso_pl -O4 planar/non_iso_pl/non_iso_pl.c
build/random_relabel_pl: planar/random_relabel_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/bipartite_pl: planar/bipartite_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/delete_pl: planar/delete_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/delete_max_degree_pl: planar/delete_max_degree_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/delete_edges_pl: planar/delete_edges_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/multiply_pl: planar/multiply_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/fill_face_pl: planar/fill_face_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/show_pl: planar/show_pl.c planar/shared/planar_base.c planar/shared/planar_input.c
mkdir -p build
cc -o $@ -O4 $^
build/filter_group_size_pl: planar/filter_group_size_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/group_pl: planar/group_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/has_automorphism_swapping_partitions_pl: planar/has_automorphism_swapping_partitions_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/suppress_degree2_pl: planar/suppress_degree2_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/name_pl: planar/name_pl.c planar/shared/planar_base.c planar/shared/planar_input.c planar/shared/planar_automorphismgroup.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -o $@ -g $^ -lcprogutil
build/filter_degree_pl: planar/filter_degree_pl.c
mkdir -p build
cc -o $@ -O4 $^
build/subdivide_vertex: planar/subdivide_vertex.c
mkdir -p build
cc -o build/subdivide_vertex -O4 planar/subdivide_vertex.c
build/multiread: multicode/multiread.c multicode/shared/multicode_base.c multicode/shared/multicode_input.c
mkdir -p build
cc -o $@ -O4 -DMAXN=1000 -DMAXVAL=1000 $^
build/multi_add_edges: multicode/multi_add_edges.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_remove_edges: multicode/multi_remove_edges.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_add_vertices: multicode/multi_add_vertices.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_combine: multicode/multi_combine.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_corona: multicode/multi_corona.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_complement: multicode/multi_complement.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=1000 -DMAXVAL=1000 $^
build/multi_induced_subgraph: multicode/multi_induced_subgraph.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_identify: multicode/multi_identify.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_mycielski: multicode/multi_mycielski.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_filter_regular: multicode/multi_filter_regular.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_filter_snark: multicode/multi_filter_snark.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_filter_bipartite: multicode/multi_filter_bipartite.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_select: multicode/multi_select.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_cyclic_connect: multicode/connect/multi_cyclic_connect.c \
multicode/connect/connect_general.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_complete_connect: multicode/connect/multi_complete_connect.c \
multicode/connect/connect_general.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_path_connect: multicode/connect/multi_path_connect.c \
multicode/connect/connect_general.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_multiply: multicode/multi_multiply.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_star_product: multicode/multi_star_product.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_components: multicode/multi_components.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_adjacency_matrix: multicode/multi_adjacency_matrix.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_suppress_degree_2: multicode/multi_suppress_degree_2.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_remove_degree_1: multicode/multi_remove_degree_1.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_simplify: multicode/multi_simplify.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_cut_vertices: multicode/multi_cut_vertices.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_biconnected_components: multicode/multi_biconnected_components.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multi_edge_orbits: multicode/multi_edge_orbits.c $(MULTICODE_SHARED) \
nauty/nauty.c nauty/nautil.c nauty/naugraph.c nauty/schreier.c nauty/naurng.c
mkdir -p build
cc -o $@ -g -DMAXN=1000 -DMAXVAL=999 $^
build/multi_vertex_orbits: multicode/multi_vertex_orbits.c $(MULTICODE_SHARED) \
nauty/nauty.c nauty/nautil.c nauty/naugraph.c nauty/schreier.c nauty/naurng.c
mkdir -p build
cc -o $@ -g -DMAXN=1000 -DMAXVAL=999 $^
build/multi_non_iso:multicode/multi_non_iso.c nauty/nautil.c nauty/nauty.c nauty/naugraph.c nauty/schreier.c nauty/naurng.c
mkdir -p build
cc -O4 -o $@ $^
build/writegraph2png: visualise/writegraph2png.c visualise/pngtoolkit.c
mkdir -p build
cc -o $@ -O4 $^ -lpng -lm
build/writegraph2tikz: visualise/writegraph2tikz.c
mkdir -p build
cc -o $@ -O4 $^
build/writegraph2png.jar: visualise/writegraph2png/**/*
mkdir -p build
cd visualise/writegraph2png && ant -f ant.xml
build/gconv: conversion/gconv.c
cd conversion && make
build/genreg2multicode: conversion/genreg2multicode.c multicode/shared/multicode_base.c\
multicode/shared/multicode_output.c
mkdir -p build
cc -o $@ -O4 $^
build/freetree2multicode: conversion/freetree2multicode.c multicode/shared/multicode_base.c\
multicode/shared/multicode_output.c
mkdir -p build
cc -o $@ -O4 -DMAXVAL=20 $^
build/multicode2signedcode: conversion/multicode2signedcode.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/pregraphcode2multicode: conversion/pregraphcode2multicode.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/embed: embedders/embed.c
mkdir -p build
cc -o $@ -O4 $^ -lm
build/tutte: embedders/tutte.c
mkdir -p build
cc -o $@ -O4 $^ -lm
build/circular: embedders/circular.c multicode/shared/multicode_base.c multicode/shared/multicode_input.c
mkdir -p build
cc -o $@ -O4 $^ -lm
build/all_embeddings: embedders/all_embeddings.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXVAL=20 $^
build/hamiltonian_embed: embedders/hamiltonian_embed.c multicode/shared/multicode_base.c multicode/shared/multicode_input.c
mkdir -p build
cc -o $@ -O4 $^ -lm
build/multi_invariant_order: invariants/multi_int_invariant.c \
invariants/multi_invariant_order.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=order $^
build/multi_invariant_edge_connectivity: invariants/multi_int_invariant.c \
invariants/connectivity/multi_connectivity.c \
invariants/multi_invariant_edge_connectivity.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -g -DINVARIANT=edge_connectivity $^
build/multi_invariant_essential_edge_connectivity: invariants/multi_int_invariant.c \
invariants/connectivity/multi_connectivity.c \
invariants/multi_invariant_essential_edge_connectivity.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -g -DINVARIANT=essential_edge_connectivity $^
build/multi_invariant_girth: invariants/multi_int_invariant.c \
invariants/multi_invariant_girth.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=girth $^
build/multi_invariant_hamiltonian_cycles: invariants/multi_int_invariant.c \
invariants/multi_invariant_hamiltonian_cycles.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=hamiltonianCycles -DINVARIANTNAME="number of hamiltonian cycles" $^
build/multi_invariant_hamiltonian_cycles_edge_incidence: invariants/multi_double_invariant.c \
invariants/multi_invariant_hamiltonian_cycles.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=hamiltonianCyclesEdgeIncidence $^
build/multi_invariant_hamiltonian_cycles_universal_edges: invariants/multi_int_invariant.c \
invariants/multi_invariant_hamiltonian_cycles.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=hamiltonianCyclesUniversalEdges -DINVARIANTNAME="number of edges that lie in all hamiltonian cycles" $^
build/multi_invariant_hamiltonian_cycles_uncovered_edges: invariants/multi_int_invariant.c \
invariants/multi_invariant_hamiltonian_cycles.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=hamiltonianCyclesUncoveredEdges -DINVARIANTNAME="number of edges that do not lie in any hamiltonian cycle" $^
build/multi_invariant_is_traceable: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_traceable.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isTraceable -DINVARIANTNAME="traceable" $^
build/multi_invariant_is_weak_hypotraceable: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_weak_hypotraceable.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isWeakHypotraceable -DINVARIANTNAME="weak hypotraceable" $^
build/multi_invariant_is_2_leaf_stable: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_2_leaf_stable.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=is2LeafStable -DINVARIANTNAME="2-leaf-stable" $^
build/multi_invariant_is_hamiltonian_connected: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_hamiltonian_connected.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isHamiltonianConnected -DINVARIANTNAME="hamiltonian connected" $^
build/multi_invariant_is_hamiltonian: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_hamiltonian.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isHamiltonian -DINVARIANTNAME="hamiltonian" $^
build/multi_invariant_chromatic_number: invariants/multi_int_invariant.c \
invariants/multi_invariant_chromatic_number.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -g -DINVARIANT=chromaticNumber -DINVARIANTNAME="chromatic number" $^
build/multi_invariant_maximum_degree: invariants/multi_int_invariant.c \
invariants/multi_invariant_maximum_degree.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=maximumDegree -DINVARIANTNAME="maximum degree" -DMAXN=1000 -DMAXVAL=1000 $^
build/multi_invariant_vertex_connectivity: invariants/multi_int_invariant.c \
invariants/multi_invariant_vertex_connectivity.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=vertex_connectivity -DINVARIANTNAME="vertex connectivity" $^
build/multi_invariant_number_of_perfect_matchings: invariants/multi_int_invariant.c \
invariants/multi_invariant_number_of_perfect_matchings.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -g -DINVARIANT=numberPM -DINVARIANTNAME="number of perfect matchings" $^
build/multi_invariant_contains_wheel: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_contains_wheel.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=containsWheel -DINVARIANTNAME="'contains wheel'" $^
build/multi_invariant_contains_wheel_large_graphs: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_contains_wheel_large_graphs.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -g -DINVARIANT=containsWheel -DINVARIANTNAME="'contains wheel'" -DMAXN=500 -DMAXVAL=500 $^
build/multi_wheels_overview: invariants/multi_wheels_overview.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=500 -DMAXVAL=500 $^
build/multi_invariant_is_pancyclic: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_pancyclic.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isPancyclic -DINVARIANTNAME=pancyclic -DMAXN=500 -DMAXVAL=500 $^
build/multi_invariant_is_even_pancyclic: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_even_pancyclic.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isEvenPancyclic -DINVARIANTNAME="even pancyclic" -DMAXN=500 -DMAXVAL=500 $^
build/multi_invariant_is_overfull: invariants/multi_boolean_invariant.c \
invariants/multi_invariant_is_overfull.c \
$(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DINVARIANT=isOverfull -DINVARIANTNAME="overfull" $^
build/multi_overview_cycles: invariants/multi_overview_cycles.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=500 -DMAXVAL=500 $^
build/multi_overview_degrees: invariants/multi_overview_degrees.c $(MULTICODE_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=3000 -DMAXVAL=50 $^
build/cubic_is_odd_2_factored: cubic/cubic_is_odd_2_factored.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/cubic_is_matching_in_dominating_cycle: cubic/cubic_is_matching_in_dominating_cycle.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/cubic_is_matching_in_dominating_cycle2: cubic/cubic_is_matching_in_dominating_cycle2.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/cubic_extend_matching_to_dominating_cycle: cubic/cubic_extend_matching_to_dominating_cycle.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/cubic_is_matching_and_vertices_in_dominating_cycle: cubic/cubic_is_matching_and_vertices_in_dominating_cycle.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/cubic_are_matching_vertices_in_dominating_cycle: cubic/cubic_are_matching_vertices_in_dominating_cycle.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/cubic_every_edge_in_5_cycle: cubic/cubic_every_edge_in_5_cycle.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/cubic_all_2_factors: cubic/cubic_all_2_factors.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/cubic_K33S_M_2_factors: cubic/cubic_K33S_M_2_factors.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/cubic_is_2_factor_hamiltonian: cubic/cubic_is_2_factor_hamiltonian.c $(CUBIC_SHARED)
mkdir -p build
cc -o $@ -g -O4 $^
build/signed_show: signed/signed_show.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_all: signed/signed_all.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_all_high_symmetry: signed/signed_all_high_symmetry.c $(SIGNED_SHARED)\
signed/nauty/nauty.c signed/nauty/nautil.c\
signed/nauty/nausparse.c signed/nauty/schreier.c\
signed/nauty/naurng.c
mkdir -p build
cc -o $@ -O4 $^
build/signed_has_k_flow: signed/signed_has_k_flow.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_is_6_flow_irreducible: signed/signed_is_6_flow_irreducible.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=64 $^
build/signed_is_flow_admissable: signed/signed_is_flow_admissable.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=63 $^
build/signed_random_equivalent: signed/signed_random_equivalent.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_is_flow_admissable_ST: signed/signed_is_flow_admissable_ST.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 -DMAXN=63 $^
build/signed_select: signed/signed_select.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_has_barbell: signed/signed_has_barbell.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_underlying: signed/signed_underlying.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/signed_has_balanced_hamiltonian_cycle: signed/signed_has_balanced_hamiltonian_cycle.c $(SIGNED_SHARED)
mkdir -p build
cc -o $@ -O4 $^
build/multicode_base.o: multicode/lib/multicode_base.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -O3 -Wall
build/multicode_input.o: multicode/lib/multicode_input.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -O3 -Wall
build/multicode_output.o: multicode/lib/multicode_output.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -O3 -Wall
build/multicode_connectivity.o: multicode/lib/multicode_connectivity.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -O3 -Wall
build/multicode_base.debug.o: multicode/lib/multicode_base.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -g -Wall
build/multicode_input.debug.o: multicode/lib/multicode_input.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -g -Wall
build/multicode_output.debug.o: multicode/lib/multicode_output.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -g -Wall
build/multicode_connectivity.debug.o: multicode/lib/multicode_connectivity.c
mkdir -p build
cc $(IFLAGS) $(LFLAGS) -c $^ -o $@ -g -Wall
build/libmultilib.a: build/multicode_base.o build/multicode_input.o build/multicode_output.o build/multicode_connectivity.o
ar rcs $@ $^
build/libmultilib-debug.a: build/multicode_base.debug.o build/multicode_input.debug.o build/multicode_output.debug.o build/multicode_connectivity.debug.o
ar rcs $@ $^
build/headers/multicode_base.h: multicode/lib/multicode_base.h
mkdir -p build/headers
cp $^ $@
build/headers/multicode_input.h: multicode/lib/multicode_input.h
mkdir -p build/headers
cp $^ $@
build/headers/multicode_output.h: multicode/lib/multicode_output.h
mkdir -p build/headers
cp $^ $@
build/headers/multicode_connectivity.h: multicode/lib/multicode_connectivity.h
mkdir -p build/headers
cp $^ $@
sources: dist/graphtools-sources.zip dist/graphtools-sources.tar.gz
dist/graphtools-sources.zip: $(SOURCES)
mkdir -p dist
zip dist/graphtools-sources $(SOURCES)
dist/graphtools-sources.tar.gz: $(SOURCES)
mkdir -p dist
tar czf dist/graphtools-sources.tar.gz $(SOURCES)