author | Paul Beltyukov <beltyukov.p.a@gmail.com> |
Tue, 09 May 2017 21:46:44 +0100 | |
changeset 1051 | e483512edbeb |
parent 1015 | 9414b0785849 |
permissions | -rw-r--r-- |
353
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
1 |
include ../common.mk |
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
2 |
|
1015
9414b0785849
Add -warn flag when running flex -> warn of potential bugs
mjsousa
parents:
871
diff
changeset
|
3 |
## Flags for yacc syntax parser generator (bison) |
354
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
4 |
AM_YFLAGS = -d |
1015
9414b0785849
Add -warn flag when running flex -> warn of potential bugs
mjsousa
parents:
871
diff
changeset
|
5 |
## Flags for lex lexer generator (flex) |
9414b0785849
Add -warn flag when running flex -> warn of potential bugs
mjsousa
parents:
871
diff
changeset
|
6 |
AM_LFLAGS = --warn -o$(LEX_OUTPUT_ROOT).c |
354
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
7 |
|
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
8 |
# Make sure this header file is generated first (by bison), as it is included |
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
9 |
# by other C++ code that will also be compiled. |
822 | 10 |
BUILT_SOURCES = iec_bison.hh |
354
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
11 |
|
871
878e9bf4c6ec
Added stage1_2/Makefile.am weird rule to keep compatible with previous version of automake
Edouard Tisserant
parents:
822
diff
changeset
|
12 |
%.hh: %.h |
878e9bf4c6ec
Added stage1_2/Makefile.am weird rule to keep compatible with previous version of automake
Edouard Tisserant
parents:
822
diff
changeset
|
13 |
cp $< $@ |
878e9bf4c6ec
Added stage1_2/Makefile.am weird rule to keep compatible with previous version of automake
Edouard Tisserant
parents:
822
diff
changeset
|
14 |
|
369
569e7d9e2406
Add iec2iec building in the project Makefiles.
Matteo Facchinetti
parents:
354
diff
changeset
|
15 |
CLEANFILES = \ |
569e7d9e2406
Add iec2iec building in the project Makefiles.
Matteo Facchinetti
parents:
354
diff
changeset
|
16 |
iec_flex.cc \ |
569e7d9e2406
Add iec2iec building in the project Makefiles.
Matteo Facchinetti
parents:
354
diff
changeset
|
17 |
iec_bison.cc \ |
822 | 18 |
iec_bison.hh |
369
569e7d9e2406
Add iec2iec building in the project Makefiles.
Matteo Facchinetti
parents:
354
diff
changeset
|
19 |
|
353
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
20 |
lib_LIBRARIES = libstage1_2.a |
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
21 |
libstage1_2_a_SOURCES = \ |
354
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
22 |
iec_flex.ll \ |
0f24db96b519
Fixing automake configuration to work properly with flex and bison.
Mario de Sousa <msousa@fe.up.pt>
parents:
353
diff
changeset
|
23 |
iec_bison.yy \ |
748
ad4265253528
Start to change code like Mario suggestions.
Manuele Conti <conti.ma@alice.it>
parents:
745
diff
changeset
|
24 |
create_enumtype_conversion_functions.cc \ |
353
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
25 |
stage1_2.cc |
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
26 |
|
822 | 27 |
libstage1_2_a_CPPFLAGS = -DDEFAULT_LIBDIR='"lib"' -I../../absyntax -DYY_BUF_SIZE=65536 -fpermissive |
353
17bffb57a8c5
Building compiler with autoconf. Thanks go to Matteo of sirius-es.it
Mario de Sousa <msousa@fe.up.pt>
parents:
diff
changeset
|
28 |