added copyright information
[libfirm] / Makefile.in
index b433ab1..056bce8 100644 (file)
@@ -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\
@@ -35,7 +39,7 @@ XOFILES += $(addsuffix /subdir.o, $(subdirs))
 include $(top_srcdir)/MakeTargets
 
 # add target firmjni if configured with --enable-firmjni
-all: config.h Makefile libfirm.a
+all: firm
 
 firm: config.h Makefile libfirm.a
 
@@ -44,6 +48,9 @@ libfirm.a: subdir_all $(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