X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=c755730f49a00a11fc1dd38177bac0c7b0c6fa05;hb=46440a630a54a7d0004a7f7498e83b1d95dc526d;hp=3324899b2d85fd89f241a8c392595e9b96753b3b;hpb=972ce44b525c5799ba51db5ad4af962990002361;p=libfirm diff --git a/Makefile.in b/Makefile.in index 3324899b2..c755730f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,36 +16,16 @@ topdir := . # subdirectory under topdir subdir := . -prefix := @prefix@ -exec_prefix := @exec_prefix@ -bindir = $(exec_prefix)/bin -datadir = $(prefix)/lib - -subdirs := ir ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr +subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st SOURCES := Makefile.in MakeRules.in MakeTargets\ aclocal.m4 config.h.in\ config.guess config.sub configure.in \ - stamp-h.in install-sh + stamp-h.in install-sh README configure -INSTALL_LIBS = libfirm.a +INSTALL_LIBS = libfirm.a libfirm.so GENFILES := stamp-h config.log config.cache - -# init -ARCHIVEDISTFILES := testprograms/Makefile.in \ - testprograms/array-heap_example.c testprograms/if_example.c \ - testprograms/array-stack_example.c testprograms/if_while_example.c \ - testprograms/call_str_example.c testprograms/inheritance_example.c \ - testprograms/cond_example.c testprograms/irr_cf_example.c \ - testprograms/const_eval_example.c testprograms/irr_loop_example.c \ - testprograms/dead_block_example.c testprograms/memory_example.c \ - testprograms/empty.c testprograms/oo_program_example.c \ - testprograms/global_var_example.c testprograms/three_cfpred_example.c \ - testprograms/if_else_example.c testprograms/while_example.c \ - -DISTFILES = $(addprefix ../, $(ARCHIVEDISTFILES)) - # config.status config.h.in $(srcdir)/stamp-h.in include $(topdir)/MakeRules @@ -54,29 +34,32 @@ XOFILES += $(addsuffix /subdir.o, $(subdirs)) include $(top_srcdir)/MakeTargets +# add target firmjni if configured with --enable-firmjni +all: firm -all: config.h Makefile libfirm.a +firm: config.h Makefile libfirm.a libfirm.so libfirm.a: subdir_all $(XOFILES) $(OFILES) $(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES) $(RANLIB) $@.new mv -f $@.new $@ +libfirm.so: subdir_all $(XOFILES) $(OFILES) + ld -Bshareable -o ./libfirm.so $(XOFILES) -lm + testprograms: libfirm.a $(MAKE) -C testprograms +firmjni:: libfirm.a + $(MAKE) -C firmjni -# generate program documentation +# gernerate program documentation .PHONY: autodoc -autodoc: autodoc_xref $(AUTODOCDIR) $(GLOBALXREFFILE) autodoc_html $(INDEXFILE) +autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE) -$(GLOBALXREFFILE): $(addsuffix /$(LOCALXREFSFILE), $(subdirs)) .xrefs -# cat $^ > $@ - $(RM) $@ - find $(PWD) -name "*.xref" -print > $@ - -$(INDEXFILE): $(GLOBALXREFFILE) - $(AUTODOC) $(GLOBALXREFFILE) $@ INDEX HTML +.PHONY: $(AUTDOCINDEXFILE) +$(AUTODOCINDEXFILE): $(CFILES) $(HFILES) + $(AUTODOC) $(AUTODOCFILE) #${srcdir}/configure: configure.in aclocal.m4 @@ -97,3 +80,17 @@ stamp-h: config.h.in config.status config.status: configure ./config.status --recheck + +# add target test-firmjni if configured with --enable-firmjni +test:: + $(MAKE) -C testprograms test; + +test-firmjni:: + $(MAKE) -C firmjni test; + +test-reference:: + $(MAKE) -C testprograms reference; + +test-clean: + $(MAKE) -C testprograms realclean + $(MAKE) -C firmjni/testprograms clean;