From 08f5d6e00ff12502cea62e7410da3df0cc18ab3b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 20 Mar 2013 11:49:00 +0000 Subject: Wayland surface handler with mouse input based on X surface handler --- src/surface/Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/surface/Makefile') diff --git a/src/surface/Makefile b/src/surface/Makefile index 012d9cd..ad23cc4 100644 --- a/src/surface/Makefile +++ b/src/surface/Makefile @@ -1,16 +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 +DIR_SOURCES := $(SURFACE_HANDLER_yes) include $(NSBUILD)/Makefile.subdir -- cgit v1.2.3