Commit 5c6e77cd authored by Matthias Braun's avatar Matthias Braun
Browse files

Remove autoconf/automake build

The next release will feature a cmake build.
parent 5a8629ec
SUBDIRS = include/libfirm ir
EXTRA_DIST = README.md COPYING NEWS.md m4/pkg.m4 m4/ax_cflags_gcc_option.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libfirm.pc
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
ACLOCAL_AMFLAGS = -I m4
dnl configure.ac file for libfirm, author Matthias Braun <matze@braunis.de>
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.60])
dnl Firm Versions
dnl * Increment major/minor/micro version as you see fit. These 3 numbers
dnl are intended for humans and are independent from the libtool versions
m4_define([firm_major_version], [1])
m4_define([firm_minor_version], [21])
m4_define([firm_micro_version], [0])
m4_define([firm_version],
[firm_major_version.firm_minor_version.firm_micro_version])
dnl Libtool versions
dnl
dnl * If any code has changed at all (i.e. bugfixes) increment revision
dnl * If any interface has been added, removed or changed increment
dnl current, set revision to 0
dnl * If any interface has been added increment age
dnl * If any interfaces have been remove set age to 0
dnl * use lt_release if substantial things have been changed. The release can be
dnl thought of as part of the library name. So changing the release creates
dnl a new library.
m4_define([lt_current], [1])
m4_define([lt_revision], [0])
m4_define([lt_age], [0])
dnl we use firm major version as release
m4_define([lt_release], [firm_major_version])
AC_INIT([libfirm], [firm_version], [firm@ipd.info.uni-karlsruhe.de])
AC_CONFIG_SRCDIR([ir/common/firm.c])
AM_INIT_AUTOMAKE([foreign dist-bzip2 silent-rules 1.11])
AM_SILENT_RULES([yes])
AC_DEFINE([libfirm_VERSION_MAJOR], [firm_major_version], [Firms major version number])
AC_DEFINE([libfirm_VERSION_MINOR], [firm_minor_version], [Firms minor version number])
AC_DEFINE([libfirm_VERSION_MICRO], [firm_micro_version], [Firms micro version number])
LT_VERSION="lt_current:lt_revision:lt_age"
AC_SUBST([LT_VERSION])
#LT_RELEASE="lt_release"
#AC_SUBST([LT_RELEASE])
dnl enable libtool
LT_INIT([win32-dll])
AC_SUBST([LIBTOOL_DEPS])
dnl generate the config header file
AC_CONFIG_HEADER([config.h])
CPPFLAGS=$CPPFLAGS" -include config.h"
AC_DEFINE([FIRM_BUILD], [], [Defined when firm library is built])
AC_DEFINE([FIRM_DLL], [], [Define when a dynamically loadable shared library is built])
AC_CONFIG_MACRO_DIR([m4])
dnl Package options
dnl ===============
dnl check for additional include dirs
AC_ARG_WITH(includedir, [ --with-includedir=add colon seperated list of directories to include search path],
CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`)
dnl check for additional library dirs
AC_ARG_WITH(libdir, [ --with-libdir=add colon seperated list of directories to linker search path],
LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`)
dnl set debugging
dnl -------------
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--disable-debug], [disable verifiers and additional debugging routines])],
[enable_debug_libfirm="$enableval"], [enable_debug_libfirm="yes"])
if test "$enable_debug_libfirm" = yes; then
AC_DEFINE([DEBUG_libfirm], [], [define to enable debug mode and checks])
fi
AC_ARG_ENABLE([assert],
[AS_HELP_STRING([--disable-assert], [disable assertions])],
[enable_assert="$enableval"], [enable_assert="yes"])
if test "$enable_assert" = no; then
AC_DEFINE([NDEBUG], [], [define to disable asserts])
fi
AC_SUBST([enable_assert])
dnl Checks for programs.
dnl ====================
dnl check for a C compiler
dnl ----------------------
AC_PROG_CC
dnl enable visibility hidden (if supported)
AX_CFLAGS_GCC_OPTION([-fvisibility=hidden])
AC_PATH_PROGS(PERL, perl perl5)
dnl check for awk
dnl -------------
AC_PROG_AWK
dnl Checks for header files.
dnl ========================
AC_HEADER_STDC
AC_CHECK_HEADERS([math.h], , AC_MSG_ERROR("math header file not found"))
dnl Checks for libraries.
dnl =====================
AC_CHECK_LIB(m, main, ac_m_library="yes", ac_m_library="no")
if test "$ac_m_library" != yes; then
dnl std math library not found.
AC_MSG_ERROR("standard math library not found")
fi
dnl Checks for typedefs, structures, and compiler characteristics.
dnl ==============================================================
AC_C_CONST
AC_C_VOLATILE
AC_C_INLINE
AC_C_BIGENDIAN(,,,)
dnl Error messaging
dnl ===============
dnl Output results
AC_CONFIG_FILES([
Makefile
ir/Makefile
include/libfirm/Makefile
libfirm.pc
])
AC_OUTPUT
libfirmincludedir=$(includedir)/libfirm
libfirminclude_HEADERS = \
analyze_irg_args.h \
begin.h \
be.h \
callgraph.h \
cdep.h \
cgana.h \
dbginfo.h \
end.h \
execfreq.h \
firm_common.h \
firm.h \
firmstat.h \
firm_types.h \
heights.h \
ident.h \
irarch.h \
ircgopt.h \
irconsconfirm.h \
ircons.h \
irdom.h \
irdump.h \
iredgekinds.h \
iredges.h \
irflag.h \
irgmod.h \
irgopt.h \
irgraph.h \
irgwalk.h \
irhooks.h \
irio.h \
irloop.h \
irmemory.h \
irmode.h \
irnode.h \
irop.h \
iropt.h \
iroptimize.h \
irouts.h \
irprintf.h \
irprog.h \
irverify.h \
lowering.h \
nodeops.h \
opcodes.h \
statev.h \
timing.h \
tv.h \
typerep.h \
vrp.h
libfirminclude_adtdir=$(includedir)/libfirm/adt
libfirminclude_adt_HEADERS = \
adt/array.h \
adt/bipartite.h \
adt/gaussjordan.h \
adt/gaussseidel.h \
adt/hashptr.h \
adt/hungarian.h \
adt/list.h \
adt/obstack.h \
adt/obst.h \
adt/pdeq.h \
adt/plist.h \
adt/pmap.h \
adt/pqueue.h \
adt/pset.h \
adt/set.h \
adt/unionfind.h \
adt/xmalloc.h
#!/bin/bash
#
# Little helper script used to create the file list for Makefile.am
# automatically
rm -f FILELIST
echo 'libfirmincludedir=$(includedir)/libfirm' >> FILELIST
echo 'libfirminclude_HEADERS = \' >> FILELIST
for f in *.h; do
echo -e "\t$f \\" >> FILELIST
done
echo "" >> FILELIST
echo "" >> FILELIST
echo 'libfirminclude_adtdir=$(includedir)/libfirm/adt' >> FILELIST
echo 'libfirminclude_adt_HEADERS = \' >> FILELIST
for f in adt/*.h; do
echo -e "\t$f \\" >> FILELIST
done
echo "" >> FILELIST
lib_LTLIBRARIES = libfirm.la
INCLUDES = -I$(top_srcdir)/include/libfirm \
-I$(top_srcdir)/include/libfirm/adt \
-I$(top_builddir)
INCLUDES += \
-I$(top_srcdir)/ir/adt \
-I$(top_srcdir)/ir/ana \
-I$(top_srcdir)/ir/arch \
-I$(top_srcdir)/ir/be \
-I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/debug \
-I$(top_srcdir)/ir/ident \
-I$(top_srcdir)/ir/ir \
-I$(top_srcdir)/ir/kaps \
-I$(top_srcdir)/ir/libcore \
-I$(top_srcdir)/ir/lower \
-I$(top_srcdir)/ir/lpp \
-I$(top_srcdir)/ir/net \
-I$(top_srcdir)/ir/opt \
-I$(top_srcdir)/ir/stat \
-I$(top_srcdir)/ir/tr \
-I$(top_srcdir)/ir/tv
libfirm_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION) -lm
libfirm_la_CFLAGS = -std=c99
libfirm_la_SOURCES = \
adt/array.c \
adt/bipartite.c \
adt/cpset.c \
adt/gaussjordan.c \
adt/gaussseidel.c \
adt/hungarian.c \
adt/pdeq.c \
adt/plist.c \
adt/pmap.c \
adt/pqueue.c \
adt/pset.c \
adt/pset_new.c \
adt/set.c \
adt/xmalloc.c \
ana/analyze_irg_args.c \
ana/callgraph.c \
ana/cdep.c \
ana/cgana.c \
ana/dfs.c \
ana/domfront.c \
ana/execfreq.c \
ana/heights.c \
ana/irbackedge.c \
ana/ircfscc.c \
ana/irconsconfirm.c \
ana/irdom.c \
ana/irlivechk.c \
ana/irloop.c \
ana/irmemory.c \
ana/irouts.c \
ana/irscc.c \
ana/vrp.c \
be/beabi.c \
be/beabihelper.c \
be/bearch.c \
be/beblocksched.c \
be/bechordal.c \
be/bechordal_common.c \
be/bechordal_draw.c \
be/bechordal_main.c \
be/becopyheur2.c \
be/becopyheur4.c \
be/becopyheur.c \
be/becopyilp2.c \
be/becopyilp.c \
be/becopyopt.c \
be/bedump.c \
be/bedwarf.c \
be/beemitter_binary.c \
be/beemitter.c \
be/beflags.c \
be/begnuas.c \
be/beifg.c \
be/beinfo.c \
be/beinsn.c \
be/beirg.c \
be/beirgmod.c \
be/belistsched.c \
be/belive.c \
be/beloopana.c \
be/belower.c \
be/bemain.c \
be/bemodule.c \
be/benode.c \
be/bepbqpcoloring.c \
be/bepeephole.c \
be/beprefalloc.c \
be/bera.c \
be/besched.c \
be/beschednormal.c \
be/beschedrand.c \
be/beschedregpress.c \
be/beschedtrace.c \
be/beschedtrivial.c \
be/bespillbelady.c \
be/bespill.c \
be/bespilldaemel.c \
be/bespillslots.c \
be/bespillutil.c \
be/bessaconstr.c \
be/bessadestr.c \
be/bestack.c \
be/bestat.c \
be/bestate.c \
be/betranshlp.c \
be/beuses.c \
be/beutil.c \
be/beverify.c \
common/debug.c \
common/error.c \
common/firm.c \
common/firm_common.c \
common/irtools.c \
common/timing.c \
debug/dbginfo.c \
debug/debugger.c \
ident/ident.c \
ident/mangle.c \
ir/instrument.c \
ir/irarch.c \
ir/irargs.c \
ir/ircomplib.c \
ir/ircons.c \
ir/irdump.c \
ir/irdumptxt.c \
ir/iredges.c \
ir/irflag.c \
ir/irgmod.c \
ir/irgopt.c \
ir/irgraph.c \
ir/irgwalk_blk.c \
ir/irgwalk.c \
ir/irhooks.c \
ir/irio.c \
ir/irmode.c \
ir/irnode.c \
ir/irnodehashmap.c \
ir/irnodeset.c \
ir/irop.c \
ir/iropt.c \
ir/irpass.c \
ir/irprintf.c \
ir/irprofile.c \
ir/irprog.c \
ir/irssacons.c \
ir/irverify.c \
ir/rm_bads.c \
ir/rm_tuples.c \
ir/unreachable.c \
ir/valueset.c \
libcore/lc_appendable.c \
libcore/lc_opts.c \
libcore/lc_opts_enum.c \
libcore/lc_printf.c \
lower/lower_alloc.c \
lower/lower_builtins.c \
lower/lower_calls.c \
lower/lower_copyb.c \
lower/lower_dw.c \
lower/lower_hl.c \
lower/lower_intrinsics.c \
lower/lower_mode_b.c \
lower/lower_mux.c \
lower/lower_softfloat.c \
lower/lower_switch.c \
lpp/lpp.c \
lpp/lpp_comm.c \
lpp/lpp_cplex.c \
lpp/lpp_gurobi.c \
lpp/lpp_net.c \
lpp/lpp_solvers.c \
lpp/mps.c \
lpp/sp_matrix.c \
obstack/obstack.c \
obstack/obstack_printf.c \
opt/boolopt.c \
opt/cfopt.c \
opt/code_placement.c \
opt/combo.c \
opt/convopt.c \
opt/critical_edges.c \
opt/dead_code_elimination.c \
opt/fp-vrp.c \
opt/funccall.c \
opt/garbage_collect.c \
opt/gvn_pre.c \
opt/ifconv.c \
opt/ircgopt.c \
opt/jumpthreading.c \
opt/ldstopt.c \
opt/loop.c \
opt/opt_blocks.c \
opt/opt_confirms.c \
opt/opt_frame.c \
opt/opt_inline.c \
opt/opt_ldst.c \
opt/opt_osr.c \
opt/parallelize_mem.c \
opt/proc_cloning.c \
opt/reassoc.c \
opt/return.c \
opt/scalar_replace.c \
opt/tailrec.c \
opt/tropt.c \
stat/const_stat.c \
stat/dags.c \
stat/distrib.c \
stat/firmstat.c \
stat/pattern.c \
stat/pattern_dmp.c \
stat/stat_dmp.c \
stat/statev.c \
stat/stat_timing.c \
tr/entity.c \
tr/tpop.c \
tr/tr_inheritance.c \
tr/trverify.c \
tr/type.c \
tr/type_finalization.c \
tr/typewalk.c \
tv/fltcalc.c \
tv/strcalc.c \
tv/tv.c \
kaps/brute_force.c \
kaps/bucket.c \
kaps/heuristical.c \
kaps/heuristical_co.c \
kaps/heuristical_co_ld.c \
kaps/html_dumper.c \
kaps/kaps.c \
kaps/matrix.c \
kaps/optimal.c \
kaps/pbqp_edge.c \
kaps/pbqp_node.c \
kaps/vector.c
EXTRA_DIST = \
adt/array_t.h \
adt/bitfiddle.h \
adt/bitset.h \
adt/util.h \
adt/compiler.h \
adt/cpset.h \
adt/fourcc.h \
adt/raw_bitset.h \
adt/hashset.h \
adt/pset_new.h \
ana/dfs.h \
ana/dfs_t.h \
ana/irbackedge_t.h \
ana/irdom_t.h \
ana/cdep_t.h \
ana/irlivechk.h \
ana/irloop_t.h \
ana/irmemory_t.h \
ana/execfreq_t.h \
be/be_t.h \
be/be_types.h \
be/beabi.h \
be/bearch.h \
be/beblocksched.h \
be/bechordal.h \
be/bechordal_draw.h \
be/bechordal_t.h \
be/becopyopt_t.h \
be/beabihelper.h \
be/becopyilp_t.h \
be/becopyopt.h \
be/bedump.h \
be/belive.h \
be/beintlive_t.h \
be/beemitter.h \
be/begnuas.h \
be/beifg.h \
be/bechordal_common.h \
be/beinsn_t.h \
be/beirg.h \
be/beflags.h \
be/beirgmod.h \
be/beemitter_binary.h \
be/belistsched.h \
be/belive_t.h \
be/beloopana.h \
be/belower.h \
be/beinfo.h \
be/bessaconstr.h \
be/bemodule.h \
be/bemodule_t.h \
be/benode.h \
be/bepeephole.h \
be/bepbqpcoloring.h \
be/bera.h \
be/besched.h \
be/bespill.h \
be/bespillslots.h \
be/beutil.h \
be/bessadestr.h \
be/bespillutil.h \
be/bestat.h \
be/betranshlp.h \
be/bestack.h \
be/bestate.h \
be/beverify.h \
be/bedwarf.h \
be/beuses.h \
be/bedwarf_t.h \
common/debug.h \
common/error.h \
common/irtools.h \
debug/dbginfo_t.h \
debug/debugger.h \
ident/ident_t.h \
ir/irflag_t.def \
ir/irargs_t.h \
ir/instrument.h \
ir/ircons_t.h \
ir/irdump_t.h \
ir/iredges_t.h \
ir/irflag_t.h \
ir/irgraph_t.h \
ir/iredgeset.h \
ir/irmode_t.h \
ir/irnode_t.h \
ir/irnodeset.h \
ir/gen_irnode.h \
ir/irop_t.h \
ir/iropt_t.h \
ir/irprog_t.h \
ir/irnodemap.h \
ir/irpass_t.h \
ir/irnodehashmap.h \
ir/irtypes.h \
ir/irverify_t.h \
ir/irprofile.h \
ir/valueset.h \
libcore/lc_appendable.h \
libcore/lc_opts.h \
libcore/lc_opts_enum.h \
libcore/lc_opts_t.h \
libcore/lc_printf.h \
libcore/lc_printf_arg_types.def \
lower/lower_alloc.h \
lower/lower_builtins.h \
lower/lower_calls.h \
lower/lower_dw.h \
lower/lower_mode_b.h \
lower/lower_softfloat.h \
lpp/lpp.h \
lpp/lpp_comm.h \
lpp/lpp_cplex.h \
lpp/lpp_gurobi.h \
lpp/lpp_net.h \
lpp/lpp_solvers.h \
lpp/lpp_t.h \
lpp/mps.h \
lpp/sp_matrix.h \
opt/iropt_dbg.h \
opt/reassoc_t.h \
opt/scalar_replace.h \
opt/opt_init.h \
stat/counter.h \
stat/dags.h \
stat/firmstat_t.h \
stat/pattern.h \
stat/pattern_dmp.h \
stat/stat_dmp.h \
stat/stat_timing.h \
stat/statev_t.h \
tr/entity_t.h \
tr/tpop_t.h \
tr/type_t.h \
tv/fltcalc.h \
tv/tv_t.h \
tv/strcalc.h \
kaps/brute_force.h \
kaps/bucket.h \
kaps/bucket_t.h \
kaps/heuristical.h \
kaps/heuristical_co.h \
kaps/heuristical_co_ld.h \
kaps/html_dumper.h \
kaps/kaps.h \
kaps/matrix.h \
kaps/matrix_t.h \
kaps/optimal.h \
kaps/pbqp_edge.h \
kaps/pbqp_edge_t.h \
kaps/pbqp_node.h \
kaps/pbqp_node_t.h \
kaps/pbqp_t.h \
kaps/vector.h \
kaps/vector_t.h \
ir/gen_ir_cons.c.inl \
ir/gen_irop.c.inl \
ir/gen_irio.inl \
ir/gen_irnode.c.inl \
ir/gen_irdump.c.inl \
adt/hashset.c.inl \
be/scripts/generate_emitter.pl \
be/scripts/generate_new_opcodes.pl \
be/scripts/generate_regalloc_if.pl
# ia32 backend
ia32_sources = \