diff options
Diffstat (limited to 'src/surface/Makefile')
-rw-r--r-- | src/surface/Makefile | 20 |
1 files changed, 10 insertions, 10 deletions
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 |