X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=4609c38caed2aff988e082beec3f0cf8639dd6f7;hb=6af0195ad537c00d0a9e82d3516bfab9e21852ba;hp=231062c633bc730e2ac4ad4068e3d4e9b47abb38;hpb=bec1595974fa007c8e0652b558c1061ea0ff691e;p=libfirm diff --git a/Makefile.in b/Makefile.in index 231062c63..4609c38ca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,9 +21,25 @@ 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@ -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 +# 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 @@ -61,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