Commit 2c8fce4f authored by Benoit Perrot's avatar Benoit Perrot
Browse files

from Benoît Perrot <benoit@lrde.epita.fr>

	Update makefile's machinery.

	* src/parse/Makefile.am, dev/inst-makefile-gen.py:
	Rename .log files to .stamp files.
	* src/parse/Makefile.am:
	Suggested by Akim Demaille: do not put asm-parse.cc in 
	BUILT_SOURCES.
parent a1f22c6c
2004-06-13 Benot Perrot <benoit@lrde.epita.fr>
Update makefile's machinery.
* src/parse/Makefile.am, dev/inst-makefile-gen.py:
Rename .log files to .stamp files.
* src/parse/Makefile.am:
Suggested by Akim Demaille: do not put asm-parse.cc in
BUILT_SOURCES.
2004-06-13 Benot Perrot <benoit@lrde.epita.fr>
Generate debian package.
......
......@@ -46,25 +46,25 @@ print """ decl.hh \\
print """
BUILT_SOURCES = \\
$(FROM_INST_NODES_GEN_PY) inst-nodes-gen.log \\
program_builder.hh inst-builder-gen.log \\
program_solver.hh program_solver.cc inst-solver-gen.log
$(FROM_INST_NODES_GEN_PY) inst-nodes-gen.stamp \\
program_builder.hh inst-builder-gen.stamp \\
program_solver.hh program_solver.cc inst-solver-gen.stamp
inst-nodes-gen.log: $(top_srcdir)/dev/inst-nodes-gen.py $(top_srcdir)/dev/nolimips.xml
inst-nodes-gen.stamp: $(top_srcdir)/dev/inst-nodes-gen.py $(top_srcdir)/dev/nolimips.xml
$(top_srcdir)/dev/inst-nodes-gen.py < $(top_srcdir)/dev/nolimips.xml
touch $@
$(FROM_INST_NODES_GEN_PY): inst-nodes-gen.log
$(FROM_INST_NODES_GEN_PY): inst-nodes-gen.stamp
inst-builder-gen.log: $(top_srcdir)/dev/inst-builder-gen.py $(top_srcdir)/dev/nolimips.xml
inst-builder-gen.stamp: $(top_srcdir)/dev/inst-builder-gen.py $(top_srcdir)/dev/nolimips.xml
$(top_srcdir)/dev/inst-builder-gen.py < $(top_srcdir)/dev/nolimips.xml
touch $@
program_builder.hh: inst-builder-gen.log
program_builder.hh: inst-builder-gen.stamp
inst-solver-gen.log: $(top_srcdir)/dev/inst-solver-gen.py $(top_srcdir)/dev/nolimips.xml
inst-solver-gen.stamp: $(top_srcdir)/dev/inst-solver-gen.py $(top_srcdir)/dev/nolimips.xml
$(top_srcdir)/dev/inst-solver-gen.py < $(top_srcdir)/dev/nolimips.xml
touch $@
program_solver.hh program_solver.cc: inst-solver-gen.log
program_solver.hh program_solver.cc: inst-solver-gen.stamp
MAINTAINERCLEANFILES = \\
......@@ -74,7 +74,7 @@ MAINTAINERCLEANFILES = \\
noinst_LIBRARIES = libinst.a
libinst_a_SOURCES = \\
$(FROM_INST_NODES_GEN_PY) inst-nodes-gen.log \\
$(FROM_INST_NODES_GEN_PY) inst-nodes-gen.stamp \\
register.hh \\
exp.hh exp.cc \\
exp-visitor.hh \\
......@@ -85,8 +85,8 @@ libinst_a_SOURCES = \\
text_section.hh text_section.cc \\
data_section.hh data_section.cc \\
program.hh \\
program_builder.hh program_builder.cc inst-builder-gen.log \\
program_solver.hh program_solver.cc inst-solver-gen.log \\
program_builder.hh program_builder.cc inst-builder-gen.stamp \\
program_solver.hh program_solver.cc inst-solver-gen.stamp \\
inst-tasks.hh inst-tasks.cc"""
## Epilogue
......
INCLUDES = -I $(top_srcdir)/src -I $(top_builddir)/src
# From LRDE's TC's src/parse/Makefile.am:
# "[asm-parse.cc] is not part of [FROM_ASM_PARSE_YY] to prevent
# [asm-parse.cc] from occuring twice in libparse_a_SOURCES to avoid
# double inclusion of [asm-parse.o]."
FROM_ASM_PARSE_YY = \
stack.hh position.hh location.hh \
asm-parse.hh asm-parse.cc
asm-parse.hh
BUILT_SOURCES = \
asm-scan.ll parse-asm-scan.log \
asm-parse.yy parse-asm-parse.log \
asm-scan.ll parse-asm-scan.stamp \
asm-parse.yy parse-asm-parse.stamp \
$(FROM_ASM_PARSE_YY)
parse-asm-scan.log: $(top_srcdir)/dev/parse-asm-scan-gen.py $(top_srcdir)/dev/nolimips.xml
parse-asm-scan.stamp: $(top_srcdir)/dev/parse-asm-scan-gen.py $(top_srcdir)/dev/nolimips.xml
$(top_srcdir)/dev/parse-asm-scan-gen.py < $(top_srcdir)/dev/nolimips.xml
touch $@
asm-scan.ll: parse-asm-scan.log
asm-scan.ll: parse-asm-scan.stamp
touch $@
parse-asm-parse.log: $(top_srcdir)/dev/parse-asm-parse-gen.py $(top_srcdir)/dev/nolimips.xml
parse-asm-parse.stamp: $(top_srcdir)/dev/parse-asm-parse-gen.py $(top_srcdir)/dev/nolimips.xml
$(top_srcdir)/dev/parse-asm-parse-gen.py < $(top_srcdir)/dev/nolimips.xml
touch $@
asm-parse.yy: parse-asm-parse.log
asm-parse.yy: parse-asm-parse.stamp
touch $@
$(FROM_ASM_PARSE_YY): $(srcdir)/asm-parse.yy
......@@ -28,8 +32,8 @@ MAINTAINERCLEANFILES = asm-scan.ll asm-scan.yy $(FROM_ASM_PARSE_YY)
noinst_LIBRARIES = libparse.a
libparse_a_SOURCES = \
asm-parse.yy parse-asm-parse.log \
asm-parse.yy parse-asm-parse.stamp \
$(FROM_ASM_PARSE_YY) \
asm-scan.ll asm-scan.hh parse-asm-scan.log \
asm-scan.ll asm-scan.hh parse-asm-scan.stamp \
libparse.hh libparse.cc \
parse-tasks.hh parse-tasks.cc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment