h48

A prototype for an optimal Rubik's cube solver, work in progress.
git clone https://git.tronto.net/h48
Download | Log | Files | Refs | README | LICENSE

commit 7b8c1e4634784b57bb6223cd780d5c67f5381d43
parent bf1a9f1211726e2fd42f5aa5424034470ac87751
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon, 14 Apr 2025 13:52:33 +0200

Add libnissy.a target, rename nissy.so to librnissy.so

Diffstat:
M.gitignore | 2++
MMakefile | 9++++++---
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ +a.out .DS_Store cachegrind.out.* config.mk @@ -23,6 +24,7 @@ run.core test/last.* tools/results .vscode +*.a *.o *.so *.s diff --git a/Makefile b/Makefile @@ -8,14 +8,17 @@ nissy.s: nissy.o: ${CC} ${MACROS} ${CFLAGS} -c -o nissy.o src/nissy.c -nissy.so: - ${CC} ${MACROS} ${CFLAGS} -c -shared -o nissy.so src/nissy.c +libnissy.a: nissy.o + ar rcs libnissy.a nissy.o + +libnissy.so: + ${CC} ${MACROS} ${CFLAGS} -c -shared -o libnissy.so src/nissy.c debugnissy.o: ${CC} ${MACROS} ${DBGFLAGS} -c -o debugnissy.o src/nissy.c clean: - rm -rf *.o *.s *.so run debugrun + rm -rf *.out *.o *.s *.so run debugrun test: debugnissy.o CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./test/test.sh