X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=095f479e222cdb0f3d8756bbd092e50867f9dc21;hb=e1cdd79388b3cb305458548303221a210b8355c9;hp=162c0d7eff83aa252305de5c2d8d8d2740d0ef82;hpb=c0b2c2e9fbe3370b74bdc04e692c75655003bad7;p=libfirm diff --git a/Makefile.in b/Makefile.in index 162c0d7ef..095f479e2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,8 +21,23 @@ topdir := . subdir := . # do we want statistics enable_statistics := @enable_statistics@ +# do we want external description of effects +enable_external_effects := @enable_external_effects@ +# do we want to test the firm internal backend stuff? +enable_backend := @enable_backend@ -subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/opt ir/tr ir/ana ir/stat ir/external # ir/st +build_subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir \ + ir/opt ir/tr ir/ana ir/stat ir/ana2 + +ifeq (@enable_external_effects@,yes) +build_subdirs += ir/external +endif + +ifeq (@enable_backend@,yes) +build_subdirs += ir/be +endif + +subdirs := $(build_subdirs) ir/config SOURCES := Makefile.in MakeRules.in MakeTargets\ aclocal.m4 config.h.in\ @@ -31,21 +46,23 @@ SOURCES := Makefile.in MakeRules.in MakeTargets\ SHARED_LIB = libfirm.so -INSTALL_LIBS = libfirm.a $(SHARED_LIB) +INSTALL_LIBS = libfirm.a GENFILES := stamp-h config.log config.cache # config.status config.h.in $(srcdir)/stamp-h.in include $(topdir)/MakeRules -XOFILES += $(addsuffix /subdir.o, $(subdirs)) +XOFILES += $(addsuffix /subdir.o, $(build_subdirs)) include $(top_srcdir)/MakeTargets # add target firmjni if configured with --enable-firmjni all: firm -firm: libfirm.a $(SHARED_LIB) +firm: libfirm.a + +shared: $(SHARED_LIB) $(OFILES): config.h Makefile @@ -53,9 +70,10 @@ $(XOFILES): subdir_all libfirm.a: $(XOFILES) $(OFILES) $(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES) - $(RANLIB) $@.new mv -f $@.new $@ + $(RANLIB) $@ +# dont know about xml here libfirm.so: subdir_all $(XOFILES) $(OFILES) ld -Bshareable -o ./libfirm.so $(XOFILES) -lm -L/usr/public/libxml2/lib -lxml2