X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=4609c38caed2aff988e082beec3f0cf8639dd6f7;hb=6a6c1557afcd038930e649e29d69cb85a5dc372b;hp=a86cffc091cab9a9785d0d7643c801a8a47b3b3b;hpb=077b749d5960a27f04ff64024b3edc05f0fd0c77;p=libfirm diff --git a/Makefile.in b/Makefile.in index a86cffc09..4609c38ca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -23,13 +23,22 @@ subdir := . 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@ + +# suck in values for the linking procedure: +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ + +# plugin subdirectories +plugin_subdirs := @plugin_subdirs@ -ifeq (@enable_external_effects@,yes) -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/external -else 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/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 @@ -70,7 +79,7 @@ libfirm.a: $(XOFILES) $(OFILES) # 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