srcdir = @srcdir@
topdir = ../..
subdir := ir/adt
-disable_libiberty := @disable_libiberty@
+INSTALL_HEADERS_ADT = \
+ align.h \
+ array.h \
+ bipartite.h \
+ bitfiddle.h \
+ bitset.h \
+ bitset_ia32.h \
+ bitset_std.h \
+ cpset.h \
+ eset.h \
+ fourcc.h \
+ gaussjordan.h \
+ hashptr.h \
+ hashset.h \
+ hungarian.h \
+ impl.h \
+ iterator.h \
+ list.h \
+ obst.h \
+ offset.h \
+ pdeq.h \
+ plist.h \
+ pmap.h \
+ pqueue.h \
+ pset.h \
+ pset_new.h \
+ raw_bitset.h \
+ set.h \
+ unionfind.h \
+ util.h \
+ xmalloc.h
-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 pmap.h pmap.c eset.h eset.c \
- misc.h xmalloc.h
+SOURCES = \
+ Makefile.in \
+ array.c \
+ bipartite.c \
+ cpset.c \
+ eset.c \
+ gaussjordan.c \
+ hashset.c \
+ hungarian.c \
+ iterator.c \
+ pdeq.c \
+ plist.c \
+ pmap.c \
+ pqueue.c \
+ pset.c \
+ pset_new.c \
+ set.c
-ifeq ($(disable_libiberty),no)
-SOURCES += xmalloc.c
-endif
+ADDLIB = xmalloc.o
+
+xmalloc.o: xmalloc.c
+ $(COMPILE.c) -o $@ $<
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)