Commit e64d41cb authored by Julian Kranz's avatar Julian Kranz

Automake

parent 3977cbd4
......@@ -378,70 +378,74 @@ clean-local:
-rm -f $(builddir)/gdslc-image.*
if INSTALL_AUXLIBS
lib_LTLIBRARIES += libreadhex.la libutil.la
else
if BUILD_AUXLIBS
noinst_LTLIBRARIES += libreadhex.la libutil.la
if HAVE_RREIL_LIB
lib_LTLIBRARIES += librreil.la
endif
if HAVE_RREIL_SIM
lib_LTLIBRARIES += librreil-sim.la
endif
if HAVE_X86
if INSTALL_AUXLIBS
if HAVE_POSIX200809_C11
lib_LTLIBRARIES += libx86-generator.la
if HAVE_GDWRAP
lib_LTLIBRARIES += libgdwrap.la
endif
else
if BUILD_AUXLIBS
if HAVE_POSIX200809_C11
noinst_LTLIBRARIES += libx86-generator.la
if HAVE_GDSL_MULTIPLEX
lib_LTLIBRARIES += libgdsl-multiplex.la
endif
if HAVE_JRREIL
lib_LTLIBRARIES += libjrreil.la
endif
if HAVE_X86_LIB
lib_LTLIBRARIES += libx86.la
endif
if HAVE_READHEX
lib_LTLIBRARIES += libreadhex.la
endif
if X86_RREIL
if INSTALL_AUXLIBS
if HAVE_POSIX200809_C11
if LINUX
if HAVE_UTIL
lib_LTLIBRARIES += libutil.la
endif
if HAVE_X86_TESTER
lib_LTLIBRARIES += libx86-tester.la
endif
if HAVE_X86_GENERATOR
lib_LTLIBRARIES += libx86-generator.la
endif
lib_LTLIBRARIES += libx86.la libgdwrap.la
else
if BUILD_AUXLIBS
if HAVE_POSIX200809_C11
if LINUX
noinst_LTLIBRARIES += libx86-tester.la
if HAVE_MEMSTREAM
lib_LTLIBRARIES += libmemstream.la
endif
endif
noinst_LTLIBRARIES += libx86.la libgdwrap.la
if BUILD_AUXLIBS
if HAVE_RREIL_LIB
noinst_LTLIBRARIES += librreil.la
endif
if HAVE_RREIL_SIM
noinst_LTLIBRARIES += librreil-sim.la
endif
if HAVE_GDWRAP
noinst_LTLIBRARIES += libgdwrap.la
endif
if HAVE_POSIX200809_C11
if HAVE_RREIL
if INSTALL_AUXLIBS
if LINUX
lib_LTLIBRARIES += librreil-sim.la
if HAVE_GDSL_MULTIPLEX
noinst_LTLIBRARIES += libgdsl-multiplex.la
endif
lib_LTLIBRARIES += librreil.la
if HAVE_JNI_H
lib_LTLIBRARIES += libjrreil.la
if HAVE_JRREIL
noinst_LTLIBRARIES += libjrreil.la
endif
lib_LTLIBRARIES += libgdsl-multiplex.la
else
if BUILD_AUXLIBS
if LINUX
noinst_LTLIBRARIES += librreil-sim.la
if HAVE_X86_LIB
noinst_LTLIBRARIES += libx86.la
endif
noinst_LTLIBRARIES += librreil.la
if HAVE_JNI_H
noinst_LTLIBRARIES += libjrreil.la
if HAVE_READHEX
noinst_LTLIBRARIES += libreadhex.la
endif
noinst_LTLIBRARIES += libgdsl-multiplex.la
if HAVE_UTIL
noinst_LTLIBRARIES += libutil.la
endif
if HAVE_X86_TESTER
noinst_LTLIBRARIES += libx86-tester.la
endif
if HAVE_X86_GENERATOR
noinst_LTLIBRARIES += libx86-generator.la
endif
if HAVE_MEMSTREAM
noinst_LTLIBRARIES += libmemstream.la
endif
endif
......@@ -453,20 +457,20 @@ libutil_la_SOURCES = $(srcdir)/libs/util/src/util.c $(srcdir)/libs/util/src/stac
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
if HAVE_X86_LIB
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
if HAVE_RREIL_LIB
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
if HAVE_X86_LIB
librreil_la_CFLAGS += -DGDSL_X86 -I$(srcdir)/libs/x86/include
endif
include_HEADERS += $(srcdir)/libs/rreil/include/rreil/rreil.h \
......@@ -548,57 +552,67 @@ libgdsl_multiplex_la_LDFLAGS = -ldl
include_HEADERS += $(srcdir)/libs/gdsl-multiplex/include/gdsl_multiplex.h
endif
if HAVE_RREIL
libmemstream_la_SOURCES = $(srcdir)/libs/memstream/src/memstream.c
libmemstream_la_CFLAGS = -I$(srcdir)/libs/memstream/include
include_HEADERS += $(srcdir)/libs/memstream/include/memstream.h
if INSTALL_AUXBINS
if HAVE_POSIX200809_C11
bin_PROGRAMS += semantics-cli-dynamic
endif
if HAVE_DECODER_CLI
bin_PROGRAMS += decoder-cli
endif
if HAVE_SEMANTICS_CLI
bin_PROGRAMS += semantics-cli
bin_PROGRAMS += semantics-cif-cli
bin_PROGRAMS += semantics-opt
if HAVE_ELF
bin_PROGRAMS += sweep liveness-sweep
endif
else
if BUILD_AUXBINS
if HAVE_POSIX200809_C11
noinst_PROGRAMS += semantics-cli-dynamic
if HAVE_SEMANTICS_CLI_DYNAMIC
bin_PROGRAMS += semantics-cli-dynamic
endif
noinst_PROGRAMS += decoder-cli
noinst_PROGRAMS += semantics-cli
noinst_PROGRAMS += semantics-cif-cli
noinst_PROGRAMS += semantics-opt
if HAVE_ELF
noinst_PROGRAMS += sweep liveness-sweep
if HAVE_SEMANTICS_CIF_CLI
bin_PROGRAMS += semantics-cif-cli
endif
if HAVE_SWEEP
bin_PROGRAMS += sweep
endif
if HAVE_SEMANTICS_OPT
bin_PROGRAMS += semantics-opt
endif
if HAVE_LIVENESS_SWEEP
bin_PROGRAMS += liveness-sweep
endif
if X86_RREIL
if INSTALL_AUXBINS
if HAVE_POSIX200809_C11
if LINUX
if HAVE_X86_TEST_RUNNER
bin_PROGRAMS += x86_test_runner
bin_PROGRAMS += x86_test_stats_runner
endif
if HAVE_X86_TEST_STATS_RUNNER
bin_PROGRAMS += x86_test_stats_runner
endif
if HAVE_ELF
bin_PROGRAMS +=
endif
else
if BUILD_AUXBINS
if HAVE_POSIX200809_C11
if LINUX
noinst_PROGRAMS += x86_test_runner
noinst_PROGRAMS += x86_test_stats_runner
if HAVE_DECODER_CLI
noinst_PROGRAMS += decoder-cli
endif
if HAVE_SEMANTICS_CLI
noinst_PROGRAMS += semantics-cli
endif
if HAVE_ELF
noinst_PROGRAMS +=
if HAVE_SEMANTICS_CLI_DYNAMIC
noinst_PROGRAMS += semantics-cli-dynamic
endif
if HAVE_SEMANTICS_CIF_CLI
noinst_PROGRAMS += semantics-cif-cli
endif
if HAVE_SWEEP
noinst_PROGRAMS += sweep
endif
if HAVE_SEMANTICS_OPT
noinst_PROGRAMS += semantics-opt
endif
if HAVE_LIVENESS_SWEEP
noinst_PROGRAMS += liveness-sweep
endif
if HAVE_X86_TEST_RUNNER
noinst_PROGRAMS += x86_test_runner
endif
if HAVE_X86_TEST_STATS_RUNNER
noinst_PROGRAMS += x86_test_stats_runner
endif
endif
......
......@@ -142,7 +142,7 @@ AM_CONDITIONAL([ENV_SWEEP], false)
AM_CONDITIONAL([ENV_SEMANTICS_OPT], false)
AM_CONDITIONAL([ENV_LIVENESS_SWEEP], false)
AM_CONDITIONAL([ENV_X86_TEST_RUNNER], false)
AM_CONDITIONAL([ENV_X86_STATS_TEST_RUNNER], false)
AM_CONDITIONAL([ENV_X86_TEST_STATS_RUNNER], false)
AM_CONDITIONAL([ENV_DECODER_CLI], true)
AM_COND_IF([HAVE_RREIL], [AM_CONDITIONAL([ENV_SEMANTICS_CLI], true)], [AM_CONDITIONAL([ENV_SEMANTICS_CLI], false)])
......@@ -186,7 +186,8 @@ AM_CONDITIONAL([HAVE_SWEEP], false)
AM_CONDITIONAL([HAVE_SEMANTICS_OPT], false)
AM_CONDITIONAL([HAVE_LIVENESS_SWEEP], false)
AM_CONDITIONAL([HAVE_X86_TEST_RUNNER], false)
AM_CONDITIONAL([HAVE_X86_STATS_TEST_RUNNER], false)
AM_CONDITIONAL([HAVE_X86_TEST_STATS_RUNNER], false)
AM_CONDITIONAL([HAVE_MEMSTREAM], true)
AM_COND_IF([ENV_DECODER_CLI], [AM_COND_IF([HAVE_READHEX], [AM_CONDITIONAL([HAVE_DECODER_CLI], true)])])
AM_COND_IF([ENV_SEMANTICS_CLI], [AM_COND_IF([HAVE_READHEX], [AM_CONDITIONAL([HAVE_SEMANTICS_CLI], true)])])
......@@ -196,7 +197,8 @@ AM_COND_IF([ENV_SWEEP], [AM_CONDITIONAL([HAVE_SWEEP], true)])
AM_COND_IF([ENV_SEMANTICS_OPT], [AM_CONDITIONAL([HAVE_SEMANTICS_OPT], true)])
AM_COND_IF([ENV_LIVENESS_SWEEP], [AM_CONDITIONAL([HAVE_LIVENESS_SWEEP], true)])
AM_COND_IF([ENV_X86_TEST_RUNNER], [AM_COND_IF([HAVE_READHEX], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_TEST_RUNNER], true)])])])])
AM_COND_IF([ENV_X86_TEST_STATS_RUNNER], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_STATS_TEST_RUNNER], true)])])])
AM_COND_IF([ENV_X86_TEST_STATS_RUNNER], [AM_COND_IF([HAVE_X86_GENERATOR], [AM_COND_IF([HAVE_X86_TESTER], [AM_CONDITIONAL([HAVE_X86_TEST_STATS_RUNNER], true)])])])
AM_COND_IF([HAVE_OPEN_MEMSTREAM], [AM_CONDITIONAL([HAVE_MEMSTREAM], false)])
dnl check if the helper executables should be build and/or installed
AC_ARG_ENABLE([install-auxbins],
......
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