+DIST_SUBDIRS = beos macosx maemo minimal_macosx pda qnx qt4 skins2 wince
+SUBDIRS =
+
+if HAVE_BEOS
+SUBDIRS += beos
+endif
+if HAVE_DARWIN
+SUBDIRS += macosx minimal_macosx
+endif
+if BUILD_MAEMO
+SUBDIRS += maemo
+endif
+SUBDIRS += qnx
+if ENABLE_QT4
+SUBDIRS += qt4
+endif
+if BUILD_SKINS
+SUBDIRS += skins2
+endif
+if HAVE_WINCE
+SUBDIRS += wince
+endif
+
+SOURCES_ncurses = ncurses.c
+SOURCES_fbosd = fbosd.c