X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=061a22a2625412fda2499653ba690a6427054661;hb=755615bdc667397dc267badb4adab961ee4dbb53;hp=88f9a5a67b2b745c2935124a22134b3f6c9989ee;hpb=b7ed89a28eed5fc5e5321ef681e29f6c3ae48352;p=libfirm diff --git a/Makefile.in b/Makefile.in index 88f9a5a67..061a22a26 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,8 +21,29 @@ 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@ +# do we want to use the libcore for debug and ADT support +enable_libcore := @enable_libcore@ -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 +# suck in values for the linking procedure: +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ + +build_subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir \ + ir/opt ir/tr ir/ana ir/stat ir/ana2 ir/arch + +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\ @@ -38,7 +59,7 @@ GENFILES := stamp-h config.log config.cache include $(topdir)/MakeRules -XOFILES += $(addsuffix /subdir.o, $(subdirs)) +XOFILES += $(addsuffix /subdir.o, $(build_subdirs)) include $(top_srcdir)/MakeTargets @@ -58,8 +79,9 @@ libfirm.a: $(XOFILES) $(OFILES) 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 + ld -Bshareable -o ./libfirm.so $(XOFILES) -lm $(LDFLAGS) $(LIBS) testprograms: libfirm.a $(MAKE) -C testprograms