-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.am
4104 lines (3376 loc) · 166 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
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
##########################################################################
# (C) Copyright 2006-2013 Barcelona Supercomputing Center #
# Centro Nacional de Supercomputacion #
# #
# This file is part of Mercurium C/C++ source-to-source compiler. #
# #
# See AUTHORS file in the top level directory for information #
# regarding developers and contributors. #
# #
# This library is free software; you can redistribute it and/or #
# modify it under the terms of the GNU Lesser General Public #
# License as published by the Free Software Foundation; either #
# version 3 of the License, or (at your option) any later version. #
# #
# Mercurium C/C++ source-to-source compiler 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 Lesser General Public License for more #
# details. #
# #
# You should have received a copy of the GNU Lesser General Public #
# License along with Mercurium C/C++ source-to-source compiler; if #
# not, write to the Free Software Foundation, Inc., 675 Mass Ave, #
# Cambridge, MA 02139, USA. #
##########################################################################
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = . tests
DIST_SUBDIRS = tests doc
# We should use AM_DISTCHECK_CONFIGURE_FLAGS but it is only available in Automake 1.11
DISTCHECK_CONFIGURE_FLAGS =
# We need to augment the command line variables
override DISTCHECK_CONFIGURE_FLAGS += --enable-distcheck-processing=yes
# This rule generates DIST_REVISION
git-version-dist-hook:
if test x"$(GIT)" != x; \
then \
run_gitversion=`"$(GIT)" --git-dir=$(srcdir)/.git show "--pretty=format:%h %ci" HEAD | head -n 1`; \
build_version="$${run_gitversion}"; \
echo "$${build_version}" > $(distdir)/DIST_REVISION; \
elif [ -e $(srcdir)/DIST_REVISION ]; \
then \
cp $(srcdir)/DIST_REVISION $(distdir)/DIST_REVISION; \
fi
##########################################################################
## Directories ####
##########################################################################
# Make sure you use the full path (relative from this Makefile.am)
# Files will be built in the appropiate directory
# Global variables
#
# Any variable appearing here can only be += afterwards
# (otherwise you would be overwriting it!)
EXTRA_DIST =
END =
noinst_LIBRARIES=
noinst_LTLIBRARIES =
noinst_PROGRAMS =
lib_LTLIBRARIES =
CLEANFILES =
BUILT_SOURCES =
# These variables are not intended for any further modification
if WINDOWS_BUILD
no_undefined=-no-undefined
dll_exports=-Wl,src/frontend/dll-exports.def
else
no_undefined=
dll_exports=
endif
AM_CFLAGS=
AM_CPPFLAGS=
AM_CXXFLAGS=
AM_LDFLAGS=
if EXTRAE_ENABLED
AM_CPPFLAGS += -I@EXTRAE_INCLUDE@
AM_LDFLAGS += -L@EXTRAE_LIB@ -lseqtrace
endif
##########################################################################
# gnulib
##########################################################################
#
# This library was used when building Mercurium in Solaris
# In Linux it does nothing
EXTRA_DIST +=\
gnulib/tempname.c \
gnulib/tempname.h \
gnulib/mkdtemp.c \
gnulib/siglist.h \
gnulib/strsignal.c \
$(END)
noinst_LTLIBRARIES += gnulib/libgnulib.la
gnulib_libgnulib_la_SOURCES = gnulib/dummy.c
gnulib_libgnulib_la_LIBADD=$(LTLIBOBJS)
##########################################################################
# lib
##########################################################################
noinst_PROGRAMS += lib/tpp
CC_FOR_BUILD=@CC_FOR_BUILD@
if SUPPORTED_SILENT_RULES
CCBUILD_verbose = $(CCBUILD_verbose_$(V))
CCBUILD_verbose_ = $(CCBUILD_verbose_$(AM_DEFAULT_VERBOSITY))
CCBUILD_verbose_0 = @echo " CCBUILD " $@;
endif
# tpp
lib_tpp_SOURCES = lib/tpp.c
lib/tpp$(EXEEXT): lib/tpp.o
$(CCBUILD_verbose)$(CC_FOR_BUILD) -o $@ $+ $(LDFLAGS)
lib/tpp.o : lib/tpp.c
$(CCBUILD_verbose)$(CC_FOR_BUILD) $(CFLAGS) -c -o $@ $(top_srcdir)/lib/tpp.c $(DEFAULT_INCLUDES) \
-DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(PACKAGE_VERSION)\"
#end of tpp
lib_LTLIBRARIES += lib/libmcxx-utils.la
lib_libmcxx_utils_la_CFLAGS = -std=gnu99 -Wall -DLIBUTILS_DLL_EXPORT
lib_libmcxx_utils_la_SOURCES = \
lib/mcxx_refcount.c \
lib/mcxx_refcount.h \
lib/uniquestr.h \
lib/char_hash.c \
lib/libutils-common.h \
lib/filename.c \
lib/filename.h \
lib/string_utils.h \
lib/string_utils.c \
lib/dhash_str.c \
lib/dhash_str.h \
lib/dhash_ptr.c \
lib/dhash_ptr.h \
lib/red_black_tree.c \
lib/red_black_tree.h \
lib/mem.c \
lib/mem.h \
$(END)
lib_libmcxx_utils_la_LDFLAGS= -avoid-version $(no_undefined)
lib_libmcxx_utils_la_LIBADD= -lm
BUILT_SOURCES += lib/perish.o
CLEANFILES += lib/perish.o
EXTRA_DIST += lib/perish.c
lib/perish.o : lib/perish.c
$(CCBUILD_verbose)$(CC_FOR_BUILD) $(CFLAGS) -fPIC -c -o $@ $(top_srcdir)/lib/perish.c $(DEFAULT_INCLUDES) \
-DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(PACKAGE_VERSION)\"
##########################################################################
# src
##########################################################################
# Empty
##########################################################################
# src/frontend
##########################################################################
# These two variables are used again in src/tl
NODECL_GENERATOR=$(top_srcdir)/src/frontend/nodecl-generator.py
NODECL_DEF=$(top_srcdir)/src/frontend/cxx-nodecl.def
lib_LTLIBRARIES += \
src/frontend/libmcxx-process.la \
src/frontend/libmcxx.la
# Overall process library containing global data
src_frontend_libmcxx_process_la_CFLAGS=-std=gnu99 \
-DLIBMCXXPROCESS_DLL_EXPORT \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/support/gperf \
-I$(top_builddir)/support/gperf \
-I$(top_srcdir)/src/driver \
-I$(top_srcdir)/src/frontend \
-I$(top_srcdir)/src/frontend/fortran \
-I$(top_srcdir)/src/mcxx_tl \
-I$(top_builddir)/lib \
-I$(top_builddir)/src/driver \
-I$(top_builddir)/src/frontend \
-I$(top_builddir)/src/frontend/fortran \
-I$(top_builddir)/src/mcxx_tl \
$(END)
src_frontend_libmcxx_process_la_LDFLAGS=-avoid-version $(no_undefined)
src_frontend_libmcxx_process_la_LIBADD=./lib/libmcxx-utils.la
src_frontend_libmcxx_process_la_SOURCES = \
src/frontend/cxx-process.c \
src/frontend/cxx-process.h \
$(END)
# Mercurium C/C++ compiler runtime library
src_frontend_libmcxx_la_SOURCES = \
src/frontend/cxx-limits.h \
src/frontend/cxx-macros.h \
src/frontend/cxx-locus.h \
src/frontend/cxx-locus-inline.h \
src/frontend/cxx-locus.c \
src/frontend/cxx-asttype.h \
src/frontend/cxx-asttype.c \
src/frontend/cxx-asttype-str.c \
src/frontend/cxx-asttype-str.h \
src/frontend/cxx-asttype-str-internal.h \
src/frontend/cxx-ast.c \
src/frontend/cxx-ast.h \
src/frontend/cxx-ast-inline.h \
src/frontend/cxx-ast-fwd.h \
src/frontend/cxx-ast-decls.h \
src/frontend/cxx-nodecl.h \
src/frontend/cxx-nodecl-inline.h \
src/frontend/cxx-nodecl.c \
src/frontend/cxx-nodecl-fwd.h \
src/frontend/cxx-nodecl-decls.h \
src/frontend/cxx-nodecl-checker.h \
src/frontend/cxx-nodecl-checker.c \
src/frontend/cxx-nodecl-output.h \
src/frontend/cxx-nodecl-output.c \
src/frontend/cxx-nodecl-visitor.h \
src/frontend/cxx-nodecl-visitor.c \
src/frontend/cxx-nodecl-shallow-copy.c \
src/frontend/cxx-nodecl-deep-copy-fwd.h \
src/frontend/cxx-nodecl-deep-copy.h \
src/frontend/cxx-nodecl-deep-copy-base.c \
src/frontend/cxx-nodecl-deep-copy.c \
src/frontend/cxx-symbol-deep-copy-entity-specs.c \
src/frontend/cxx-symbol-deep-copy.h \
src/frontend/cxx-symbol-deep-copy.c \
src/frontend/cxx-lexer.h \
src/frontend/cxx-parser.h \
src/frontend/cxx-parser-internal.h \
src/frontend/cxx-parser.c \
src/frontend/cxx-scanner.c \
src/frontend/c99-scanner.c \
src/frontend/c99-parser.h \
src/frontend/c99-parser-internal.h \
src/frontend/c99-parser.c \
src/frontend/cxx-graphviz.h \
src/frontend/cxx-graphviz.c \
src/frontend/cxx-html.h \
src/frontend/cxx-html.c \
src/frontend/cxx-prettyprint.c \
src/frontend/cxx-prettyprint.h \
src/frontend/cxx-prettyprint-internal.h \
src/frontend/cxx-utils.c \
src/frontend/cxx-utils.h \
src/frontend/cxx-scope.c \
src/frontend/cxx-scope.h \
src/frontend/cxx-entrylist-decls.h \
src/frontend/cxx-entrylist.c \
src/frontend/cxx-entrylist.h \
src/frontend/cxx-scope-fwd.h \
src/frontend/cxx-scope-decls.h \
src/frontend/cxx-buildscope-decls.h \
src/frontend/cxx-buildscope.c \
src/frontend/cxx-buildscope.h \
src/frontend/cxx-type-trie.h \
src/frontend/cxx-type-trie.c \
src/frontend/cxx-typeutils.c \
src/frontend/cxx-typeutils.h \
src/frontend/cxx-type-fwd.h \
src/frontend/cxx-type-decls.h \
src/frontend/cxx-typeenviron-decls.h \
src/frontend/cxx-typeenviron.h \
src/frontend/cxx-typeenviron.c \
src/frontend/cxx-typededuc.c \
src/frontend/cxx-typededuc.h \
src/frontend/cxx-typededuc-decls.h \
src/frontend/cxx-cexpr.c \
src/frontend/cxx-cexpr.h \
src/frontend/cxx-cexpr-fwd.h \
src/frontend/cxx-cexpr-decls.h \
src/frontend/cxx-cexpr-deep-copy.h \
src/frontend/cxx-cexpr-deep-copy.c \
src/frontend/cxx-ambiguity.c \
src/frontend/cxx-ambiguity.h \
src/frontend/cxx-solvetemplate.h \
src/frontend/cxx-solvetemplate.c \
src/frontend/cxx-printscope.c \
src/frontend/cxx-printscope.h \
src/frontend/cxx-instantiation.h \
src/frontend/cxx-instantiation-decls.h \
src/frontend/cxx-instantiation.c \
src/frontend/cxx-dyninit.c \
src/frontend/cxx-dyninit.h \
src/frontend/cxx-tltype.h \
src/frontend/cxx-tltype.c \
src/frontend/cxx-exprtype-decls.h \
src/frontend/cxx-exprtype.h \
src/frontend/cxx-exprtype.c \
src/frontend/cxx-koenig.h \
src/frontend/cxx-koenig.c \
src/frontend/cxx-gccsupport-decls.h \
src/frontend/cxx-gccsupport.h \
src/frontend/cxx-gccsupport.c \
src/frontend/cxx-mssupport.h \
src/frontend/cxx-mssupport.c \
src/frontend/cxx-pragma.h \
src/frontend/cxx-pragma.c \
src/frontend/cxx-upc.c \
src/frontend/cxx-upc.h \
src/frontend/cxx-cuda.c \
src/frontend/cxx-cuda.h \
src/frontend/cxx-typeorder.h \
src/frontend/cxx-typeorder.c \
src/frontend/cxx-overload.c \
src/frontend/cxx-overload-decls.h \
src/frontend/cxx-overload.h \
src/frontend/cxx-codegen.h \
src/frontend/cxx-diagnostic.c \
src/frontend/cxx-diagnostic.h \
src/frontend/cxx-placeholders.c \
src/frontend/cxx-placeholders.h \
src/frontend/libmcxx-common.h \
$(END)
src_frontend_libmcxx_la_LIBADD = \
./lib/libmcxx-utils.la \
./src/frontend/libmcxx-process.la \
./src/frontend/libgccbuiltins.la \
$(quadmath_LIBS) \
$(END)
# This is for Win32
EXTRA_DIST += src/frontend/dll-exports.def
src_frontend_libmcxx_la_LDFLAGS = $(dll_exports) -avoid-version $(no_undefined)
cfrontend_cflags = \
-std=gnu99 \
-DLIBMCXX_DLL_EXPORT \
-Wall \
-Wshadow \
-Wextra \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/support/gperf \
-I$(top_builddir)/support/gperf \
-I$(top_srcdir)/src/driver \
-I$(top_srcdir)/src/mcxx_tl \
-I$(top_srcdir)/src/frontend \
-I$(top_srcdir)/src/frontend/fortran \
-I./src/frontend \
-I./src/frontend/fortran \
-fexceptions \
-DPKGDATADIR=\"$(pkgdatadir)\"
src_frontend_libmcxx_la_CFLAGS = $(cfrontend_cflags)
noinst_LTLIBRARIES += src/frontend/libgccbuiltins.la
src_frontend_libgccbuiltins_la_LDFLAGS=-avoid-version $(no_undefined)
src_frontend_libgccbuiltins_la_CFLAGS=@NO_VAR_TRACKING_ASSIGNMENTS@ \
$(cfrontend_cflags)
src_frontend_libgccbuiltins_la_SOURCES = \
src/frontend/cxx-gccbuiltins.h \
src/frontend/cxx-gccbuiltins-ia32.h \
src/frontend/cxx-gccbuiltins-ia32-deprecated.h \
src/frontend/cxx-gccbuiltins-arm-neon.h \
src/frontend/cxx-gccbuiltins-arm64-neon.h \
src/frontend/cxx-gccbuiltins.c \
src/frontend/cxx-gccspubuiltins.h \
src/frontend/cxx-gccspubuiltins.c \
\
src/frontend/cxx-iccbuiltins.h \
src/frontend/cxx-iccbuiltins-knc.h \
src/frontend/cxx-intelsupport.h \
src/frontend/cxx-intelsupport.c \
$(END)
EXTRA_DIST += src/frontend/cxx-lexer.l
# AST node types
AST_NODE_TYPE_FILES =
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-all.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-base.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-extensions.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-gcc.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-pragma.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-superscalar.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-upc.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-omp.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-ompss.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-cuda.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-opencl.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-xl.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-ms.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-intel.def
AST_NODE_TYPE_FILES += src/frontend/cxx-asttype-fortran.def
# Generated
AST_NODE_TYPE_FILES_GEN =
AST_NODE_TYPE_FILES_GEN += src/frontend/cxx-asttype-nodecl.def
EXTRA_DIST += $(AST_NODE_TYPE_FILES) $(AST_NODE_TYPE_FILES_GEN)
EXTRA_DIST += src/frontend/c99.l
EXTRA_DIST += src/frontend/c99.y
EXTRA_DIST += src/frontend/c99.y.in
EXTRA_DIST += src/frontend/c99-scanner.c
EXTRA_DIST += src/frontend/cxx03.l
EXTRA_DIST += src/frontend/cxx03.y
EXTRA_DIST += src/frontend/cxx03.y.in
EXTRA_DIST += src/frontend/cxx-scanner.c
EXTRA_DIST += src/frontend/cxx-asttype.def
ADDITIONAL_GRAMMARS =
ADDITIONAL_GRAMMARS += src/frontend/cxx-subparse.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-literal-nodes.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-pragma.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-omp.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-ompss.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-superscalar.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-ambig-handler.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-placeholders.y
ADDITIONAL_GRAMMARS += src/frontend/c99-upc.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-cuda.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-opencl.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-xl.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-ms.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-intel.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-extensions.y
ADDITIONAL_GRAMMARS += src/frontend/cxx-fortran-compat.y
EXTRA_DIST += $(ADDITIONAL_GRAMMARS)
EXTRA_DIST += src/frontend/cxx-gccspubuiltins.def
# Built sources, they are built the first
# otherwise parallel compilation is likely to fail
BUILT_SOURCES += src/frontend/cxx-asttype.c
BUILT_SOURCES += src/frontend/cxx-asttype.h
BUILT_SOURCES += src/frontend/c99.l
BUILT_SOURCES += src/frontend/cxx03.l
BUILT_SOURCES += src/frontend/c99.y
BUILT_SOURCES += src/frontend/cxx03.y
BUILT_SOURCES += src/frontend/cxx-parser.h
BUILT_SOURCES += src/frontend/c99-parser.h
EXTRA_DIST += src/frontend/gen-symbol-attrs.py
EXTRA_DIST += src/frontend/cxx-entity-specs.def
EXTRA_DIST += src/frontend/nodecl-generator.py
EXTRA_DIST += src/frontend/cxx-nodecl.def
EXTRA_DIST += src/frontend/cxx-asttype-str.gperf
TPP=./lib/tpp$(EXEEXT)
# Silent rules
if SUPPORTED_SILENT_RULES
BISON_verbose = $(BISON_verbose_$(V))
BISON_verbose_ = $(BISON_verbose_$(AM_DEFAULT_VERBOSITY))
BISON_verbose_0 = @echo " BISON " $@;
FLEX_verbose = $(FLEX_verbose_$(V))
FLEX_verbose_ = $(FLEX_verbose_$(AM_DEFAULT_VERBOSITY))
FLEX_verbose_0 = @echo " FLEX " $@;
TPP_verbose = $(TPP_verbose_$(V))
TPP_verbose_ = $(TPP_verbose_$(AM_DEFAULT_VERBOSITY))
TPP_verbose_0 = @echo " TPP " $@;
PYTHON_verbose = $(PYTHON_verbose_$(V))
PYTHON_verbose_ = $(PYTHON_verbose_$(AM_DEFAULT_VERBOSITY))
PYTHON_verbose_0 = @echo " PYTHON" $@;
GPERF_verbose = $(GPERF_verbose_$(V))
GPERF_verbose_ = $(GPERF_verbose_$(AM_DEFAULT_VERBOSITY))
GPERF_verbose_0 = @echo " GPERF " $@;
endif
if GPERF_BUILDING
CLEANFILES += src/frontend/cxx-asttype.h
endif
src/frontend/cxx-asttype.h : src/frontend/cxx-asttype.def $(NODECL_GENERATOR)
$(AM_V_GEN)( \
OUT_FILE="src/frontend/cxx-asttype.h";\
echo "#ifndef CXX_ASTTYPE_H" > $${OUT_FILE}; \
echo "#define CXX_ASTTYPE_H" >> $${OUT_FILE}; \
echo "#include \"libmcxx-common.h\"" >> $${OUT_FILE}; \
echo "#include \"cxx-macros.h\"" >> $${OUT_FILE}; \
echo "MCXX_BEGIN_DECLS" >> $${OUT_FILE}; \
echo "/* This file has been generated. Every time you change $< it will be regenerated */" >> $${OUT_FILE}; \
echo "enum node_type {" >> $${OUT_FILE}; \
echo "AST_INVALID_NODE = 0," >> $${OUT_FILE}; \
$(SED) -e "/^[[:blank:]]*\(#.*\)\?$$/d" -e "s/$$/,/" < src/frontend/cxx-asttype.def >> $${OUT_FILE}; \
echo "AST_LAST_NODE" >> $${OUT_FILE}; \
echo "};" >> $${OUT_FILE}; \
echo "LIBMCXX_EXTERN char* ast_node_names[];" >> $${OUT_FILE}; \
echo "typedef enum node_type node_t;" >> $${OUT_FILE}; \
echo "MCXX_END_DECLS" >> $${OUT_FILE}; \
echo "#endif // CXX_ASTTYPE_H" >> $${OUT_FILE}; \
)
if GPERF_BUILDING
CLEANFILES += src/frontend/cxx-asttype.c
endif
src/frontend/cxx-asttype.c : src/frontend/cxx-asttype.def src/frontend/cxx-asttype.h
$(AM_V_GEN)( \
OUT_FILE="src/frontend/cxx-asttype.c";\
echo "/* This file has been generated. Every time you change $< it will be regenerated */" > $${OUT_FILE}; \
echo "#include \"cxx-asttype.h\"" >> $${OUT_FILE}; \
echo "char* ast_node_names[] = {" >> $${OUT_FILE}; \
echo "[AST_INVALID_NODE] = \"AST_INVALID_NODE\", " >> $${OUT_FILE}; \
$(SED) -e "/^[[:blank:]]*\(#.*\)\?$$/d" -e "s/^.*$$/[&] = \"&\",/" < src/frontend/cxx-asttype.def >> $${OUT_FILE}; \
echo "[AST_LAST_NODE] = \"AST_LAST_NODE\", " >> $${OUT_FILE}; \
echo "};" >> $${OUT_FILE}; \
)
if GPERF_BUILDING
BUILT_SOURCES += src/frontend/cxx-asttype.def
CLEANFILES += src/frontend/cxx-asttype.def
src/frontend/cxx-asttype.def : $(TPP) $(addprefix $(top_srcdir)/, $(AST_NODE_TYPE_FILES)) $(AST_NODE_TYPE_FILES_GEN)
$(TPP_verbose)$(TPP) -o src/frontend/cxx-asttype.def -I$(top_srcdir)/src/frontend -I./src/frontend $(top_srcdir)/src/frontend/cxx-asttype-all.def
BUILT_SOURCES += src/frontend/cxx-asttype-str.gperf
CLEANFILES += src/frontend/cxx-asttype-str.gperf
src/frontend/cxx-asttype-str.gperf : src/frontend/cxx-asttype.def
$(AM_V_GEN)( \
OUT_FILE="src/frontend/cxx-asttype-str.gperf"; \
echo "%{" > $${OUT_FILE}; \
echo "/* This file has been generated. Every time you change $+ it will be regenerated */" >> $${OUT_FILE}; \
echo "%}" >> $${OUT_FILE}; \
echo "struct node_str_t;" >> $${OUT_FILE}; \
echo "%%" >> $${OUT_FILE}; \
echo "\"AST_INVALID_NODE\", AST_INVALID_NODE" >> $${OUT_FILE}; \
$(SED) -e "/^[[:blank:]]*\(#.*\)\?$$/d" -e "s/^[[:blank:]]*\([^[:blank:]]\+\)[[:blank:]]*$$/\"\1\", \1/" < src/frontend/cxx-asttype.def >> $${OUT_FILE}; \
echo "\"AST_LAST_NODE\", AST_LAST_NODE" >> $${OUT_FILE}; \
echo "%%" >> $${OUT_FILE}; \
)
endif
if GPERF_BUILDING
BUILT_SOURCES += src/frontend/cxx-asttype-str-internal.h
CLEANFILES += src/frontend/cxx-asttype-str-internal.h
endif
if GPERF_BUILDING
src/frontend/cxx-asttype-str-internal.h: src/frontend/cxx-asttype-str.gperf $(GPERF_COMPAT_TYPES_H)
$(GPERF_verbose)$(GPERF) --language=ANSI-C --hash-function-name=ast_node_kind_hash --struct-type \
--lookup-function-name=ast_node_name_to_kind_ --output=src/frontend/cxx-asttype-str-internal.h \
--initializer-suffix=,AST_INVALID_NODE src/frontend/cxx-asttype-str.gperf
endif
if FLEX_BUILDING
CLEANFILES += src/frontend/cxx-scanner.c
CLEANFILES += src/frontend/cxx03.l
endif
if FLEX_BUILDING
src/frontend/cxx-scanner.c : src/frontend/cxx03.l src/frontend/cxx-parser.h
$(FLEX_verbose)$(FLEX) -Pmcxx -d -osrc/frontend/cxx-scanner.c -8 src/frontend/cxx03.l
endif
src/frontend/cxx03.l : $(TPP) src/frontend/cxx-lexer.l
$(TPP_verbose)(rm -f src/frontend/cxx03.l && $(TPP) -o src/frontend/cxx03.l -D CPLUSPLUS $(top_srcdir)/src/frontend/cxx-lexer.l && chmod -w src/frontend/cxx03.l)
if BISON_BUILDING
CLEANFILES += src/frontend/cxx-parser.c
CLEANFILES += src/frontend/cxx-parser-internal.h
CLEANFILES += src/frontend/cxx-parser.output
CLEANFILES += src/frontend/cxx03.y
endif
src/frontend/cxx03.y : $(TPP) $(top_srcdir)/src/frontend/cxx03.y.in $(addprefix $(top_srcdir)/, $(ADDITIONAL_GRAMMARS))
$(TPP_verbose)(rm -f src/frontend/cxx03.y && $(TPP) -o src/frontend/cxx03.y -D CPLUSPLUS -I$(top_srcdir)/src/frontend $(top_srcdir)/src/frontend/cxx03.y.in && chmod -w src/frontend/cxx03.y)
src/frontend/cxx-parser-internal.h : src/frontend/cxx-parser.c
if BISON_BUILDING
src/frontend/cxx-parser.c : src/frontend/cxx03.y
$(BISON_verbose)$(BISON) -pmcxx --debug --defines=src/frontend/cxx-parser-internal.h $(BISON_REPORTING) --output=src/frontend/cxx-parser.c src/frontend/cxx03.y
endif
# These are obtained when invoking bison, if we write a rule like 'a b : d' it
# breaks parallel compilations since bison gets invoked twice.
src/frontend/cxx-parser.h : src/frontend/cxx-parser.c
src/frontend/cxx-parser.output : src/frontend/cxx-parser.c
if FLEX_BUILDING
CLEANFILES += src/frontend/c99-scanner.c
CLEANFILES += src/frontend/c99.l
endif
if FLEX_BUILDING
src/frontend/c99-scanner.c : src/frontend/c99.l src/frontend/c99-parser.h
$(FLEX_verbose)$(FLEX) -Pmc99 -d -osrc/frontend/c99-scanner.c -8 src/frontend/c99.l
endif
src/frontend/c99.l : $(TPP) $(top_srcdir)/src/frontend/cxx-lexer.l
$(TPP_verbose)(rm -f src/frontend/c99.l && $(TPP) -o src/frontend/c99.l -D C99 $(top_srcdir)/src/frontend/cxx-lexer.l && chmod -w src/frontend/c99.l)
if BISON_BUILDING
CLEANFILES += src/frontend/c99-parser.c
CLEANFILES += src/frontend/c99-parser-internal.h
CLEANFILES += src/frontend/c99-parser.output
CLEANFILES += src/frontend/c99.y
endif
src/frontend/c99.y : $(TPP) $(top_srcdir)/src/frontend/c99.y.in $(addprefix $(top_srcdir)/, $(ADDITIONAL_GRAMMARS))
$(TPP_verbose)(rm -f src/frontend/c99.y && $(TPP) -o src/frontend/c99.y -D C99 -I$(top_srcdir)/src/frontend $(top_srcdir)/src/frontend/c99.y.in)
src/frontend/c99-parser-internal.h : src/frontend/c99-parser.c
if BISON_BUILDING
src/frontend/c99-parser.c : src/frontend/c99.y
$(BISON_verbose)$(BISON) -pmc99 --debug --defines=src/frontend/c99-parser-internal.h $(BISON_REPORTING) --output=src/frontend/c99-parser.c src/frontend/c99.y
endif
# These are obtained when invoking bison, if we write a rule like 'a b : d' it
# breaks parallel compilations since bison gets invoked twice.
src/frontend/c99-parser.h : src/frontend/c99-parser.c
src/frontend/c99-parser.output : src/frontend/c99-parser.c
CLEANFILES += src/frontend/cxx-entity-specs.h
BUILT_SOURCES += src/frontend/cxx-entity-specs.h
src/frontend/cxx-entity-specs.h : $(top_srcdir)/src/frontend/cxx-entity-specs.def $(top_srcdir)/src/frontend/gen-symbol-attrs.py
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/gen-symbol-attrs.py $(top_srcdir)/src/frontend/cxx-entity-specs.def > $@
CLEANFILES += src/frontend/cxx-entity-specs-ops.h
BUILT_SOURCES += src/frontend/cxx-entity-specs-ops.h
src/frontend/cxx-entity-specs-ops.h : $(top_srcdir)/src/frontend/cxx-entity-specs.def $(top_srcdir)/src/frontend/gen-symbol-attrs.py
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/gen-symbol-attrs.py $(top_srcdir)/src/frontend/cxx-entity-specs.def getters_and_setters > $@
CLEANFILES += src/frontend/cxx-symbol-deep-copy-entity-specs.c
BUILT_SOURCES += src/frontend/cxx-symbol-deep-copy-entity-specs.c
src/frontend/cxx-symbol-deep-copy-entity-specs.c : $(top_srcdir)/src/frontend/cxx-entity-specs.def $(top_srcdir)/src/frontend/gen-symbol-attrs.py
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/gen-symbol-attrs.py $(top_srcdir)/src/frontend/cxx-entity-specs.def c_deep_copy_entity_specs > $@
CLEANFILES += src/frontend/cxx-nodecl-checker.c
BUILT_SOURCES += src/frontend/cxx-nodecl-checker.c
src/frontend/cxx-nodecl-checker.c : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(NODECL_GENERATOR) $(NODECL_DEF) > $@
CLEANFILES += src/frontend/cxx-nodecl-output.c
BUILT_SOURCES += src/frontend/cxx-nodecl-output.c
src/frontend/cxx-nodecl-output.c : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(NODECL_GENERATOR) $(NODECL_DEF) generation_routines_impl > $@
CLEANFILES += src/frontend/cxx-nodecl-output.h
BUILT_SOURCES += src/frontend/cxx-nodecl-output.h
src/frontend/cxx-nodecl-output.h : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(NODECL_GENERATOR) $(NODECL_DEF) generation_routines_header > $@
CLEANFILES += src/frontend/cxx-nodecl-visitor.h
BUILT_SOURCES += src/frontend/cxx-nodecl-visitor.h
src/frontend/cxx-nodecl-visitor.h : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(NODECL_GENERATOR) $(NODECL_DEF) c_visitor_decl > $@
CLEANFILES += src/frontend/cxx-nodecl-visitor.c
BUILT_SOURCES += src/frontend/cxx-nodecl-visitor.c
src/frontend/cxx-nodecl-visitor.c : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(NODECL_GENERATOR) $(NODECL_DEF) c_visitor_def > $@
CLEANFILES += src/frontend/cxx-nodecl-shallow-copy.c
BUILT_SOURCES += src/frontend/cxx-nodecl-shallow-copy.c
src/frontend/cxx-nodecl-shallow-copy.c : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/nodecl-generator.py $(top_srcdir)/src/frontend/cxx-nodecl.def c_shallow_copy_def > $@
CLEANFILES += src/frontend/cxx-nodecl-deep-copy-base.c
BUILT_SOURCES += src/frontend/cxx-nodecl-deep-copy-base.c
src/frontend/cxx-nodecl-deep-copy-base.c : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/nodecl-generator.py $(top_srcdir)/src/frontend/cxx-nodecl.def c_deep_copy_def > $@
CLEANFILES += src/frontend/cxx-asttype-nodecl.def
BUILT_SOURCES += src/frontend/cxx-asttype-nodecl.def
src/frontend/cxx-asttype-nodecl.def : $(NODECL_DEPS)
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/nodecl-generator.py $(top_srcdir)/src/frontend/cxx-nodecl.def asttype_nodecl > $@
##########################################################################
# src/frontend/fortran
##########################################################################
lib_LTLIBRARIES += src/frontend/fortran/libmf03.la src/frontend/fortran/libmf03-prescanner.la
BUILT_SOURCES += src/frontend/fortran/fortran03-parser.c
BUILT_SOURCES += src/frontend/fortran/fortran03-parser-internal.h
BUILT_SOURCES += src/frontend/fortran/fortran03.y
BUILT_SOURCES += src/frontend/fortran/prescanner-scanner.h
BUILT_SOURCES += src/frontend/fortran/fortran03-modules-bits.h
BUILT_SOURCES += src/frontend/fortran/fortran03-keywords.c
# Mercurium C/C++ compiler runtime library
src_frontend_fortran_libmf03_la_SOURCES = \
src/frontend/fortran/fortran03-parser.c \
src/frontend/fortran/fortran03-parser.h \
src/frontend/fortran/fortran03-lexer.h \
src/frontend/fortran/fortran03-keywords.c \
src/frontend/fortran/fortran03-scanner.h \
src/frontend/fortran/fortran03-scanner.c \
src/frontend/fortran/fortran03-parser-internal.h \
src/frontend/fortran/fortran03-cexpr.h \
src/frontend/fortran/fortran03-cexpr.c \
src/frontend/fortran/fortran03-utils.h \
src/frontend/fortran/fortran03-utils.c \
src/frontend/fortran/fortran03-typeutils.h \
src/frontend/fortran/fortran03-typeutils.c \
src/frontend/fortran/fortran03-typeenviron-decls.h \
src/frontend/fortran/fortran03-typeenviron.h \
src/frontend/fortran/fortran03-typeenviron.c \
src/frontend/fortran/fortran03-prettyprint.c \
src/frontend/fortran/fortran03-prettyprint.h \
src/frontend/fortran/fortran03-split.h \
src/frontend/fortran/fortran03-split.c \
src/frontend/fortran/fortran03-scope-decls.h \
src/frontend/fortran/fortran03-scope.h \
src/frontend/fortran/fortran03-scope.c \
src/frontend/fortran/fortran03-buildscope.h \
src/frontend/fortran/fortran03-buildscope.c \
src/frontend/fortran/fortran03-exprtype.h \
src/frontend/fortran/fortran03-exprtype.c \
src/frontend/fortran/fortran03-intrinsics.h \
src/frontend/fortran/fortran03-intrinsics-simplify.h \
src/frontend/fortran/fortran03-intrinsics.c \
src/frontend/fortran/fortran03-modules.h \
src/frontend/fortran/fortran03-modules-data.h \
src/frontend/fortran/fortran03-modules-bits.h \
src/frontend/fortran/fortran03-modules.c \
src/frontend/fortran/fortran03-codegen.h \
src/frontend/fortran/fortran03-mangling.h \
src/frontend/fortran/fortran03-mangling.c \
src/frontend/fortran/libmf03-common.h \
$(END)
src_frontend_fortran_libmf03_la_LIBADD = \
$(top_builddir)/lib/libmcxx-utils.la \
$(top_builddir)/src/frontend/libmcxx-process.la \
$(sqlite3_LIBS) \
$(END)
src_frontend_fortran_libmf03_la_LDFLAGS = $(dll_exports) -avoid-version $(no_undefined)
# This is a humongous amount of memory but sometimes
# lines generated by the compiler are HUGE
FORTRAN_FLEX_FLAGS=-DYY_BUF_SIZE=1048576
src_frontend_fortran_libmf03_la_CFLAGS = \
-std=gnu99 \
-DLIBMF03_DLL_EXPORT \
-Wall \
-Wshadow \
-Wextra \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/support/gperf \
-I$(top_builddir)/support/gperf \
-I$(top_srcdir)/src/frontend \
-I$(top_srcdir)/src/frontend/fortran \
-I$(top_srcdir)/src/mcxx_tl \
-I$(top_builddir)/src/frontend \
-I$(top_builddir)/src/frontend/fortran \
-I$(top_srcdir)/src/driver \
-I$(top_srcdir)/src/driver/fortran \
-I$(top_builddir)/src/driver \
$(FORTRAN_FLEX_FLAGS) \
-fexceptions \
-std=gnu99 \
-DPKGDATADIR=\"$(pkgdatadir)\" \
$(sqlite3_CFLAGS) \
$(END)
# Prescanner
src_frontend_fortran_libmf03_prescanner_la_SOURCES = \
src/frontend/fortran/prescanner-identifier.c \
src/frontend/fortran/prescanner-identifier.h \
src/frontend/fortran/prescanner-process.c \
src/frontend/fortran/prescanner-process-decls.h \
src/frontend/fortran/prescanner-process.h \
src/frontend/fortran/libmf03-prescanner-common.h \
$(END)
src_frontend_fortran_libmf03_prescanner_la_CFLAGS = \
-std=gnu99 \
-DLIBMF03_PRESCANNER_DLL_EXPORT \
-Wall \
-Wshadow \
-Wextra \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/support/gperf \
-I$(top_builddir)/support/gperf \
-I$(top_srcdir)/src/frontend \
-I$(top_srcdir)/src/frontend/fortran \
-I$(top_builddir)/src/frontend \
-I$(top_builddir)/src/frontend/fortran \
-I$(top_srcdir)/src/driver \
$(FORTRAN_FLEX_FLAGS) \
-fexceptions \
-DPKGDATADIR=\"$(pkgdatadir)\"
src_frontend_fortran_libmf03_prescanner_la_LDFLAGS = $(dll_exports) -avoid-version $(no_undefined)
# Remaining stuff
ADDITIONAL_GRAMMARS_FORTRAN_ONLY =
ADDITIONAL_GRAMMARS_FORTRAN_ONLY += src/frontend/fortran/fortran03-subparse.y
ADDITIONAL_GRAMMARS_FORTRAN_ONLY += src/frontend/fortran/fortran03-omp.y
ADDITIONAL_GRAMMARS_FORTRAN_ONLY += src/frontend/fortran/fortran03-ompss.y
ADDITIONAL_GRAMMARS_FORTRAN_ONLY += src/frontend/fortran/fortran03-extensions.y
EXTRA_DIST += $(ADDITIONAL_GRAMMARS_FORTRAN_ONLY)
ADDITIONAL_GRAMMARS_FORTRAN =
ADDITIONAL_GRAMMARS_FORTRAN += $(ADDITIONAL_GRAMMARS_FORTRAN_ONLY)
ADDITIONAL_GRAMMARS_FORTRAN += src/frontend/cxx-pragma.y
ADDITIONAL_GRAMMARS_FORTRAN += src/frontend/cxx-literal-nodes.y
ADDITIONAL_GRAMMARS_FORTRAN += src/frontend/cxx-placeholders.y
EXTRA_DIST += src/frontend/fortran/fortran03.y
EXTRA_DIST += src/frontend/fortran/fortran03.y.in
EXTRA_DIST += src/frontend/fortran/prescanner.l
EXTRA_DIST += src/frontend/fortran/prescanner-scanner.h
if GPERF_BUILDING
CLEANFILES += src/frontend/fortran/fortran03-keywords.c
endif
src/frontend/fortran/fortran03-keywords.c : $(srcdir)/src/frontend/fortran/fortran03-keywords.gperf $(GPERF_COMPAT_TYPES_H)
if GPERF_BUILDING
$(GPERF_verbose)$(GPERF) --language=ANSI-C --hash-function-name=fortran_keywords_hash --struct-type \
--initializer-suffix=,0 --lookup-function-name=fortran_keywords_lookup --output=src/frontend/fortran/fortran03-keywords.c \
--ignore-case --compare-strncmp \
$(srcdir)/src/frontend/fortran/fortran03-keywords.gperf
else
@echo "*** ERROR: file fortran03-keywords.gperf was modified but no suitable gperf was found during configure ***"
@exit 1
endif
EXTRA_DIST += src/frontend/fortran/fortran03-keywords.gperf
src/frontend/fortran/fortran03.y : $(TPP) $(top_srcdir)/src/frontend/fortran/fortran03.y.in $(addprefix $(top_srcdir)/, $(ADDITIONAL_GRAMMARS_FORTRAN))
$(TPP_verbose)(rm -f src/frontend/fortran/fortran03.y && $(TPP) -I$(top_srcdir)/src/frontend -I$(top_srcdir)/src/frontend/fortran -o src/frontend/fortran/fortran03.y -D FORTRAN2003 $(top_srcdir)/src/frontend/fortran/fortran03.y.in && chmod -w src/frontend/fortran/fortran03.y)
if BISON_BUILDING
CLEANFILES += src/frontend/fortran/fortran03-parser.c
CLEANFILES += src/frontend/fortran/fortran03-parser-internal.h
CLEANFILES += src/frontend/fortran/fortran03-parser.output
CLEANFILES += src/frontend/fortran/fortran03.y
endif
EXTRA_DIST += src/frontend/fortran/fortran03-parser.c
src/frontend/fortran/fortran03-parser-internal.h : src/frontend/fortran/fortran03-parser.c
if BISON_BUILDING
src/frontend/fortran/fortran03-parser.c : src/frontend/fortran/fortran03.y
$(BISON_verbose)$(BISON) -pmf03 --debug --defines=src/frontend/fortran/fortran03-parser-internal.h $(BISON_REPORTING) --output=src/frontend/fortran/fortran03-parser.c src/frontend/fortran/fortran03.y
endif
if FLEX_BUILDING
CLEANFILES += src/frontend/fortran/prescanner-scanner.h
endif
if FLEX_BUILDING
src/frontend/fortran/prescanner-scanner.h : $(top_srcdir)/src/frontend/fortran/prescanner-identifier.h $(top_srcdir)/src/frontend/fortran/prescanner.l
$(FLEX_verbose)$(FLEX) -Pprescanner -d -i -o src/frontend/fortran/prescanner-scanner.h -8 $(top_srcdir)/src/frontend/fortran/prescanner.l
endif
CLEANFILES += src/frontend/fortran/fortran03-modules-bits.h
src/frontend/fortran/fortran03-modules-bits.h : $(top_srcdir)/src/frontend/gen-symbol-attrs.py $(top_srcdir)/src/frontend/cxx-entity-specs.def
$(PYTHON_verbose)$(PYTHON) $(top_srcdir)/src/frontend/gen-symbol-attrs.py $(top_srcdir)/src/frontend/cxx-entity-specs.def fortran_modules > src/frontend/fortran/fortran03-modules-bits.h
##########################################################################
# src/tl
##########################################################################
lib_LTLIBRARIES += src/tl/libtl.la
BUILT_SOURCES += src/tl/tl-lexer-tokens.hpp
BUILT_SOURCES += src/tl/tl-nodecl-visitor.hpp
BUILT_SOURCES += src/tl/tl-nodecl-visitor.cpp
BUILT_SOURCES += src/tl/tl-nodecl-fwd.hpp
BUILT_SOURCES += src/tl/tl-nodecl.hpp
BUILT_SOURCES += src/tl/tl-nodecl.cpp
CLEANFILES += src/tl/tl-lexer-tokens.hpp
TL_COMMON_CFLAGS = -DLIBTL_DLL_EXPORT -Wall \
-I$(top_srcdir)/support/gperf \
-I$(top_builddir)/support/gperf \
-I $(top_srcdir)/src/tl/ \
-I $(top_srcdir)/src/tl/codegen/common \
-I $(top_srcdir)/src/tl/codegen/base/cxx \
-I $(top_srcdir)/src/tl/codegen/base/fortran \
-I $(top_srcdir)/src/frontend \
-I $(top_srcdir)/src/frontend/fortran \
-I $(top_srcdir)/src/driver \
-I $(top_srcdir)/src/mcxx_tl \
-I $(top_srcdir)/lib \
-I $(top_builddir)/src/tl/ \
-I $(top_builddir)/src/tl/codegen/common \
-I $(top_builddir)/src/tl/codegen/base/cxx \
-I $(top_builddir)/src/tl/codegen/base/fortran \
-I $(top_builddir)/src/frontend \
-I $(top_builddir)/src/frontend/fortran \
-I $(top_builddir)/src/driver \
-I $(top_builddir)/src/mcxx_tl \
-I $(top_builddir)/lib \
$(END)
src_tl_libtl_la_CFLAGS = $(TL_COMMON_CFLAGS)
src_tl_libtl_la_CXXFLAGS = $(TL_COMMON_CFLAGS)
src_tl_libtl_la_SOURCES = \
src/tl/tl-common.hpp \
src/tl/tl-object.hpp \
src/tl/tl-object.cpp \
src/tl/tl-builtin.hpp \
src/tl/tl-builtin.cpp \
src/tl/tl-nodecl-visitor.hpp \
src/tl/tl-nodecl-visitor.cpp \
src/tl/tl-nodecl-fwd.hpp \
src/tl/tl-nodecl-base-fwd.hpp \
src/tl/tl-nodecl-base.hpp \
src/tl/tl-nodecl-base.cpp \
src/tl/tl-nodecl.hpp \
src/tl/tl-nodecl.cpp \
src/tl/tl-nodecl-utils.hpp \
src/tl/tl-nodecl-utils.cpp \
src/tl/tl-nodecl-utils-fortran.hpp \
src/tl/tl-nodecl-utils-fortran.cpp \
src/tl/tl-nodecl-utils-c.hpp \
src/tl/tl-nodecl-utils-c.cpp \
src/tl/tl-scope.hpp \
src/tl/tl-scope-fwd.hpp \
src/tl/tl-scope.cpp \
src/tl/tl-dto.hpp \
src/tl/tl-dto.cpp \
src/tl/tl-symbol-fwd.hpp \
src/tl/tl-symbol.hpp \
src/tl/tl-symbol.cpp \
src/tl/tl-symbol-utils.hpp \
src/tl/tl-symbol-utils.cpp \
src/tl/tl-compilerphase.hpp \
src/tl/tl-compilerphase.cpp \
src/tl/tl-lexer.hpp \
src/tl/tl-lexer.cpp \
src/tl/tl-lexer-tokens.hpp \
src/tl/tl-source-fwd.hpp \
src/tl/tl-source.hpp \
src/tl/tl-source.cpp \
src/tl/tl-type-fwd.hpp \
src/tl/tl-type.hpp \
src/tl/tl-type.cpp \
src/tl/tl-member-decl.hpp \
src/tl/tl-objectlist.hpp \
src/tl/tl-objectlist.cpp \
src/tl/tl-externalvars.hpp \
src/tl/tl-externalvars.cpp \
src/tl/tl-multifile.hpp \
src/tl/tl-multifile.cpp \
src/tl/tl-compilerpipeline.cpp \
src/tl/tl-compilerpipeline.hpp \
src/tl/tl-counters.hpp \
src/tl/tl-counters.cpp \
src/tl/tl-setdto-phase.hpp \
src/tl/tl-setdto-phase.cpp \
src/tl/tl-predicate.hpp \
src/tl/tl-predicate.cpp \
src/tl/tl-functor.hpp \
src/tl/tl-functor.cpp \
src/tl/tl-handler.hpp \
src/tl/tl-handler.cpp \
src/tl/tl-predicateutils.hpp \
src/tl/tl-predicateutils.cpp \
src/tl/tl-clauses-info.hpp \
src/tl/tl-clauses-info.cpp \