X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=4609c38caed2aff988e082beec3f0cf8639dd6f7;hb=234b6000ff8a116380b135e96fef40a54c36979e;hp=88f9a5a67b2b745c2935124a22134b3f6c9989ee;hpb=b7ed89a28eed5fc5e5321ef681e29f6c3ae48352;p=libfirm diff --git a/Makefile.in b/Makefile.in index 88f9a5a67..4609c38ca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,8 +21,27 @@ 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 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@ + +# plugin subdirectories +plugin_subdirs := @plugin_subdirs@ + +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 \ + $(plugin_subdirs) + +ifeq (@enable_external_effects@,yes) +build_subdirs += ir/external +endif + +subdirs := $(build_subdirs) ir/config SOURCES := Makefile.in MakeRules.in MakeTargets\ aclocal.m4 config.h.in\ @@ -38,7 +57,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 +77,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