From 8900b3c75142c9701657f20b307d70f106cc3697 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 21 Dec 2015 18:32:50 +0000 Subject: Add NetBSD support files and config_bsd.h to be compatible with NetBSD --- draw/glui.c | 6 +++++- draw/glui.h | 5 ++++- draw/make.mk | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'draw') diff --git a/draw/glui.c b/draw/glui.c index db9837a..e056324 100644 --- a/draw/glui.c +++ b/draw/glui.c @@ -1,5 +1,7 @@ #include "glui.h" +#if defined(OS_LINUX) + #define DEFAULT_TITLE "RADIOLA" #define SCREEN_X 1024 #define SCREEN_Y 480 @@ -167,4 +169,6 @@ int glui_close( glui_t *t ) return ret; -} \ No newline at end of file +} + +#endif \ No newline at end of file diff --git a/draw/glui.h b/draw/glui.h index 0b9f6f3..17c49da 100644 --- a/draw/glui.h +++ b/draw/glui.h @@ -1,5 +1,6 @@ #ifndef __RADIOLA_GLUI_H #define __RADIOLA_GLUI_H +#include "../config.h" #include #include @@ -8,6 +9,8 @@ #include #include +#if defined(OS_LINUX) + #include //to draw waterfall @@ -56,5 +59,5 @@ int glui_waterfall_data( glui_t *w, int len, uint8_t *buf ); glui_color_t glui_waterfall_color( uint8_t d ); //close terminal ui int glui_close( glui_t *t ); - +#endif #endif \ No newline at end of file diff --git a/draw/make.mk b/draw/make.mk index 1c60780..a626ca6 100644 --- a/draw/make.mk +++ b/draw/make.mk @@ -2,6 +2,7 @@ DIR_DRAW = draw/ SOURCES_DRAW += draw/glui.c draw/tui.c draw/ui.c OBJECTS_DRAW += $(SOURCES_DRAW:.c=.o) LDFLAGS += -lGL `sdl2-config --cflags --libs` +LDFLAGS_BSD += OBJECTS_DIR_DRAW += $(subst $(DIR_DRAW),$(BUILD_DIR)$(DIR_DRAW),$(OBJECTS_DRAW)) -- cgit v1.2.3