-
Notifications
You must be signed in to change notification settings - Fork 131
/
Tuprules.tup
1316 lines (1198 loc) · 61.7 KB
/
Tuprules.tup
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
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.gitignore
# This file should not contain anything that needs to be modified per ROSE build. I.e., all configuration
# variables are stored elsewhere (defaults in $ROSE_SOURCE/tup.config and build-specific values in
# $ROSE_BUILD/tup.config).
########################################################################################################################
# General variables, defaults.
########################################################################################################################
# The top ROSE directory, often referred to in documentation as $ROSE. Within the Tup build system, $(ROSE) refers
# to both the top of the source tree and the top of the build tree even though they are different directories. $(ROSE)
# is always a relative name from the directory containing the Tupfile (i.e., it never starts with "/"). The generic
# tup scripts use $(ROOT) instead of $(ROSE).
ROSE = $(TUP_CWD)
ROOT = $(TUP_CWD)
# Compilers
CXX = @(CXX)
CC = @(CC)
FC = @(FC)
# C preprocessor command-line switches
CPPFLAGS = @(CPPFLAGS)
# C compiler switches (w/out C preprocessor switches which are above)
CFLAGS += @(C_CXX_DEBUG)
CFLAGS += @(C_DEBUG)
CFLAGS += @(C_CXX_OPTIM)
CFLAGS += @(C_OPTIM)
CFLAGS += @(C_CXX_WARN)
CFLAGS += @(C_WARN)
CFLAGS += @(C_CXX_MISC)
CFLAGS += @(C_MISC)
# C++ compiler switches (w/out C preprocessor switches which are above)
CXXFLAGS += @(C_CXX_DEBUG)
CXXFLAGS += @(CXX_DEBUG)
CXXFLAGS += @(C_CXX_OPTIM)
CXXFLAGS += @(CXX_OPTIM)
CXXFLAGS += @(C_CXX_WARN)
CXXFLAGS += @(CXX_WARN)
CXXFLAGS += @(C_CXX_MISC)
CXXFLAGS += @(CXX_MISC)
# Linker flags for static linking
LDFLAGS_STATIC += @(LD_STATIC)
LDFLAGS_STATIC += @(LD_WARN)
LDFLAGS_STATIC += @(LD_MISC)
LDFLAGS_STATIC += -lm -ldl
# Linker flags for shared linking
LDFLAGS_SHARED += @(LD_SHARED)
LDFLAGS_SHARED += @(LD_WARN)
LDFLAGS_SHARED += @(LD_MISC)
LDFLAGS_SHARED += -lm -ldl
# Tup scripts
TUP_SCRIPTS = $(ROSE)/scripts/tup
COMPILER_RULES = $(TUP_SCRIPTS)/generate-compile-link-rules --depend=$(ROSE)/tup.acknowledgment --map=$(ROSE),/ROSE_SOURCE
# Compilation database
ifeq (@(COMPILATION_DATABASE),yes)
COMPILER_RULES += --compilation-database=$(ROSE)/compdb
compilation_database_record = $(ROSE)/scripts/tup/compdb-emit-llvm-record
endif
# Export LD_LIBRARY_PATH since RMC sets this for non-native compilers.
# Actually, this doesn't work because tup refuses to export this variable, and who knows what others. Instead we work
# around it by exporting ALL_LIBDIRS and using patchelf to fix the executable.
export ALL_LIBDIRS
ALL_LIBDIRS = ${ALL_LIBDIRS}
# Export TEMPDIR since TMPDIR is apparently blocked.
export TEMPDIR
########################################################################################################################
# Supported languages.
########################################################################################################################
ifeq (@(ENABLE_ADA_ANALYSIS),yes)
error Ada is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_COBOL_ANALYSIS),yes)
error COBOL is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_CSHARP_ANALYSIS),yes)
error C\# is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_CUDA_ANALYSIS),yes)
error CUDA is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_FORTRAN_ANALYSIS),yes)
error Fortran is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_JAVA_ANALYSIS),yes)
error Java is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_JOVIAL_ANALYSIS),yes)
error Jovial is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_MATLAB_ANALYSIS),yes)
error Matlab is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_OFP_ANALYSIS),yes)
error OFP is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_OPENCL_ANALYSIS),yes)
error OpenCL is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_PHP_ANALYSIS),yes)
error PHP is not supported by the tup ROSE build system yet
endif
ifeq (@(ENABLE_PYTHON_ANALYSIS),yes)
error Python is not supported by the tup ROSE build system yet
endif
# The C preprocessor is supported automatically if C, C++, or Fortran is enabled
ifeq (@(ENABLE_CXX_ANALYSIS)-@(ENABLE_FORTRAN_ANALYSIS),no-no)
ENABLE_CPP_ANALYSIS=no
else
ENABLE_CPP_ANALYSIS=yes
endif
########################################################################################################################
# Minimal input code, depending on what language is supported. This is for testing since the test will fail if given
# an input file for a language that's not supported.
########################################################################################################################
# Last setting wins
ifeq (@(ENABLE_BINARY_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.binary
endif
ifeq (@(ENABLE_PYTHON_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.py
endif
ifeq (@(ENABLE_PHP_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.php
endif
ifeq (@(ENABLE_JAVA_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.java
endif
ifeq (@(ENABLE_FORTRAN_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.f90
endif
ifeq (@(ENABLE_CXX_ANALYSIS),yes)
minimal_input_code = $(ROSE)/tests/nonsmoke/functional/input_codes/minimal/minimal.cpp
endif
########################################################################################################################
# Software dependencies.
#
# Each software dependency "foo" has a corresponding @(WITH_FOO) configuration variable that is "no", "system", or the
# name of foo's installation prefix. If the value is other than "no" then a tup variable of the name $(FOO_ROOT) is
# defined to be that value. If the value is a prefix directory, then CPPFLAGS, LDFLAGS_STATIC, and LDFLAGS_SHARED are
# adjusted.
#
# These are generally defined in alphabetical order except when the libraries need to be in a certain order. For
# instance, boost comes near the end of the list and is followed by zlib and bzip2 because a few other libraries
# depend on boost, and boost depends on zlib and bzip2.
########################################################################################################################
# Capstone disassembler
ifneq (@(WITH_CAPSTONE),no)
CAPSTONE_ROOT = @(WITH_CAPSTONE)
ifneq (@(WITH_CAPSTONE),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(CAPSTONE_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(CAPSTONE_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(CAPSTONE_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(CAPSTONE_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)capstone
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)capstone
endif
# Serial serialization
ifneq (@(WITH_CEREAL),no)
CEREAL_ROOT = @(WITH_CEREAL)
ifneq (@(WITH_CEREAL),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(CEREAL_ROOT)/include
endif
endif
# Dlib general-purpose cross platform library
ifneq (@(WITH_DLIB),no)
DLIB_ROOT = @(WITH_DLIB)
ifneq (@(WITH_DLIB),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(DLIB_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(DLIB_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(DLIB_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(DLIB_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)dlib
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)dlib
endif
# Doxygen code documentation system
ifneq (@(WITH_DOXYGEN),no)
DOXYGEN_ROOT = @(WITH_DOXYGEN)
endif
# DWARF debugging info parser library
ifneq (@(WITH_DWARF),no)
DWARF_ROOT = @(WITH_DWARF)
ifneq (@(WITH_DWARF),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(DWARF_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(DWARF_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(DWARF_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(DWARF_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)dwarf
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)dwarf
endif
# Elf parser library
ifneq (@(WITH_ELF),no)
ELF_ROOT = @(WITH_ELF)
ifneq (@(WITH_ELF),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(ELF_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(ELF_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(ELF_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(ELF_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)elf
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)elf
endif
# Gcrypt cryptographic library
ifneq (@(WITH_GCRYPT),no)
GCRYPT_ROOT = @(WITH_GCRYPT)
ifneq (@(WITH_GCRYPT),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(GCRYPT_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(GCRYPT_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(GCRYPT_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(GCRYPT_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)gcrypt
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)gcrypt
endif
# GPG error library
ifneq (@(WITH_GPG_ERROR),no)
GPG_ERROR_ROOT = @(WITH_GPG_ERROR)
ifneq (@(WITH_GPG_ERROR),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(GPG_ERROR_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(GPG_ERROR_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(GPG_ERROR_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(GPG_ERROR_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)gpg-error
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)gpg-error
endif
# Intel Pin tracing
ifneq (@(WITH_INTEL_PIN),no)
INTEL_PIN_ROOT = @(WITH_INTEL_PIN)
ifneq (@(WITH_INTEL_PIN),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(INTEL_PIN_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(INTEL_PIN_ROOT)/intel64/lib-ext
LDFLAGS_SHARED += @(CXX_LIBDIR_SWITCH)$(INTEL_PIN_ROOT)/intel64/lib-ext
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)pin
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)pin
endif
# Magic file type identification (magic numbers)
ifneq (@(WITH_MAGIC),no)
MAGIC_ROOT = @(WITH_MAGIC)
ifneq (@(WITH_MAGIC),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(MAGIC_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(MAGIC_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(MAGIC_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(MAGIC_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)magic
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)magic
endif
# Postgresql C++ API
ifneq (@(WITH_PQXX),no)
PQXX_ROOT = @(WITH_PQXX)
ifneq (@(WITH_PQXX),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(PQXX_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(PQXX_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(PQXX_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(PQXX_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)pqxx
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)pqxx
endif
# Qt
ifneq (@(WITH_QT),no)
QT_ROOT = @(WITH_QT)
ifneq (@(WITH_QT),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(QT_ROOT)/include
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(QT_ROOT)/include/QtCore
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(QT_ROOT)/include/QtGui
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(QT_ROOT)/include/QtWidgets
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(QT_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(QT_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(QT_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)Qt5Charts
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)Qt5Widgets
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)Qt5Gui
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)Qt5Core
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)GL
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)pthread
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)Qt5Charts
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)Qt5Widgets
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)Qt5Gui
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)Qt5Core
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)GL
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)pthread
endif
# Readline command-line editing library
ifneq (@(WITH_READLINE),no)
READLINE_ROOT = @(WITH_READLINE)
ifneq (@(WITH_READLINE),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(READLINE_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(READLINE_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(READLINE)/lib @(CXX_LIBDIR_SWITCH)$(READLINE_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)readline
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)readline
endif
# SQLite database
ifneq (@(WITH_SQLITE),no)
SQLITE_ROOT = @(WITH_SQLITE)
ifneq (@(WITH_SQLITE),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(SQLITE_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(SQLITE_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(SQLITE_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(SQLITE_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)sqlite3
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)sqlite3
endif
# Wt web toolkit
ifneq (@(WITH_WT),no)
WT_ROOT = @(WITH_WT)
ifneq (@(WITH_WT),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(WT_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(WT_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(WT_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(WT_ROOT)/lib
endif
# The -lwthttp and -lwtfcgi libraries are intentionallly absent because its up to the application
# as to which one it should use.
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)wt
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)wtdbo
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)wtdbopostgres
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)wt
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)wtdbo
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)wtdbopostgres
endif
# YamlCPP is a YAML parser and emitter in C++
ifneq (@(WITH_YAMLCPP),no)
YAMLCPP_ROOT = @(WITH_YAMLCPP)
ifneq (@(WITH_YAMLCPP),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(YAMLCPP_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(YAMLCPP_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(YAMLCPP_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(YAMLCPP_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)yaml-cpp
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)yaml-cpp
endif
# Z3 SMT solver
ifneq (@(WITH_Z3),no)
Z3_ROOT = @(WITH_Z3)
ifneq (@(WITH_Z3),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(Z3_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(Z3_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(Z3_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(Z3_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)z3
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)z3
endif
# Boost support/portability library (note that -lboost_python is added if we have python, later)
ifeq (@(WITH_BOOST),no)
error Boost is required. See CONFIG_WITH_BOOST in the tup.config file.
else
BOOST_ROOT = @(WITH_BOOST)
ifneq (@(WITH_BOOST),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(BOOST_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(BOOST_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(BOOST_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(BOOST_ROOT)/lib
endif
# BOOST_SYSTEM_NO_DEPRECATED avoids warnings about boost::system::generic_category etc. defined but not used
CPPFLAGS += -DBOOST_SYSTEM_NO_DEPRECATED=1
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_atomic
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_chrono
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_date_time
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_filesystem
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_iostreams
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_program_options
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_random
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_regex
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_serialization
#LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_signals -- removed in 1.69.0
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_system
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_thread
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_wave
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_wserialization
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_atomic
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_chrono
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_date_time
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_filesystem
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_iostreams
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_program_options
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_random
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_regex
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_serialization
#LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_signals -- removed in 1.69.0
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_system
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_thread
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_wave
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_wserialization
endif
# Python development
ifneq (@(WITH_PYTHON),no)
PYTHON_ROOT = @(WITH_PYTHON)
ifneq (@(WITH_PYTHON),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(PYTHON_ROOT)/include/python@(PYTHON_VERSION)m
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(PYTHON_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(PYTHON_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(PYTHON_ROOT)/lib
endif
# Note: static linking with python is not yet tested
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)boost_python
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)python@(PYTHON_VERSION)m
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)boost_python
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)python@(PYTHON_VERSION)m
endif
# Zlib compression library
ifeq (@(WITH_ZLIB),no)
error Zlib is required. See CONFIG_WITH_ZLIB in the tup.config file.
else
ZLIB_ROOT = @(WITH_ZLIB)
ifneq (@(WITH_ZLIB),system)
CPPFLAGS += @(CPP_INCDIR_SWITCH)$(ZLIB_ROOT)/include
LDFLAGS_STATIC += @(CXX_LIBDIR_SWITCH)$(ZLIB_ROOT)/lib
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)$(ZLIB_ROOT)/lib @(CXX_LIBDIR_SWITCH)$(ZLIB_ROOT)/lib
endif
LDFLAGS_STATIC += @(CXX_LIB_SWITCH)z
LDFLAGS_SHARED += @(CXX_LIB_SWITCH)z
endif
# The long, fake rpaths are intended to be reserving space in the executable that will be overwritten by
# new rpaths when the executable is installed.
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
LDFLAGS_SHARED += @(CXX_RPATH_SWITCH)ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
########################################################################################################################
# Sanity checks
########################################################################################################################
ifneq (@(WITH_DWARF),no)
ifeq (@(WITH_ELF),no)
error CONFIG_WITH_DWARF specified means you also need CONFIG_WITH_ELF
endif
endif
ifneq (@(WITH_GCRYPT),no)
ifeq (@(WITH_GPG_ERROR),no)
error CONFIG_WITH_GGCRYPT specified means you also need CONFIG_WITH_GPG_ERROR
endif
endif
########################################################################################################################
# Phase 1 "support"
#
# The purpose of Phase-1 is to compile those tools that are prerequisites for building the ROSE library. For instance,
# the executable "CxxGrammarMetaProgram" must be built and run in order to generate various source files including the
# definitions for all the Sage IR nodes.
#
# Phase-1 can be used to create any artifacts (object files, libraries, executables, etc) that don't depend on generated
# source files.
#
########################################################################################################################
# List of compiler flags for searching for ROSE header files for #include files. List here only those directories
# that are part of the ROSE source distribution -- DO NOT list directories for other software like Boost.
support_INCDIRS = \
@(CPP_INCDIR_SWITCH)$(ROSE) \
@(CPP_INCDIR_SWITCH)$(ROSE)/src \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/generated \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/sageInterface \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/BinaryAnalyses \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/roseSupport \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/util \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/util/commandlineProcessing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/util/stringSupport \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/3rdPartyLibraries/json
# Compilers
support_CC = $(CC)
support_CXX = $(CXX)
# C preprocessor flags
support_CPPFLAGS += $(CPPFLAGS)
support_CPPFLAGS += @(SUPPORT_CPPFLAGS)
support_CPPFLAGS += $(support_INCDIRS)
support_CPPFLAGS += -DROSE_ASSERTION_BEHAVIOR=@(ASSERTION_BEHAVIOR)
# C compiler flags
support_CFLAGS += $(CFLAGS)
support_CFLAGS += @(SUPPORT_CFLAGS)
# C++ compiler flags
support_CXXFLAGS += $(CXXFLAGS)
support_CXXFLAGS += @(SUPPORT_CXXFLAGS)
# Linker flags
support_LDFLAGS_STATIC += $(LDFLAGS_STATIC)
support_LDFLAGS_STATIC += @(SUPPORT_LDFLAGS_STATIC)
support_LDFLAGS_SHARED += $(LDFLAGS_SHARED)
support_LDFLAGS_SHARED += @(SUPPORT_LDFLAGS_SHARED)
# Generated files used by Phase-1 when compiling
support_GENHDR = \
$(ROSE)/rose_config.h \
$(ROSE)/rosePublicConfig.h
# If you're creating an executable from a bunch of source files, use "run $(support_compile_linkexe) ..." which will create
# rules for compiling the specified source files into objects, and then linking the objects. Detailed usage information
# can be found in the script. Here are some examples:
#
# 1. To create a "foo" executable from a foo.C source file
# run $(support_compile_linkexe) foo.C
#
# 2. To create a "foo" executable from two source files. The executable is named "foo" since the first source file's
# base name is "foo.C".
# run $(support_compile_linkexe) foo.C bar.C baz.C
#
# 3. Specify the name of the executable.
# run $(support_compile_linkexe) -o a.out foo.C bar.C baz.C
#
# 4. You can mix languages (assuming linking is possible).
# run $(support_compile_linkexe) foo.C bar.cpp baz.c
#
# 5. You can specify additional include and/or library paths.
# run $(support_compile_linkexe) foo.C -I/some/include -L/some/lib -lsome
#
# 6. You can define or undefine macros
# run $(support_compile_linkexe) foo.C -DNAME='"some_string"' -UFOO
#
# 7. We also have a "lib" version that behaves exactly the same, but produces libraries.
# For instance, this command produces a library named libfoo.so
# run $(support_compile_linklib) foo.C bar.C
#
# 8. The version without "link" in its name only compiles to objects and doesn't produce
# an executable or a library.
# run $(support_compile) foo.C bar.C
#
support_compile_linkexe = $(COMPILER_RULES) --phase=support --link=exe --linkage=@(LINKAGE) --begin-deps $(support_GENHDR) --end-deps --rpath="${ALL_LIBDIRS}"
support_compile_linklib = $(COMPILER_RULES) --phase=support --link=lib --linkage=@(LINKAGE) --begin-deps $(support_GENHDR) --end-deps
support_compile = $(COMPILER_RULES) --phase=support --link=none --begin-deps $(support_GENHDR) --end-deps
########################################################################################################################
# Phase 2 "librose"
#
# This phase is for compiling and linking those source files that ultimately become part of the ROSE library (librose.so
# and/or librose.a). Such files may be generated and/or use generated headers.
#
# DO NOT use Phase-2 to compile anything that's needed by a tool that generates ROSE source files. For example, since
# the CxxGrammarMetaProgram executable generates source files that go into the ROSE library, it must be built during
# Phase-1. And since CxxGrammarMetaProgram uses $(ROSE)/src/util/commandline_processing/commandline_processing.C to
# perform its command-line parsing, that file must also be compiled during Phase-1.
########################################################################################################################
# List of compiler flags for searching for ROSE header files for #include files. List here only those directories
# that are part of the ROSE source distribution -- DO NOT list directories for other software like Boost.
librose_INCDIRS = \
$(support_INCDIRS) \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/Rose \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/3rdPartyLibraries/json \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/3rdPartyLibraries/MSTL \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/asmUnparser \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/AdaCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/CxxCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/formatSupport \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/FortranCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/JavaCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/JovialCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/languageIndependenceSupport \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/PHPCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/backend/unparser/PythonCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/BinaryFormats \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/BinaryLoader \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/Disassemblers \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/DLX/include \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/Experimental_General_Language_Support \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/PHPFrontend \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/PythonFrontend \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astFileIO \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astFixup \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astFromString \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astMerge \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astPostProcessing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astTokenStream \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/astVisualization \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/includeDirectivesProcessing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/sage_support \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/frontend/SageIII/virtualCFG \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/abstractHandle \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/abstractLayer \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/abstractMemoryObject \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astDiagnostics \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astMatching \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astProcessing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astQuery \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astRewriteMechanism \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astUtil \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astUtil/annotation \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astUtil/astInterface \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astUtil/astSupport \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/astUtil/symbolicVal \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/BinaryAnalysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/BinaryAnalysis/instructionSemantics \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/BinaryAnalysis/libraryIdentification \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/ \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/bitvectorDataflow \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/CallGraphAnalysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/CFG \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/defUseAnalysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/dominanceAnalysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/analysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/arrIndexLabeler \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/cfgUtils \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/lattice \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/rwAccessLabeler \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/simpleAnalyses \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/state \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/genericDataflow/variables \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/OAWrap \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/pointerAnal \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/valuePropagation \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programAnalysis/VirtualFunctionAnalysis \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/astInlining \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/astOutlining \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/constantFolding \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/extractFunctionArgumentsNormalization \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/finiteDifferencing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/implicitCodeGeneration \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/computation \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/depGraph \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/depInfo \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/driver \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/outsideInterface \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/prepostTransformation \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/loopProcessing/slicing \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/ompLowering \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/partialRedundancyElimination \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/singleStatementToBlockNormalization \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/midend/programTransformation/transformationTracking \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/ROSETTA/src \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/ROSETTA/src/astFileIO \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/roseExtensions/failSafe \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/roseExtensions/sqlite3x \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/util/graphs \
@(CPP_INCDIR_SWITCH)$(ROSE)/src/util/support
# Compilers
librose_CC = $(CC)
librose_CXX = $(CXX)
# C preprocessor flags
librose_CPPFLAGS += $(CPPFLAGS)
librose_CPPFLAGS += @(LIBROSE_CPPFLAGS)
librose_CPPFLAGS += $(librose_INCDIRS)
# C compiler flags
librose_CFLAGS += $(CFLAGS)
librose_CFLAGS += @(LIBROSE_CFLAGS)
# C++ compiler flags
librose_CXXFLAGS += $(CXXFLAGS)
librose_CXXFLAGS += @(LIBROSE_CXXFLAGS)
# Linker flags
librose_LDFLAGS_STATIC += $(LDFLAGS_STATIC)
librose_LDFLAGS_STATIC += @(LIBROSE_LDFLAGS_STATIC)
librose_LDFLAGS_SHARED += $(LDFLAGS_SHARED)
librose_LDFLAGS_SHARED += @(LIBROSE_LDFLAGS_SHARED)
# Headers generated by CxxGrammarMetaProgram that contain one class definition each.
CxxGrammarMetaProgram_GENDEFN = \
$(ROSE)/src/ROSETTA/src/SgNode.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch32Coprocessor.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch32Instruction.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64AtOperand.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64BarrierOperand.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64CImmediateOperand.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64Instruction.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64PrefetchOperand.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64PState.h \
$(ROSE)/src/ROSETTA/src/SgAsmAarch64SysMoveOperand.h \
$(ROSE)/src/ROSETTA/src/SgAsmBasicString.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryAdd.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryAsr.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryConcat.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryDivide.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryLsl.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryLsr.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryMod.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryMsl.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryMultiply.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryPostupdate.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryPreupdate.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinaryRor.h \
$(ROSE)/src/ROSETTA/src/SgAsmBinarySubtract.h \
$(ROSE)/src/ROSETTA/src/SgAsmBlock.h \
$(ROSE)/src/ROSETTA/src/SgAsmByteOrder.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssembly.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyOS.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyOSTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyProcessor.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyProcessorTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRefOS.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRefOSTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRefProcessor.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRefProcessorTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyRefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilAssemblyTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilClassLayout.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilClassLayoutTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilConstant.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilConstantTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilCustomAttribute.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilCustomAttributeTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilDataStream.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilDeclSecurity.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilDeclSecurityTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilEvent.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilEventMap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilEventMapTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilEventTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilExceptionData.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilExportedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilExportedTypeTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilField.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldLayout.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldLayoutTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldMarshal.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldMarshalTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldRVA.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldRVATable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFieldTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFile.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilFileTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilGenericParamConstraint.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilGenericParamConstraintTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilGenericParam.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilGenericParamTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilImplMap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilImplMapTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilInstruction.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilInterfaceImpl.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilInterfaceImplTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilManifestResource.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilManifestResourceTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMemberRef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMemberRefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMetadata.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMetadataHeap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMetadataRoot.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodData.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodDef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodDefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodImpl.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodImplTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodSemantics.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodSemanticsTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodSpec.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilMethodSpecTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilModule.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilModuleRef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilModuleRefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilModuleTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilNestedClass.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilNestedClassTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilNode.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilParam.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilParamTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilProperty.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilPropertyMap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilPropertyMapTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilPropertyTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilStandAloneSig.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilStandAloneSigTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeDef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeDefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeRef.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeRefTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeSpec.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilTypeSpecTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilUint32Heap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCilUint8Heap.h \
$(ROSE)/src/ROSETTA/src/SgAsmCliHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmCoffStrtab.h \
$(ROSE)/src/ROSETTA/src/SgAsmCoffSymbol.h \
$(ROSE)/src/ROSETTA/src/SgAsmCoffSymbolList.h \
$(ROSE)/src/ROSETTA/src/SgAsmCoffSymbolTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmCommonSubExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmConstantExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmControlFlagsExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmDirectRegisterExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmDOSExtendedHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmDOSFileHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfAccessDeclaration.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfArrayType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfBaseType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCatchBlock.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfClassTemplate.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfClassType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCommonBlock.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCommonInclusion.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCompilationUnit.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCompilationUnitList.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfCondition.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfConstant.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfConstruct.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfConstructList.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfConstType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfDwarfProcedure.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfEntryPoint.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfEnumerationType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfEnumerator.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfFileType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfFormalParameter.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfFormatLabel.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfFriend.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfFunctionTemplate.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfImportedDeclaration.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfImportedModule.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfImportedUnit.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfInformation.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfInheritance.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfInlinedSubroutine.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfInterfaceType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfLabel.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfLexicalBlock.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfLine.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfLineList.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfMacro.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfMacroList.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfMember.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfModule.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfMutableType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfNamelist.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfNamelistItem.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfNamespace.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfPackedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfPartialUnit.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfPointerType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfPtrToMemberType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfReferenceType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfRestrictType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfSetType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfSharedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfStringType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfStructureType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfSubprogram.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfSubrangeType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfSubroutineType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfTemplateTypeParameter.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfTemplateValueParameter.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfThrownType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfTryBlock.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfTypedef.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUnionType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUnknownConstruct.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUnspecifiedParameters.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUnspecifiedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUpcRelaxedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUpcSharedType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfUpcStrictType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfVariable.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfVariant.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfVariantPart.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfVolatileType.h \
$(ROSE)/src/ROSETTA/src/SgAsmDwarfWithStmt.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfDynamicEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfDynamicEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfDynamicSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfEHFrameEntryCI.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfEHFrameEntryCIList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfEHFrameEntryFD.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfEHFrameEntryFDList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfEHFrameSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfFileHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfNoteEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfNoteEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfNoteSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfRelocEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfRelocEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfRelocSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSectionTableEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSectionTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSegmentTableEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSegmentTableEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSegmentTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfStringSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfStrtab.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymbol.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymbolList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymbolSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverDefinedAux.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverDefinedAuxList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverDefinedEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverDefinedEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverDefinedSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverNeededAux.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverNeededAuxList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverNeededEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverNeededEntryList.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverNeededSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmElfSymverSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmExecutableFileFormat.h \
$(ROSE)/src/ROSETTA/src/SgAsmExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmExprListExp.h \
$(ROSE)/src/ROSETTA/src/SgAsmFloatType.h \
$(ROSE)/src/ROSETTA/src/SgAsmFloatValueExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmFunction.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericDLL.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericDLLList.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericFile.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericFileList.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericFormat.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericHeaderList.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericSection.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericSectionList.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericString.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericStrtab.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericSymbol.h \
$(ROSE)/src/ROSETTA/src/SgAsmGenericSymbolList.h \
$(ROSE)/src/ROSETTA/src/SgAsmIndirectRegisterExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmInstruction.h \
$(ROSE)/src/ROSETTA/src/SgAsmInstructionList.h \
$(ROSE)/src/ROSETTA/src/SgAsmIntegerType.h \
$(ROSE)/src/ROSETTA/src/SgAsmIntegerValueExpression.h \
$(ROSE)/src/ROSETTA/src/SgAsmInterpretation.h \
$(ROSE)/src/ROSETTA/src/SgAsmInterpretationList.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmAttribute.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmAttributeTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmBootstrapMethod.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmBootstrapMethods.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmClass.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmCodeAttribute.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmConstantPoolEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmConstantPool.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmConstantValue.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmEnclosingMethod.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmExceptionHandler.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmExceptions.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmExceptionTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmField.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmFieldTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmFileHeader.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmInnerClassesEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmInnerClasses.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmInstruction.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmLineNumberEntry.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmLineNumberTable.h \
$(ROSE)/src/ROSETTA/src/SgAsmJvmLocalVariableEntry.h \