From 978d1cb93c4ba16d9ae5e22c8f7c9a2812221df4 Mon Sep 17 00:00:00 2001 From: BeardedBread Date: Thu, 16 Sep 2021 10:37:03 +0800 Subject: [PATCH] Add Makefile and tweak makefile --- Makefile | 2 +- README.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/Makefile b/Makefile index 0cb13b3..725b61d 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ BUILD_DIR = build/ OBJ = $(patsubst %.c,$(BUILD_DIR)%.o,$(SRC_FILES)) DEP = $(OBJ:.o=.d) -RAYLIB_DIR = $(HOME)/Documents/Coding/raylib/build/ +RAYLIB_DIR ?= $(HOME)/Documents/Coding/raylib/build/ LIB_DIRS = -L$(RAYLIB_DIR)lib INCLUDE_DIRS = -I$(RAYLIB_DIR)include -I. LIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 diff --git a/README.md b/README.md new file mode 100644 index 0000000..303d3a6 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# FABRIK in C +Implementation of 2D FABRIK in C. Drawing and input handling are done with [raylib](https://www.raylib.com/). + +## Build instruction +1. Install raylib +2. Set the RAYLIB\_DIR in the Makefile +3. `make` + +## Usage +- LMB to set the root position +- `f` to toggle mouse following +- `o` and `p` to decrease and increase the length respectively + +## Disclaimer +This is a toy program. Probably won't get any more serious than this.