endif # ifdef windir
endif # ifndef DP_MAKE_TARGET
-CFLAGS_MAKEDEP=-MD
-
# If we're not on compiling for Win32, we need additional information
ifneq ($(DP_MAKE_TARGET), mingw)
DP_ARCH:=$(shell uname)
endif
+##### Extra CFLAGS #####
+
+CFLAGS_MAKEDEP?=-MD
+ifdef DP_FS_BASEDIR
+ CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
+else
+ CFLAGS_FS=
+endif
+
+
##### GNU Make specific definitions #####
DO_LD=$(CC) -o $@ $^ $(LDFLAGS)