fixed inline to INLINE
[libfirm] / ir / adt / Makefile.in
index d2d0060..aa9fdd7 100644 (file)
@@ -1,27 +1,43 @@
-# Hey Emacs, this is a -*- makefile -*-
 #
-# libFIRM Project
-#
-# $Id$
+# Project:     libFIRM
+# File name:   ir/adt/Makefile.in
+# Purpose:
+# Author:      Boris Boesler, Till Riedel
+# Modified by:
+# Created:
+# CVS-ID:      $Id$
+# Copyright:   (c) 1999-2003 Universität Karlsruhe
+# Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
 #
 
 top_srcdir := @top_srcdir@
 srcdir = @srcdir@
 topdir = ../..
-subdir := adt
+subdir := ir/adt
+disable_libiberty := @disable_libiberty@
+
+INSTALL_HEADERS_ADT = pset.h set.h pmap.h eset.h hashptr.h array.h pdeq.h iterator.h align.h fourcc.h util.h plist.h \
+                     bipartite.h xmalloc.h gaussjordan.h hungarian.h raw_bitset.h
 
+SOURCES = Makefile.in                          \
+       array.c obst.h pdeq.c   \
+       set.c pset.c pmap.c eset.c iterator.c xmalloc.h \
+       plist.c bipartite.c gaussjordan.c hungarian.c
 
-SOURCES = Makefile.in array.c array.h cookies.h debug.c debug.h host.h obst.h \
-          pdeq.c pdeq.h pset.h set.c set.h xmalloc.c
+ifeq ($(disable_libiberty),no)
+SOURCES += xmalloc.c
+ADDLIB =
+else
+ADDLIB = xmalloc.o
+
+xmalloc.o: xmalloc.c
+       $(COMPILE.c) -o $@ $<
+endif
 
 include $(topdir)/MakeRules
 
-CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug
-OFILES += pset.o
+CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug -I$(topdir)/ir/config
 
 include $(top_srcdir)/MakeTargets
 
-pset.o:        set.c pset.h
-       $(COMPILE.c) -DPSET -o $@ $<
-
-all: subdir.o
+all: subdir.o $(ADDLIB)