X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=056bce856b22b2c655a6663df02767fedc19ecfe;hb=25a9079a440dca3115aedcc4c22438e187ed9d7d;hp=6726d5ce173fa0de8049ef83338719b899f7134e;hpb=3340c5f2c98d7ad9d464760f561ff3d4a262a97f;p=libfirm diff --git a/Makefile.in b/Makefile.in index 6726d5ce1..056bce856 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,9 +1,13 @@ -# Hey Emacs, this is a -*- makefile -*- # -# libFIRM Project -# -# Top level Makefile -# $Id$ +# Project: libFIRM +# File name: Makefile.in +# Purpose: Top level Makefile +# Author: Till Riedel +# Modified by: +# Created: +# CVS-ID: $Id$ +# Copyright: (c) 2002-2003 Universität Karlsruhe +# Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. # @@ -16,7 +20,7 @@ topdir := . # subdirectory under topdir subdir := . -subdirs := ir ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st +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\ @@ -34,17 +38,24 @@ 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.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 # gernerate program documentation .PHONY: autodoc @@ -52,7 +63,7 @@ autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE) .PHONY: $(AUTDOCINDEXFILE) $(AUTODOCINDEXFILE): $(CFILES) $(HFILES) - $(AUTODOC) $(srcdir)/$(AUTODOCFILE) + $(AUTODOC) $(AUTODOCFILE) #${srcdir}/configure: configure.in aclocal.m4 @@ -73,3 +84,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;