+# But use SUBDIRS for other recursive targets.
+SUBDIRS += dotnet
+
+LIBOBJS += dotnet/Invoke.o
+endif
+
+#-----------------------------------------------------------------------------
+# Include the Front panel code?
+
+# we need GTK+ for the front panel
+ifneq "$(GTK_CONFIG)" ""
+ifeq "$(GhcRtsWithFrontPanel)" "YES"
+SRC_HC_OPTS += `$(GTK_CONFIG) --cflags` -optc-DRTS_GTK_FRONTPANEL
+VisCallbacks_CC_OPTS += -Wno-unused
+SRC_MKDEPENDC_OPTS += `$(GTK_CONFIG) --cflags`
+else # GhcRtsWithFrontPanel
+EXCLUDED_SRCS += $(wildcard Vis*.c)
+endif
+else # GTK_CONFIG
+EXCLUDED_SRCS += $(wildcard Vis*.c)
+endif
+
+#-----------------------------------------------------------------------------
+# make depend setup
+
+MKDEPENDC_SRCS = $(C_SRCS) $(HC_SRCS)
+SRC_MKDEPENDC_OPTS += -I. -I../includes
+
+# Hack: we define every way-related option here, so that we get (hopefully)
+# a superset of the dependencies. To do this properly, we should generate
+# a different set of dependencies for each way. Further hack: PROFILING and
+# TICKY_TICKY can't be used together, so we omit TICKY_TICKY for now.
+SRC_MKDEPENDC_OPTS += -DPROFILING -DTHREADED_RTS -DDEBUG
+
+# -----------------------------------------------------------------------------
+# The auto-generated apply code
+
+AUTO_APPLY = AutoApply.hc
+
+ifneq "$(BootingFromHc)" "YES"
+$(AUTO_APPLY): $(GHC_GENAPPLY)
+ @$(RM) $@
+ $(GHC_GENAPPLY) >$@
+endif
+
+EXTRA_SRCS += $(AUTO_APPLY)
+
+CLEAN_FILES += $(AUTO_APPLY)