summaryrefslogtreecommitdiff
path: root/src/surface/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface/Makefile')
-rw-r--r--src/surface/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/surface/Makefile b/src/surface/Makefile
index 3abbfb6..6eddcb6 100644
--- a/src/surface/Makefile
+++ b/src/surface/Makefile
@@ -1,4 +1,12 @@
# Sources
-DIR_SOURCES := surface.c sdl.c vnc.c able.c ram.c linux.c x.c
+DIR_SOURCES := surface.c vnc.c able.c ram.c linux.c
+
+ifeq ($(NSFB_SDL_AVAILABLE),yes)
+ DIR_SOURCES := $(DIR_SOURCES) sdl.c
+endif
+
+ifeq ($(NSFB_XCB_AVAILABLE),yes)
+ DIR_SOURCES := $(DIR_SOURCES) x.c
+endif
include build/makefiles/Makefile.subdir