+# compiling straight C files: use all the HC_OPTS, plus any extra options in
+# $(GhcRtsCcOpts).
+SRC_CC_OPTS += $(GhcRtsCcOpts)
+SRC_CC_OPTS += $(HC_OPTS)
+
+#-----------------------------------------------------------------------------
+# Include the Front panel code?
+
+SRCS_RTS_C := $(filter-out Vis%.c, $(SRCS_RTS_C))
+
+# we need GTK+ for the front panel
+ifneq "$(GTK_CONFIG)" ""
+ifeq "$(GhcRtsWithFrontPanel)" "YES"
+SRC_HC_OPTS += `$(GTK_CONFIG) --cflags` -optc-DRTS_GTK_FRONTPANEL
+SRCS_RTS_C := $(SRCS_RTS_C) $(wildcard Vis*.c)
+VisCallbacks_CC_OPTS += -optc-Wno-unused
+endif # GhcRtsWithFrontPanel
+endif # GTK_CONFIG
+
+#-----------------------------------------------------------------------------
+
+C_SRCS = $(SRCS_RTS_C) $(SRCS_RTS_HC) $(SRCS_RTS_S)