summaryrefslogtreecommitdiff
path: root/src/surface/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2013-03-21 18:05:54 +0000
committerVincent Sanders <vincent.sanders@collabora.co.uk>2013-03-21 18:05:54 +0000
commitf75a698b15f978c854cc424ee79a38e157165091 (patch)
tree675badfbfadf62498370333cab889f7bb5cea41e /src/surface/Makefile
parent4b1e1482c42b31277acf96377013e716521982aa (diff)
downloadlibnsfb-f75a698b15f978c854cc424ee79a38e157165091.tar.gz
libnsfb-f75a698b15f978c854cc424ee79a38e157165091.tar.bz2
initial wayland surface connection
Diffstat (limited to 'src/surface/Makefile')
-rw-r--r--src/surface/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/surface/Makefile b/src/surface/Makefile
index 332d81d..ad23cc4 100644
--- a/src/surface/Makefile
+++ b/src/surface/Makefile
@@ -1,20 +1,16 @@
# Sources
-DIR_SOURCES := surface.c able.c ram.c linux.c
-ifeq ($(NSFB_SDL_AVAILABLE),yes)
- DIR_SOURCES := $(DIR_SOURCES) sdl.c
-endif
+# Common surface code and heap based surface handler
+SURFACE_HANDLER_yes := surface.c ram.c
-ifeq ($(NSFB_XCB_AVAILABLE),yes)
- DIR_SOURCES := $(DIR_SOURCES) x.c
-endif
+# optional surface handlers
+SURFACE_HANDLER_$(NSFB_ABLE_AVAILABLE) += able.c
+SURFACE_HANDLER_$(NSFB_LINUX_AVAILABLE) += linux.c
+SURFACE_HANDLER_$(NSFB_SDL_AVAILABLE) += sdl.c
+SURFACE_HANDLER_$(NSFB_XCB_AVAILABLE) += x.c
+SURFACE_HANDLER_$(NSFB_VNC_AVAILABLE) += vnc.c
+SURFACE_HANDLER_$(NSFB_WLD_AVAILABLE) += wld.c
-ifeq ($(NSFB_VNC_AVAILABLE),yes)
- DIR_SOURCES := $(DIR_SOURCES) vnc.c
-endif
-
-ifeq ($(NSFB_WLD_AVAILABLE),yes)
- DIR_SOURCES := $(DIR_SOURCES) wl.c
-endif
+DIR_SOURCES := $(SURFACE_HANDLER_yes)
include $(NSBUILD)/Makefile.subdir