# do we want statistics
enable_statistics := @enable_statistics@
-subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/opt ir/tr ir/ana ir/stat ir/external ir/ana2
+build_subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/opt ir/tr ir/ana \
+ ir/stat ir/external ir/ana2
+
+subdirs := $(build_subdirs) ir/config
SOURCES := Makefile.in MakeRules.in MakeTargets\
aclocal.m4 config.h.in\
include $(topdir)/MakeRules
-XOFILES += $(addsuffix /subdir.o, $(subdirs))
+XOFILES += $(addsuffix /subdir.o, $(build_subdirs))
include $(top_srcdir)/MakeTargets
ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
- ir/opt/Makefile ir/external/Makefile \
+ ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
libfirm.doxygen"
+CONF_DIR_NAME=`dirname $0`
+
ac_config_headers="$ac_config_headers config.h"
fi
-gawk -f filter.awk < config.h | sed -f filter.sed > ir/common/firm_config.h
+gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h
ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
- ir/opt/Makefile ir/external/Makefile \
+ ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
libfirm.doxygen"
+dnl where is the configure file
+CONF_DIR_NAME=`dirname $0`
+
dnl generate the config header file
AC_CONFIG_HEADER(config.h)
AC_OUTPUT($ac_output_file,[ touch stamp-h ])
-dnl snip the lower prt of config.h and put it to ir/common/firm_config.h
-gawk -f filter.awk < config.h | sed -f filter.sed > ir/common/firm_config.h
+dnl snip the lower prt of config.h and put it to ir/config/firm_config.h
+gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h
include $(topdir)/MakeRules
-CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug
+CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug -I$(topdir)/ir/config
OFILES += pset.o
include $(top_srcdir)/MakeTargets
CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
- -I$(top_srcdir)/ir/opt -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/opt -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external \
+ -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
-I$(top_srcdir)/ir/opt -I$(top_srcdir)/ir/arch -I$(top_srcdir)/ir/stat \
- -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
topdir = ../..
subdir := ir/common
-INSTALL_HEADERS := firm_common.h firm.h firmwalk.h statistics.h old_fctnames.h firm_config.h
+INSTALL_HEADERS := firm_common.h firm.h firmwalk.h statistics.h old_fctnames.h
SOURCES = $(INSTALL_HEADERS)
-I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/tv -I$(top_srcdir)/ir/ir \
-I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/debug \
-I$(top_srcdir)/ir/opt -I$(top_srcdir)/ir/arch -I$(top_srcdir)/ir/stat \
- -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
--- /dev/null
+#
+# Project: libFIRM
+# File name: ir/config/Makefile.in
+# Purpose:
+# Author: Boris Boesler, Till Riedel
+# Modified by:
+# Created:
+# CVS-ID: $Id$
+# Copyright: (c) 1999-2003 Universität Karlsruhe
+# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+#
+
+top_srcdir := @top_srcdir@
+srcdir = @srcdir@
+topdir = ../..
+subdir := ir/common
+
+INSTALL_HEADERS := firm_config.h
+
+SOURCES = $(INSTALL_HEADERS)
+
+include $(topdir)/MakeRules
+
+include $(top_srcdir)/MakeTargets
+
+all:
CPPFLAGS += -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/ana \
- -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/external \
+ -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
- -I$(top_srcdir)/ir/stat -I$(LIBXML2)/include/libxml2
+ -I$(top_srcdir)/ir/stat -I$(topdir)/ir/config -I$(LIBXML2)/include/libxml2
include $(top_srcdir)/MakeTargets
INSTALL_HEADERS = irprog.h irgraph.h irnode.h irmode.h irop.h ircons.h \
irflag.h irvrfy.h irgwalk.h irgmod.h iropt.h irdump.h \
- irgopt.h ircgcons.h ircgopt.h irreflect.h irarch.h irprintf.h
+ irgopt.h ircgcons.h ircgopt.h irreflect.h irarch.h irprintf.h \
+ irlwrdw.h
SOURCES = $(INSTALL_HEADERS)
ircons.c ircons_t.h irgmod.c irgraph_t.h irnode.c iropt.c iropt_t.h irvrfy.c \
irgwalk.c irgwalk_blk.c irdump.c irdumptxt.c irgopt.c irgopt_t.h irnode_t.h \
irmode.c irop.c irprog.c irflag.c irflag_t.h irgraph.c irprintf_t.h \
- irmode_t.h irop_t.h irprog_t.h ircgcons.c ircgopt.c irreflect.c irarch.c irprintf.c
+ irmode_t.h irop_t.h irprog_t.h ircgcons.c ircgopt.c irreflect.c irarch.c irprintf.c \
+ irlwrdw.c
include $(topdir)/MakeRules
CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
- -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
SOURCES = $(INSTALL_HEADERS)
SOURCES += Makefile.in \
- cfopt.c tailrec.c strength_red.c ldstopt.c reassoc.c \
- loop_unrolling.c
+ cfopt.c tailrec.c strength_red.c ldstopt.c reassoc.c \
+ loop_unrolling.c funccall.c
include $(topdir)/MakeRules
CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
- -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
- -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
CPPFLAGS += -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/adt \
-I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tv \
-I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/opt \
- -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/arch -I$(top_srcdir)/ir/stat -I$(top_srcdir)/ir/external \
+ -I$(topdir)/ir/config
include $(top_srcdir)/MakeTargets
CPPFLAGS += -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/adt \
-I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/debug \
- -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/external
+ -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/external \
+ -I$(topdir)/ir/config
tv.o: tv.h tv.c fltcalc.h fltcalc.c strcalc.h strcalc.c