Implement a new caching system to make repeated runs much much faster.

This commit is contained in:
Squibid 2025-11-14 04:02:16 -05:00
parent 4a008a82b0
commit 5e0e140b09
Signed by: squibid
GPG key ID: BECE5684D3C4005D
8 changed files with 252 additions and 44 deletions

View file

@ -2,13 +2,12 @@ include config.mk
# flags and incs
PKGS = $(GITLIB)
CFLAGS = -DVERSION=\"$(VERSION)\" -Wall -pedantic -O3 $(GIT) $(ERR) $(EXPLAIN)
CFLAGS = -DVERSION=\"$(VERSION)\" -Wall -pedantic -O3 $(GIT) $(GITHASH) $(ERR) $(EXPLAIN)
LIBS = `$(PKG_CONFIG) --libs --cflags $(PKGS)`
all: XD
XD: XD.o
XD: XD.o hash.o helpers.o
$(CC) *.o $(CFLAGS) $(LIBS) -o $@
XD.o: XD.c
clean:
rm -f XD *.o