mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Fix makefile for haiku OS and add direct compile instructions for haiku OS into readme
This commit is contained in:
parent
c2fbfca0d3
commit
8e57167ba3
14
readme.md
14
readme.md
@ -1,4 +1,4 @@
|
||||
ClassiCube is a custom Minecraft Classic and ClassiCube client written in C that works on Windows, OSX, Linux, BSD, Solaris, and in a browser.
|
||||
ClassiCube is a custom Minecraft Classic and ClassiCube client written in C that works on Windows, OSX, Linux, BSD, Solaris, Haiku, and in a browser.
|
||||
**It is not affiliated with (or supported by) Mojang AB, Minecraft, or Microsoft in any way.**
|
||||
|
||||

|
||||
@ -68,11 +68,11 @@ Although the regular linux compiliation flags will work fine, to take full advan
|
||||
|
||||
```gcc *.c -o ClassiCube -DCC_BUILD_RPI -lm -lpthread -lX11 -lEGL -lGLESv2 -lcurl -lopenal -ldl```
|
||||
|
||||
#### Mac OSX (32 bit)
|
||||
#### macOS (32 bit)
|
||||
|
||||
```gcc *.c -o ClassiCube -framework Carbon -framework AGL -framework OpenAL -framework OpenGL -lcurl```
|
||||
|
||||
#### Mac OSX (64 bit)
|
||||
#### macOS (64 bit)
|
||||
|
||||
```gcc *.c -o ClassiCube -framework Cocoa -framework OpenAL -framework OpenGL -lcurl -lobjc```
|
||||
|
||||
@ -96,6 +96,14 @@ Install libexecinfo package if needed.
|
||||
|
||||
NOTE: You have to change entry->d_type == DT_DIR to Directory_Exists(&path) (TODO do this automatically)
|
||||
|
||||
#### Haiku
|
||||
|
||||
Install libsdl2_devel, openal_devel, and libexecinfo_devel package if needed.
|
||||
|
||||
```gcc *.c -o ClassiCube -lm -lcurl -lexecinfo -lopenal -lGL -lnetwork -lSDL2```
|
||||
|
||||
NOTE: You have to change entry->d_type == DT_DIR to Directory_Exists(&path) (TODO do this automatically)
|
||||
|
||||
#### Web
|
||||
|
||||
```emcc *.c -s FETCH=1 -s ALLOW_MEMORY_GROWTH=1 --preload-file texpacks/default.zip```
|
||||
|
@ -214,6 +214,7 @@ typedef struct TextureRec_ { float U1, V1, U2, V2; } TextureRec;
|
||||
#define CC_BUILD_GL
|
||||
#define CC_BUILD_CURL
|
||||
#define CC_BUILD_OPENAL
|
||||
#define CC_BUILD_SDL
|
||||
#elif defined __EMSCRIPTEN__
|
||||
#define CC_BUILD_WEB
|
||||
#define CC_BUILD_POSIX
|
||||
|
@ -64,7 +64,7 @@ endif
|
||||
ifeq ($(PLAT),haiku)
|
||||
CFLAGS=-g -pipe
|
||||
LDFLAGS=-g
|
||||
LIBS=-lcurl -lm -lexecinfo -lopenal -lGL -lnetwork
|
||||
LIBS=-lcurl -lm -lexecinfo -lopenal -lGL -lnetwork -lSDL2
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
@ -89,7 +89,7 @@ const cc_result ReturnCode_SocketWouldBlock = EWOULDBLOCK;
|
||||
#include <mach-o/dyld.h>
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
#elif defined CC_BUILD_HAIKU
|
||||
#define CC_BUILD_HAIKU
|
||||
#define CC_BUILD_UNIX
|
||||
/* TODO: Use open instead of xdg-open */
|
||||
#include <kernel/image.h>
|
||||
#elif defined CC_BUILD_WEB
|
||||
|
Loading…
x
Reference in New Issue
Block a user