diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 18:10:35 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 18:10:35 +0000 |
commit | af49f5cbf103afc3878cb13b70b6549db752c73b (patch) | |
tree | 1770832de3c7e74018e5ade45702d474d2c0b35b /src | |
parent | 7f7898eb7d743eb5741cfa31a25b0c5c68653568 (diff) | |
download | libnsfb-af49f5cbf103afc3878cb13b70b6549db752c73b.tar.gz libnsfb-af49f5cbf103afc3878cb13b70b6549db752c73b.tar.bz2 |
Make libnsfb dynamically detect the available surface libraries
svn path=/trunk/libnsfb/; revision=10972
Diffstat (limited to 'src')
-rw-r--r-- | src/surface/Makefile | 10 | ||||
-rw-r--r-- | src/surface/x.c | 1 |
2 files changed, 9 insertions, 2 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 diff --git a/src/surface/x.c b/src/surface/x.c index 2b8d3bf..a8c06ee 100644 --- a/src/surface/x.c +++ b/src/surface/x.c @@ -7,7 +7,6 @@ */ #define _XOPEN_SOURCE 500 -#define NEED_HINTS_ALLOC #include <stdbool.h> #include <stdlib.h> |