Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer...
[mono.git] / mono / arch / Makefile.am
index 40b50bf7a2e9f61e754380989fe9efa85aa94b11..28a91475f51786df82ddc148ab3fda047aadea39 100644 (file)
@@ -1,17 +1,24 @@
+DIST_SUBDIRS = x86 ppc sparc arm s390 s390x alpha hppa amd64 ia64 mips
+
+AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
+
+if INTERP_SUPPORTED
 SUBDIRS = $(arch_target)
-DIST_SUBDIRS = x86 ppc
+else
+if ARM
+# arm needs to build some stuff even in JIT mode
+SUBDIRS = $(arch_target)
+endif
+endif
 
-INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir)
+if INTERP_SUPPORTED
 
 noinst_LTLIBRARIES = libmonoarch.la
 
 libmonoarch_la_SOURCES = unknown.c
 
-if X86
-libmonoarch_la_LIBADD = $(arch_target)/libmonoarch-$(arch_target).la
-endif
-if POWERPC
 libmonoarch_la_LIBADD = $(arch_target)/libmonoarch-$(arch_target).la
+
 endif
 
 EXTRA_DIST = ChangeLog