chess

Terminal based Chess trainer using Anki
git clone git://git.dimitrijedobrota.com/chess.git
Log | Files | Refs

commit 6690067cb0f6b8e533ca4f71689c91066665b3ec
parent 9ec9201144172469c95a31b2fc29e40dd3f4f4ce
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Thu, 15 Sep 2022 11:54:31 +0200

Add bin and obj directories to git

Diffstat:
M.gitignore | 2+-
MMakefile | 6++++--
Abin/dir.info | 0
Aobj/dir.info | 0
4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,8 +1,8 @@ .ccls-cache/ .ccls docs/* -bin bin/* +!bin/dir.info # Prerequisites *.d diff --git a/Makefile b/Makefile @@ -6,7 +6,7 @@ NAME = chess CC = gcc CFLAGS = -I include -LDFLAGS =-lcurl -ljson-c -lm +LDFLAGS =-lcurl -ljson-c SRC = src OBJ = obj @@ -26,6 +26,8 @@ ifeq ($(NO_UNICODE),Y) CFLAGS += -D NO_UNICODE endif +LDFLAGS += -lm + all: $(TRGT) $(TRGT): $(OBJS) @@ -35,7 +37,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(CC) -c $< -o $@ $(CFLAGS) $(LDFLAGS) clean: - -$(RM) $(BIN)/* $(OBJ)/* + -$(RM) $(TRGT) $(OBJS) help: @echo "Chess Anki Trainer" diff --git a/bin/dir.info b/bin/dir.info diff --git a/obj/dir.info b/obj/dir.info