From 230c06a1263f7477d28d58ffa73a2e9e6cd4904d Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 15 Aug 2016 15:02:17 +0200 Subject: [PATCH] Updating Mac OS X board files --- boards/base/OSX/example/Makefile | 6 +++--- boards/base/OSX/example/readme.txt | 2 -- boards/base/OSX/readme.txt | 17 ++++++++++++++--- 3 files changed, 17 insertions(+), 8 deletions(-) delete mode 100644 boards/base/OSX/example/readme.txt diff --git a/boards/base/OSX/example/Makefile b/boards/base/OSX/example/Makefile index d4ea932e..cce88c13 100644 --- a/boards/base/OSX/example/Makefile +++ b/boards/base/OSX/example/Makefile @@ -26,7 +26,7 @@ ARCH = SRCFLAGS = -ggdb -O0 -CFLAGS = +CFLAGS = `sdl2-config --libs --cflags` CXXFLAGS = ASFLAGS = LDFLAGS = @@ -35,8 +35,8 @@ SRC = OBJS = DEFS = LIBS = -INCPATH = /opt/X11/include -LIBPATH = /opt/X11/lib +INCPATH = +LIBPATH = ############################################################################################## # These should be at the end diff --git a/boards/base/OSX/example/readme.txt b/boards/base/OSX/example/readme.txt deleted file mode 100644 index 66491238..00000000 --- a/boards/base/OSX/example/readme.txt +++ /dev/null @@ -1,2 +0,0 @@ -Copy these files into your own project directory and alter them to suite. - diff --git a/boards/base/OSX/readme.txt b/boards/base/OSX/readme.txt index df033cbe..403f8bb9 100644 --- a/boards/base/OSX/readme.txt +++ b/boards/base/OSX/readme.txt @@ -1,7 +1,18 @@ -This directory contains the interface for OSX using X. +This directory contains the interface for Mac OS X using SDL. On this board uGFX currently supports: - - GDISP via the X driver - - GINPUT-touch via the X driver + - GDISP via the SDL driver + - GINPUT-touch via the SDL driver + - GINPUT-keyboard via the SDL driver + + +The folowing packages are required to run uGFX using this driver on +a 64-bit Mac OS X machine using SDL: + + sdl2 + + +The following should be added to the CFLAGS of the target makefile: + CFLAGS = `sdl2-config --libs --cflags` + There is an example Makefile and project in the examples directory.