add pset.c to avoid strange hackery in Makefiles
authorMatthias Braun <matze@braunis.de>
Fri, 26 Jan 2007 13:21:11 +0000 (13:21 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 26 Jan 2007 13:21:11 +0000 (13:21 +0000)
[r8562]

ir/adt/Makefile.in
ir/adt/pset.c [new file with mode: 0644]

index 4865fed..b016cc3 100644 (file)
@@ -21,7 +21,7 @@ INSTALL_HEADERS_ADT = pset.h set.h pmap.h eset.h hashptr.h array.h pdeq.h iterat
 
 SOURCES = Makefile.in                          \
        array.c obst.h pdeq.c   \
-       set.c pmap.c eset.c iterator.c xmalloc.h \
+       set.c pset.c pmap.c eset.c iterator.c xmalloc.h \
        plist.c bipartite.c gaussjordan.c hungarian.c
 
 ifeq ($(disable_libiberty),no)
@@ -37,11 +37,7 @@ endif
 include $(topdir)/MakeRules
 
 CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug -I$(topdir)/ir/config
-OFILES += pset.o
 
 include $(top_srcdir)/MakeTargets
 
-pset.o:        set.c pset.h
-       $(COMPILE.c) -DPSET -o $@ $<
-
 all: subdir.o $(ADDLIB)
diff --git a/ir/adt/pset.c b/ir/adt/pset.c
new file mode 100644 (file)
index 0000000..7c70368
--- /dev/null
@@ -0,0 +1,2 @@
+#define PSET
+#include <set.c>