Commit 3a3a6b8a authored by Julian Kranz's avatar Julian Kranz

Automake

parent e29abc04
......@@ -39,91 +39,91 @@ MLULEX = @MLULEX@
MLANTLR = @MLANTLR@
GDSLC_SML_FILES = \
detail/export.sml \
detail/common/basic-control.sml \
detail/common/stats.sml \
detail/common/expand-file.sml \
detail/common/error.sml \
detail/common/sum-sig.sml \
detail/common/sum.sml \
detail/common/float-lit.sml \
detail/common/integer-lit.sml \
detail/common/literal.sml \
detail/common/stamp.sml \
detail/common/basis.sml \
detail/common/layout-sig.sml \
detail/common/layout.sml \
detail/common/compilation-monad.sml \
detail/semantic/symbol-table-type.sml \
detail/common/pp.sml \
detail/parser/mk-ast.sml \
detail/parser/spec.g.sml \
detail/parser/spec.l.sml \
detail/parser/spec-parse-tree.sml \
detail/parser/parser.sml \
detail/semantic/spec-abstract-tree.sml \
detail/semantic/typing/boolean-domain.sml \
detail/semantic/typing/tvar.sml \
detail/semantic/typing/lang-types.sml \
detail/semantic/typing/size-constraint.sml \
detail/semantic/typing/substitutions.sml \
detail/semantic/typing/environment.sml \
$(srcdir)/detail/export.sml \
$(srcdir)/detail/common/basic-control.sml \
$(srcdir)/detail/common/stats.sml \
$(srcdir)/detail/common/expand-file.sml \
$(srcdir)/detail/common/error.sml \
$(srcdir)/detail/common/sum-sig.sml \
$(srcdir)/detail/common/sum.sml \
$(srcdir)/detail/common/float-lit.sml \
$(srcdir)/detail/common/integer-lit.sml \
$(srcdir)/detail/common/literal.sml \
$(srcdir)/detail/common/stamp.sml \
$(srcdir)/detail/common/basis.sml \
$(srcdir)/detail/common/layout-sig.sml \
$(srcdir)/detail/common/layout.sml \
$(srcdir)/detail/common/compilation-monad.sml \
$(srcdir)/detail/semantic/symbol-table-type.sml \
$(srcdir)/detail/common/pp.sml \
$(srcdir)/detail/parser/mk-ast.sml \
$(srcdir)/detail/parser/spec.g.sml \
$(srcdir)/detail/parser/spec.l.sml \
$(srcdir)/detail/parser/spec-parse-tree.sml \
$(srcdir)/detail/parser/parser.sml \
$(srcdir)/detail/semantic/spec-abstract-tree.sml \
$(srcdir)/detail/semantic/typing/boolean-domain.sml \
$(srcdir)/detail/semantic/typing/tvar.sml \
$(srcdir)/detail/semantic/typing/lang-types.sml \
$(srcdir)/detail/semantic/typing/size-constraint.sml \
$(srcdir)/detail/semantic/typing/substitutions.sml \
$(srcdir)/detail/semantic/typing/environment.sml \
\
detail/spec/spec.sml \
detail/spec/core.sml \
$(srcdir)/detail/spec/spec.sml \
$(srcdir)/detail/spec/core.sml \
\
detail/imp/imp.sml \
$(srcdir)/detail/imp/imp.sml \
\
detail/semantic/primitives.sml \
detail/semantic/resolve-symbols.sml \
detail/semantic/resolve-type-info.sml \
detail/semantic/inference.sml \
$(srcdir)/detail/semantic/primitives.sml \
$(srcdir)/detail/semantic/resolve-symbols.sml \
$(srcdir)/detail/semantic/resolve-type-info.sml \
$(srcdir)/detail/semantic/inference.sml \
\
detail/desugar/desugar-control.sml \
detail/desugar/desugared-tree.sml \
detail/desugar/split-declarations.sml \
detail/desugar/desugar-guards.sml \
detail/desugar/inline-decode-patterns.sml \
detail/desugar/detokenize.sml \
detail/desugar/retokenize.sml \
detail/desugar/desugar-decode-syntax.sml \
detail/desugar/desugar-monadic-sequences.sml \
detail/desugar/desugar.sml \
$(srcdir)/detail/desugar/desugar-control.sml \
$(srcdir)/detail/desugar/desugared-tree.sml \
$(srcdir)/detail/desugar/split-declarations.sml \
$(srcdir)/detail/desugar/desugar-guards.sml \
$(srcdir)/detail/desugar/inline-decode-patterns.sml \
$(srcdir)/detail/desugar/detokenize.sml \
$(srcdir)/detail/desugar/retokenize.sml \
$(srcdir)/detail/desugar/desugar-decode-syntax.sml \
$(srcdir)/detail/desugar/desugar-monadic-sequences.sml \
$(srcdir)/detail/desugar/desugar.sml \
\
detail/cps/cps.sml \
detail/cps/cps-control.sml \
detail/cps/from-core.sml \
detail/cps/cps-opt.sml \
detail/cps/mk-cps-pass.sml \
detail/cps/cps-passes.sml \
$(srcdir)/detail/cps/cps.sml \
$(srcdir)/detail/cps/cps-control.sml \
$(srcdir)/detail/cps/from-core.sml \
$(srcdir)/detail/cps/cps-opt.sml \
$(srcdir)/detail/cps/mk-cps-pass.sml \
$(srcdir)/detail/cps/cps-passes.sml \
\
detail/imp/imp-control.sml \
detail/imp/imp-from-core.sml \
detail/imp/mk-imp-pass.sml \
detail/imp/imp-opt.sml \
detail/imp/imp-passes.sml \
$(srcdir)/detail/imp/imp-control.sml \
$(srcdir)/detail/imp/imp-from-core.sml \
$(srcdir)/detail/imp/mk-imp-pass.sml \
$(srcdir)/detail/imp/imp-opt.sml \
$(srcdir)/detail/imp/imp-passes.sml \
\
detail/closure/closure.sml \
detail/closure/closure-control.sml \
detail/closure/from-cps.sml \
detail/closure/closure-passes.sml \
$(srcdir)/detail/closure/closure.sml \
$(srcdir)/detail/closure/closure-control.sml \
$(srcdir)/detail/closure/from-cps.sml \
$(srcdir)/detail/closure/closure-passes.sml \
\
detail/codegen/codegen-control.sml \
detail/codegen/codegen-mangle.sml \
detail/codegen/c0/c0.sml \
detail/codegen/c1/c1.sml \
detail/codegen/js0/javascript-sig.sml \
detail/codegen/js0/javascript.sml \
detail/codegen/js0/js0.sml \
detail/codegen/codegen-passes.sml \
$(srcdir)/detail/codegen/codegen-control.sml \
$(srcdir)/detail/codegen/codegen-mangle.sml \
$(srcdir)/detail/codegen/c0/c0.sml \
$(srcdir)/detail/codegen/c1/c1.sml \
$(srcdir)/detail/codegen/js0/javascript-sig.sml \
$(srcdir)/detail/codegen/js0/javascript.sml \
$(srcdir)/detail/codegen/js0/js0.sml \
$(srcdir)/detail/codegen/codegen-passes.sml \
\
detail/driver/main.sml \
detail/ml/mlton/main.sml
$(srcdir)/detail/driver/main.sml \
$(srcdir)/detail/ml/mlton/main.sml
JAR=jrreil.jar
gdslc$(EXEEXT) : gdslc.mlb $(GDSLC_SML_FILES)
$(MLTON) $(MLFLAGS) -output $@ gdslc.mlb
gdslc$(EXEEXT) : $(srcdir)/gdslc.mlb $(GDSLC_SML_FILES)
$(MLTON) $(MLFLAGS) -output $@ $(srcdir)/gdslc.mlb
if INSTALL_GDSLC
bin_PROGRAMS += gdslc
......@@ -132,7 +132,15 @@ noinst_PROGRAMS += gdslc
endif
gdslc_MAIN = $(gdslc_SOURCES)
gdslc_SOURCES = gdslc.mlb $(GDSLC_SML_FILES)
gdslc_SOURCES = $(srcdir)/gdslc.mlb $(GDSLC_SML_FILES)
RUNTIME = $(srcdir)/detail/codegen/c0/runtime.h \
$(srcdir)/detail/codegen/c0/runtime.c \
$(srcdir)/detail/codegen/c1/runtime.h \
$(srcdir)/detail/codegen/c1/runtime.c \
$(srcdir)/detail/codegen/js0/runtime.js
#gdslc_SOURCES += $(RUNTIME)
%.l.sml : %.l
$(MLULEX) $<
......@@ -146,39 +154,39 @@ GDSLC_DEP = gdslc$(EXEEXT)
# the decoders
GDSL_BASIS = \
specifications/basis/prelude.ml
$(srcdir)/specifications/basis/prelude.ml
GDSL_X86 = \
specifications/x86/x86.ml \
specifications/x86/x86-pretty.ml \
specifications/x86/x86-pretty-simple.ml
$(srcdir)/specifications/x86/x86.ml \
$(srcdir)/specifications/x86/x86-pretty.ml \
$(srcdir)/specifications/x86/x86-pretty-simple.ml
GDSL_X86SEM = \
specifications/x86/x86-rreil-pretty.ml \
specifications/x86/x86-rreil-translator.ml \
specifications/x86/x86-rreil-translator-a-l.ml \
specifications/x86/x86-rreil-translator-m-z.ml \
specifications/x86/x86-rreil-registermapping.ml \
specifications/x86/x86-liveness.ml
$(srcdir)/specifications/x86/x86-rreil-pretty.ml \
$(srcdir)/specifications/x86/x86-rreil-translator.ml \
$(srcdir)/specifications/x86/x86-rreil-translator-a-l.ml \
$(srcdir)/specifications/x86/x86-rreil-translator-m-z.ml \
$(srcdir)/specifications/x86/x86-rreil-registermapping.ml \
$(srcdir)/specifications/x86/x86-liveness.ml
GDSL_AVR = \
specifications/avr/avr.ml \
specifications/avr/avr-pretty.ml
$(srcdir)/specifications/avr/avr.ml \
$(srcdir)/specifications/avr/avr-pretty.ml
GDSL_AVRSEM = \
specifications/avr/avr-rreil-translator.ml \
specifications/avr/avr-rreil-registermapping.ml
$(srcdir)/specifications/avr/avr-rreil-translator.ml \
$(srcdir)/specifications/avr/avr-rreil-registermapping.ml
GDSL_RREIL = \
specifications/rreil/fmap.ml \
specifications/basis/bbtree.ml \
specifications/rreil/rreil.ml \
specifications/rreil/rreil-examples.ml \
specifications/rreil/rreil-cif.ml \
specifications/rreil/rreil-pretty.ml \
specifications/rreil/rreil-liveness.ml \
specifications/rreil/rreil-cleanup.ml \
specifications/basis/selectors.ml
$(srcdir)/specifications/rreil/fmap.ml \
$(srcdir)/specifications/basis/bbtree.ml \
$(srcdir)/specifications/rreil/rreil.ml \
$(srcdir)/specifications/rreil/rreil-examples.ml \
$(srcdir)/specifications/rreil/rreil-cif.ml \
$(srcdir)/specifications/rreil/rreil-pretty.ml \
$(srcdir)/specifications/rreil/rreil-liveness.ml \
$(srcdir)/specifications/rreil/rreil-cleanup.ml \
$(srcdir)/specifications/basis/selectors.ml
if X86_RREIL
lib_LTLIBRARIES += libgdsl-x86-rreil.la
......@@ -332,14 +340,14 @@ JSOURCES = src/rreil/IAddress.java \
src/Program.java
SPRE=src
BPRE=build
BPRE=$(top_builddir)/build
BDIRS=$(BPRE)
pre-build:
mkdir -p $(BDIRS)
$(JAR): pre-build $(JSOURCES:%=libs/jrreil/%)
cd libs/jrreil && javac $(JSOURCES) -d ../../$(BPRE)/
cd $(srcdir)/libs/jrreil && javac $(JSOURCES) -d ../../$(BPRE)/
jar -cf $@ $(JSOURCES:$(SPRE)/%.java=-C $(BPRE) %.class)
endif
......@@ -357,13 +365,11 @@ if INSTALL_AUXLIBS
if HAVE_POSIX200809_C11
lib_LTLIBRARIES += libx86-generator.la
endif
lib_LTLIBRARIES += libx86.la
else
if BUILD_AUXLIBS
if HAVE_POSIX200809_C11
noinst_LTLIBRARIES += libx86-generator.la
endif
noinst_LTLIBRARIES += libx86.la
endif
endif
endif
......@@ -373,13 +379,13 @@ if INSTALL_AUXLIBS
if HAVE_POSIX200809_C11
lib_LTLIBRARIES += libx86-tester.la
endif
lib_LTLIBRARIES += libgdwrap.la
lib_LTLIBRARIES += libx86.la libgdwrap.la
else
if BUILD_AUXLIBS
if HAVE_POSIX200809_C11
noinst_LTLIBRARIES += libx86-tester.la
endif
noinst_LTLIBRARIES += libgdwrap.la
noinst_LTLIBRARIES += libx86.la libgdwrap.la
endif
endif
endif
......@@ -402,107 +408,107 @@ endif
endif
endif
libreadhex_la_SOURCES = libs/readhex/src/readhex.c
libreadhex_la_CFLAGS = -I./libs/readhex/include
include_HEADERS += libs/readhex/include/readhex.h
libreadhex_la_SOURCES = $(srcdir)/libs/readhex/src/readhex.c
libreadhex_la_CFLAGS = -I$(srcdir)/libs/readhex/include
include_HEADERS += $(srcdir)/libs/readhex/include/readhex.h
libutil_la_SOURCES = libs/util/src/util.c libs/util/src/stack.c
libutil_la_CFLAGS = -std=c99 -I./libs/util/include
include_HEADERS += libs/util/include/util.h libs/util/include/stack.h
libutil_la_SOURCES = $(srcdir)/libs/util/src/util.c $(srcdir)/libs/util/src/stack.c
libutil_la_CFLAGS = -std=c99 -I$(srcdir)/libs/util/include
include_HEADERS += $(srcdir)/libs/util/include/util.h $(srcdir)/libs/util/include/stack.h
if HAVE_X86
libx86_la_SOURCES = libs/x86/src/x86.c libs/x86/src/x86_features.c
libx86_la_CFLAGS = -std=c99 -I./libs/x86/include
libx86_la_SOURCES = $(srcdir)/libs/x86/src/x86.c $(srcdir)/libs/x86/src/x86_features.c
libx86_la_CFLAGS = -std=c99 -I$(srcdir)/libs/x86/include
include_HEADERS += libs/x86/include/x86.h libs/x86/include/x86_features.h
endif
if HAVE_RREIL
librreil_la_SOURCES = libs/rreil/src/rreil/copy.c \
libs/rreil/src/rreil/print.c \
libs/rreil/src/rreil/gdrr_builder.c \
libs/rreil/src/rreil/free.c \
libs/rreil/src/rreil/rreil_id.c
librreil_la_CFLAGS = -std=c11 -I./libs/rreil/include -I./libs/gdrr/include -I./libs/util/include
librreil_la_SOURCES = $(srcdir)/libs/rreil/src/rreil/copy.c \
$(srcdir)/libs/rreil/src/rreil/print.c \
$(srcdir)/libs/rreil/src/rreil/gdrr_builder.c \
$(srcdir)/libs/rreil/src/rreil/free.c \
$(srcdir)/libs/rreil/src/rreil/rreil_id.c
librreil_la_CFLAGS = -std=c11 -I$(srcdir)/libs/rreil/include -I$(srcdir)/libs/gdrr/include -I$(srcdir)/libs/util/include
if HAVE_X86
librreil_la_CFLAGS += -DGDSL_X86 -I./libs/x86/include
endif
include_HEADERS += libs/rreil/include/rreil/rreil.h \
libs/rreil/include/rreil/rreil_copy.h \
libs/rreil/include/rreil/rreil_print.h \
libs/rreil/include/rreil/rreil_address.h \
libs/rreil/include/rreil/gdrr_builder.h \
libs/rreil/include/rreil/rreil_linear.h \
libs/rreil/include/rreil/rreil_id.h \
libs/rreil/include/rreil/rreil_free.h \
libs/rreil/include/rreil/rreil_variable.h \
libs/rreil/include/rreil/rreil_variable_limited.h \
libs/rreil/include/rreil/rreil_prim.h \
libs/rreil/include/rreil/rreil_flop.h \
libs/rreil/include/rreil/rreil_comparator.h \
libs/rreil/include/rreil/rreil_op.h \
libs/rreil/include/rreil/rreil_branch_hint.h \
libs/rreil/include/rreil/rreil_sexpr.h \
libs/rreil/include/rreil/rreil_arity.h \
libs/rreil/include/rreil/rreil_statement.h
librreil_la_CFLAGS += -DGDSL_X86 -I$(srcdir)/libs/x86/include
endif
include_HEADERS += $(srcdir)/libs/rreil/include/rreil/rreil.h \
$(srcdir)/libs/rreil/include/rreil/rreil_copy.h \
$(srcdir)/libs/rreil/include/rreil/rreil_print.h \
$(srcdir)/libs/rreil/include/rreil/rreil_address.h \
$(srcdir)/libs/rreil/include/rreil/gdrr_builder.h \
$(srcdir)/libs/rreil/include/rreil/rreil_linear.h \
$(srcdir)/libs/rreil/include/rreil/rreil_id.h \
$(srcdir)/libs/rreil/include/rreil/rreil_free.h \
$(srcdir)/libs/rreil/include/rreil/rreil_variable.h \
$(srcdir)/libs/rreil/include/rreil/rreil_variable_limited.h \
$(srcdir)/libs/rreil/include/rreil/rreil_prim.h \
$(srcdir)/libs/rreil/include/rreil/rreil_flop.h \
$(srcdir)/libs/rreil/include/rreil/rreil_comparator.h \
$(srcdir)/libs/rreil/include/rreil/rreil_op.h \
$(srcdir)/libs/rreil/include/rreil/rreil_branch_hint.h \
$(srcdir)/libs/rreil/include/rreil/rreil_sexpr.h \
$(srcdir)/libs/rreil/include/rreil/rreil_arity.h \
$(srcdir)/libs/rreil/include/rreil/rreil_statement.h
endif
if X86_RREIL
librreil_sim_la_SOURCES = libs/rreil-sim/src/simulator/simulator.c \
libs/rreil-sim/src/simulator/ops.c \
libs/rreil-sim/src/simulator/regacc.c \
libs/rreil-sim/src/simulator/tracking.c \
libs/rreil-sim/src/memory.c \
libs/rreil-sim/src/context.c
librreil_sim_la_CFLAGS = -std=c99 -DGDSL_X86 -I./libs/rreil/include -I./libs/rreil-sim/include -I./libs/gdrr/include -I./libs/util/include -I./libs/x86/include
include_HEADERS += libs/rreil-sim/include/memory.h \
libs/rreil-sim/include/simulator/register.h \
libs/rreil-sim/include/simulator/tracking.h \
libs/rreil-sim/include/simulator/regacc.h \
libs/rreil-sim/include/simulator/simulator.h \
libs/rreil-sim/include/simulator/ops.h \
libs/rreil-sim/include/context.h
librreil_sim_la_SOURCES = $(srcdir)/libs/rreil-sim/src/simulator/simulator.c \
$(srcdir)/libs/rreil-sim/src/simulator/ops.c \
$(srcdir)/libs/rreil-sim/src/simulator/regacc.c \
$(srcdir)/libs/rreil-sim/src/simulator/tracking.c \
$(srcdir)/libs/rreil-sim/src/memory.c \
$(srcdir)/libs/rreil-sim/src/context.c
librreil_sim_la_CFLAGS = -std=c99 -DGDSL_X86 -I$(srcdir)/libs/rreil/include -I$(srcdir)/libs/rreil-sim/include -I$(srcdir)/libs/gdrr/include -I$(srcdir)/libs/util/include -I$(srcdir)/libs/x86/include
include_HEADERS += $(srcdir)/libs/rreil-sim/include/memory.h \
$(srcdir)/libs/rreil-sim/include/simulator/register.h \
$(srcdir)/libs/rreil-sim/include/simulator/tracking.h \
$(srcdir)/libs/rreil-sim/include/simulator/regacc.h \
$(srcdir)/libs/rreil-sim/include/simulator/simulator.h \
$(srcdir)/libs/rreil-sim/include/simulator/ops.h \
$(srcdir)/libs/rreil-sim/include/context.h
endif
if X86_RREIL
libgdwrap_la_SOURCES = libs/gdwrap/src/gdwrap.c
libgdwrap_la_CFLAGS = -I./libs/gdwrap/include
include_HEADERS += libs/gdwrap/include/gdwrap.h
libgdwrap_la_SOURCES = $(srcdir)/libs/gdwrap/src/gdwrap.c
libgdwrap_la_CFLAGS = -I$(srcdir)/libs/gdwrap/include
include_HEADERS += $(srcdir)/libs/gdwrap/include/gdwrap.h
endif
if HAVE_X86
libx86_generator_la_SOURCES = libs/x86-generator/src/generator_tree.c \
libs/x86-generator/src/x86_opcodes.c \
libs/x86-generator/src/generator.c
libx86_generator_la_CFLAGS = -std=c99 -I./libs/x86-generator/include -I./libs/util/include
include_HEADERS += libs/x86-generator/include/x86_opcodes.h \
libs/x86-generator/include/generator_tree.h \
libs/x86-generator/include/generator.h
libx86_generator_la_SOURCES = $(srcdir)/libs/x86-generator/src/generator_tree.c \
$(srcdir)/libs/x86-generator/src/x86_opcodes.c \
$(srcdir)/libs/x86-generator/src/generator.c
libx86_generator_la_CFLAGS = -std=c99 -I$(srcdir)/libs/x86-generator/include -I$(srcdir)/libs/util/include
include_HEADERS += $(srcdir)/libs/x86-generator/include/x86_opcodes.h \
$(srcdir)/libs/x86-generator/include/generator_tree.h \
$(srcdir)/libs/x86-generator/include/generator.h
endif
if X86_RREIL
libx86_tester_la_SOURCES = libs/x86-tester/src/executor.c \
libs/x86-tester/src/tbgen.c \
libs/x86-tester/src/tester.c \
libs/x86-tester/src/tbgen_alloc.c
libx86_tester_la_CFLAGS = -std=gnu99 -I./libs/x86-tester/include -I./libs/rreil/include -I./libs/rreil-sim/include -I./libs/x86/include -I./libs/util/include -I./libs/gdrr/include -I./libs/gdwrap/include
include_HEADERS += libs/x86-tester/include/tbgen.h \
libs/x86-tester/include/tbgen_alloc.h \
libs/x86-tester/include/executor.h \
libs/x86-tester/include/tester.h
libx86_tester_la_SOURCES = $(srcdir)/libs/x86-tester/src/executor.c \
$(srcdir)/libs/x86-tester/src/tbgen.c \
$(srcdir)/libs/x86-tester/src/tester.c \
$(srcdir)/libs/x86-tester/src/tbgen_alloc.c
libx86_tester_la_CFLAGS = -std=gnu99 -I$(srcdir)/libs/x86-tester/include -I$(srcdir)/libs/rreil/include -I$(srcdir)/libs/rreil-sim/include -I$(srcdir)/libs/x86/include -I$(srcdir)/libs/util/include -I$(srcdir)/libs/gdrr/include -I$(srcdir)/libs/gdwrap/include
include_HEADERS += $(srcdir)/libs/x86-tester/include/tbgen.h \
$(srcdir)/libs/x86-tester/include/tbgen_alloc.h \
$(srcdir)/libs/x86-tester/include/executor.h \
$(srcdir)/libs/x86-tester/include/tester.h
endif
if HAVE_RREIL
libjrreil_la_SOURCES = libs/jrreil/src/rnati_NativeInterface.c
libjrreil_la_CFLAGS = -std=c99 -I/usr/lib/jvm/java-7-openjdk-amd64/include -I./libs/gdsl-multiplex/include
libjrreil_la_SOURCES = $(srcdir)/libs/jrreil/src/rnati_NativeInterface.c
libjrreil_la_CFLAGS = -std=c99 -I/usr/lib/jvm/java-7-openjdk-amd64/include -I$(srcdir)/libs/gdsl-multiplex/include
libjrreil_la_LIBADD += libgdsl-multiplex.la
private_headers += libs/jrreil/src/rnati_NativeInterface.h
private_headers += $(srcdir)/libs/jrreil/src/rnati_NativeInterface.h
endif
if HAVE_RREIL
libgdsl_multiplex_la_SOURCES = libs/gdsl-multiplex/src/gdsl_multiplex.c
libgdsl_multiplex_la_CFLAGS = -I./libs/gdsl-multiplex/include
libgdsl_multiplex_la_SOURCES = $(srcdir)/libs/gdsl-multiplex/src/gdsl_multiplex.c
libgdsl_multiplex_la_CFLAGS = -I$(srcdir)/libs/gdsl-multiplex/include
libgdsl_multiplex_la_LDFLAGS = -ldl
include_HEADERS += libs/gdsl-multiplex/include/gdsl_multiplex.h
include_HEADERS += $(srcdir)/libs/gdsl-multiplex/include/gdsl_multiplex.h
endif
if HAVE_RREIL
......@@ -553,55 +559,49 @@ endif
endif
endif
decoder_cli_SOURCES = tools/decoder-cli.c
decoder_cli_CFLAGS = -std=c99 -I./libs/readhex/include
decoder_cli_SOURCES = $(srcdir)/tools/decoder-cli.c
decoder_cli_CFLAGS = -std=c99 -I$(srcdir)/libs/readhex/include
if HAVE_X86
decoder_cli_CFLAGS += -DGDSL_X86
endif
decoder_cli_LDADD += libreadhex.la
semantics_cli_SOURCES = tools/semantics-cli.c
semantics_cli_CFLAGS = -std=c99 -I./libs/readhex/include
semantics_cli_SOURCES = $(srcdir)/tools/semantics-cli.c
semantics_cli_CFLAGS = -std=c99 -I$(srcdir)/libs/readhex/include
if HAVE_X86
semantics_cli_CFLAGS += -DGDSL_X86
endif
semantics_cli_LDADD += libreadhex.la
semantics_cli_dynamic_SOURCES = tools/semantics-cli-dynamic.c
semantics_cli_dynamic_CFLAGS = -std=c99 -I./libs/readhex/include -I./libs/gdsl-multiplex/include
semantics_cli_dynamic_SOURCES = $(srcdir)/tools/semantics-cli-dynamic.c
semantics_cli_dynamic_CFLAGS = -std=c99 -I$(srcdir)/libs/readhex/include -I$(srcdir)/libs/gdsl-multiplex/include
semantics_cli_dynamic_LDADD += libreadhex.la libgdsl-multiplex.la
semantics_cif_cli_SOURCES = tools/semantics-cif-cli.c
semantics_cif_cli_CFLAGS = -I./libs/gdrr/include -I./libs/readhex/include
semantics_cif_cli_SOURCES = $(srcdir)/tools/semantics-cif-cli.c
semantics_cif_cli_CFLAGS = -I$(srcdir)/libs/gdrr/include -I$(srcdir)/libs/readhex/include
semantics_cif_cli_LDADD += libreadhex.la
sweep_SOURCES = tools/sweep.c
sweep_SOURCES = $(srcdir)/tools/sweep.c
sweep_CFLAGS =
sweep_LDFLAGS = -lelf
if X86_RREIL
liveness_sweep_SOURCES = tools/liveness-sweep.c
liveness_sweep_SOURCES = $(srcdir)/tools/liveness-sweep.c
liveness_sweep_CFLAGS = -std=gnu99
liveness_sweep_LDFLAGS = -lelf
endif
if X86_RREIL
x86_test_runner_SOURCES = tools/x86-test-runner/src/main.c
x86_test_runner_CFLAGS = -std=gnu99 -I./libs/rreil/include -I./libs/rreil-sim/include -I./libs/x86/include -I./libs/x86-generator/include -I./libs/x86-tester/include -I./libs/readhex/include
x86_test_runner_SOURCES = $(srcdir)/tools/x86-test-runner/src/main.c
x86_test_runner_CFLAGS = -std=gnu99 -I$(srcdir)/libs/rreil/include -I$(srcdir)/libs/rreil-sim/include -I$(srcdir)/libs/x86/include -I$(srcdir)/libs/x86-generator/include -I$(srcdir)/libs/x86-tester/include -I$(srcdir)/libs/readhex/include
x86_test_runner_LDADD += librreil.la librreil-sim.la libx86-generator.la libx86.la libreadhex.la libutil.la
endif
if X86_RREIL
x86_test_stats_runner_SOURCES = tools/x86-test-stats-runner/src/main.c tools/x86-test-stats-runner/src/hash_array.c
x86_test_stats_runner_CFLAGS = -std=gnu99 -I./libs/rreil/include -I./libs/rreil-sim/include -I./libs/x86/include -I./libs/x86-generator/include -I./libs/x86-tester/include -I./libs/readhex/include
x86_test_stats_runner_SOURCES = $(srcdir)/tools/x86-test-stats-runner/src/main.c $(srcdir)/tools/x86-test-stats-runner/src/hash_array.c
x86_test_stats_runner_CFLAGS = -std=gnu99 -I$(srcdir)/libs/rreil/include -I$(srcdir)/libs/rreil-sim/include -I$(srcdir)/libs/x86/include -I$(srcdir)/libs/x86-generator/include -I$(srcdir)/libs/x86-tester/include -I$(srcdir)/libs/readhex/include
x86_test_stats_runner_LDADD += librreil.la librreil-sim.la libx86-generator.la libx86.la libreadhex.la libutil.la
private_headers += tools/x86-test-stats-runner/src/hash_array.h
private_headers += $(srcdir)/tools/x86-test-stats-runner/src/hash_array.h
endif
RUNTIME = detail/codegen/c0/runtime.h \
detail/codegen/c0/runtime.c \
detail/codegen/c1/runtime.h \
detail/codegen/c1/runtime.c \
detail/codegen/js0/runtime.js
EXTRA_DIST = LICENSE $(GDSL_BASIS) $(GDSL_X86) $(GDSL_RREIL) $(GDSL_X86SEM) $(GDSL_AVR) $(GDSL_AVRSEM) $(RUNTIME) $(private_headers) gdsl.h
EXTRA_DIST = LICENSE $(GDSL_BASIS) $(GDSL_X86) $(GDSL_RREIL) $(GDSL_X86SEM) $(GDSL_AVR) $(GDSL_AVRSEM) $(private_headers) $(RUNTIME) $(srcdir)/gdsl.h
Markdown is supported
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