diff --git a/misc/CCicon_rpi b/misc/CCicon_rpi new file mode 100644 index 000000000..a07b06d93 Binary files /dev/null and b/misc/CCicon_rpi differ diff --git a/readme.md b/readme.md index de23e468e..b8d4afb0f 100644 --- a/readme.md +++ b/readme.md @@ -66,7 +66,7 @@ Install appropriate libs as required. For ubuntu these are: libx11-dev, libgl1-m ##### Raspberry pi Although the regular linux compiliation flags will work fine, to take full advantage of the hardware: -```gcc *.c -o ClassiCube -DCC_BUILD_GLMODERN -DCC_BUILD_GLES -DCC_BUILD_EGL -lm -lpthread -lX11 -lEGL -lGLESv2 -lcurl -lopenal -ldl``` +```gcc *.c -o ClassiCube -DCC_BUILD_RPI -lm -lpthread -lX11 -lEGL -lGLESv2 -lcurl -lopenal -ldl``` #### Mac OSX (32 bit) diff --git a/src/Core.h b/src/Core.h index b770a2ad0..a9ab84070 100644 --- a/src/Core.h +++ b/src/Core.h @@ -164,6 +164,11 @@ typedef struct TextureRec_ { float U1, V1, U2, V2; } TextureRec; #define CC_BUILD_X11 #define CC_BUILD_CURL #define CC_BUILD_OPENAL +#if defined CC_BUILD_RPI +#define CC_BUILD_GLMODERN +#define CC_BUILD_GLES +#define CC_BUILD_EGL +#endif #elif defined __APPLE__ #define CC_BUILD_OSX #define CC_BUILD_POSIX