top_srcdir := @top_srcdir@
srcdir = @srcdir@
topdir = ../..
-subdir := ir
+subdir := ir/ir
+INSTALL_HEADERS = irprog.h irgraph.h irnode.h irmode.h irop.h ircons.h \
+ irflag.h irvrfy.h irgwalk.h irgmod.h iropt.h irdump.h \
+ irgopt.h old_fctnames.h ircgcons.h ircgopt.h
-SOURCES := Makefile.in \
- ircons.c irgmod.c irgraph_t.h irnode.c iropt.c irvrfy.c \
- ircons.h irgmod.h irgwalk.c irnode.h iropt.h irvrfy.h \
- irdump.c irgopt.c irgwalk.h irnode_t.h iropt_t.h old_fctnames.h \
- irdump.h irgopt.h irmode.c irop.c irprog.c \
- irflag.c irgraph.c irmode.h irop.h irprog.h \
- irflag.h irgraph.h irmode_t.h irop_t.h irprog_t.h
+SOURCES = $(INSTALL_HEADERS)
+
+SOURCES += Makefile.in \
+ ircons.c irgmod.c irgraph_t.h irnode.c iropt.c irvrfy.c \
+ irgwalk.c irdump.c irgopt.c irnode_t.h iropt_t.h \
+ irmode.c irop.c irprog.c irflag.c irgraph.c irmode_t.h \
+ irop_t.h irprog_t.h ircgcons.c ircgopt.c
-INSTALL_HEADERS = $(filter %.h,$(SOURCES))
include $(topdir)/MakeRules
-CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
- -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
- -I$(top_srcdir)/ir/debug
+CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/common \
+ -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/tv \
+ -I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st
include $(top_srcdir)/MakeTargets