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

Makefile (1101B)


      1 include config.mk
      2 
      3 all: nissy.o
      4 
      5 nissy.s:
      6 	${CC} ${MACROS} ${CFLAGS} -c -S -o nissy.s src/nissy.c
      7 
      8 nissy.o:
      9 	${CC} ${MACROS} ${CFLAGS} -c -o nissy.o src/nissy.c
     10 
     11 nissy.so:
     12 	${CC} ${MACROS} ${CFLAGS} -c -shared -o nissy.so src/nissy.c
     13 
     14 debugnissy.o:
     15 	${CC} ${MACROS} ${DBGFLAGS} -c -o debugnissy.o src/nissy.c
     16 
     17 clean:
     18 	rm -rf *.o *.s *.so run debugrun
     19 
     20 test: debugnissy.o
     21 	CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./test/test.sh
     22 
     23 tool: nissy.o
     24 	mkdir -p tables tools/results
     25 	CC="${CC} ${MACROS} ${CFLAGS}" OBJ=nissy.o ./tools/tool.sh
     26 
     27 debugtool: debugnissy.o
     28 	mkdir -p tables tools/results
     29 	CC="${CC} ${MACROS} ${DBGFLAGS}" OBJ=debugnissy.o ./tools/tool.sh
     30 
     31 shell: nissy.o
     32 	mkdir -p tables
     33 	${CC} ${MACROS} ${CFLAGS} -o run nissy.o shell/shell.c
     34 
     35 debugshell: debugnissy.o
     36 	mkdir -p tables
     37 	${CC} ${MACROS} ${DBGFLAGS} -o debugrun debugnissy.o shell/shell.c
     38 
     39 shelltest: debugshell
     40 	./shell/test.sh
     41 
     42 python: nissy.o
     43 	${CC} ${CFLAGS} -shared ${PYTHON3_INCLUDES} -o nissy_python_module.so \
     44 		nissy.o python/nissy_module.c
     45 
     46 .PHONY: all clean test tool debugtool shell debugshell shelltest python