Skip to content

Instantly share code, notes, and snippets.

@adamlwgriffiths
Created May 24, 2021 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamlwgriffiths/ea81da744e0a3b2883da6d997f9390da to your computer and use it in GitHub Desktop.
Save adamlwgriffiths/ea81da744e0a3b2883da6d997f9390da to your computer and use it in GitHub Desktop.
libraygui
CXXFLAGS += -fPIC
CXXFLAGS += -O3
CFLAGS=-I../raylib/src -I../raygui/src
all: lib/libraygui.so lib/libphysac.so
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
lib/libraygui.so: src/raygui.o lib
$(CC) -shared src/raygui.o -o $@
lib/libphysac.so: src/physac.o lib
$(CC) -shared src/physac.o -o $@
lib:
mkdir -p $@
clean:
rm lib/*.so src/*.o
#include <raylib.h>
#define PHYSAC_IMPLEMENTATION
#include <physac.h>
#define RAYGUI_IMPLEMENTATION
#define RAYGUI_SUPPORT_ICONS
#define GUI_TEXTBOX_EXTENDED_IMPLEMENTATION
#include <raygui.h>
#include <gui_textbox_extended.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment