X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.in;h=d698da0326614aebce45eb3cf64ced1d6b44d9b7;hb=7cc1f1dc57d2cedc02dd86afc34fd4064e275dc6;hp=4329a0c416e62aa7bd79364ccc9295a33c863a87;hpb=f0d338c505f258088ab0f3f2f54ed91a3ee02d72;p=libfirm diff --git a/Makefile.in b/Makefile.in index 4329a0c41..d698da032 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. # @@ -15,8 +19,10 @@ srcdir := @srcdir@ topdir := . # subdirectory under topdir subdir := . +# do we want statistics +enable_statistics := @enable_statistics@ -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/opt ir/tr ir/ana ir/st ir/stat SOURCES := Makefile.in MakeRules.in MakeTargets\ aclocal.m4 config.h.in\ @@ -34,17 +40,28 @@ XOFILES += $(addsuffix /subdir.o, $(subdirs)) include $(top_srcdir)/MakeTargets +# add target firmjni if configured with --enable-firmjni +all: firm + +firm: libfirm.a + +$(OFILES): config.h Makefile -all: config.h Makefile libfirm.a +$(XOFILES): subdir_all -libfirm.a: subdir_all $(XOFILES) $(OFILES) +libfirm.a: $(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 +69,7 @@ autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE) .PHONY: $(AUTDOCINDEXFILE) $(AUTODOCINDEXFILE): $(CFILES) $(HFILES) - $(AUTODOC) $(srcdir)/$(AUTODOCFILE) + $(AUTODOC) $(AUTODOCFILE) #${srcdir}/configure: configure.in aclocal.m4 @@ -74,11 +91,16 @@ 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;