summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-21 18:32:50 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-21 18:32:50 +0000
commit8900b3c75142c9701657f20b307d70f106cc3697 (patch)
tree2163fb380a5f66ebe2962a7dd99ee546419bb3d4 /draw
parent9381ae971066a42ad00def424c29370ced09eb60 (diff)
downloadradiola-8900b3c75142c9701657f20b307d70f106cc3697.tar.gz
radiola-8900b3c75142c9701657f20b307d70f106cc3697.zip
Add NetBSD support files and config_bsd.h to be compatible with NetBSD
Diffstat (limited to 'draw')
-rw-r--r--draw/glui.c6
-rw-r--r--draw/glui.h5
-rw-r--r--draw/make.mk1
3 files changed, 10 insertions, 2 deletions
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 <stdio.h>
#include <stdint.h>
@@ -8,6 +9,8 @@
#include <termios.h>
#include <unistd.h>
+#if defined(OS_LINUX)
+
#include <SDL2/SDL.h>
//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))