Makefile (773B)
1 include config.mk 2 3 all: cube.o debugcube.o 4 5 cube.s: clean 6 ${CC} -D${ARCH} ${CFLAGS} -c -S -o cube.s src/nissy.c 7 8 cube.o: clean 9 ${CC} -D${ARCH} ${CFLAGS} -c -o cube.o src/nissy.c 10 11 debugcube.o: clean 12 ${CC} -D${ARCH} ${DBGFLAGS} -c -o debugcube.o src/nissy.c 13 14 clean: 15 rm -rf *.o run 16 17 test: debugcube.o 18 CC="${CC} -D${ARCH} ${DBGFLAGS}" ./test/test.sh 19 20 tool: cube.o 21 mkdir -p tools/results 22 CC="${CC} ${CFLAGS}" CUBEOBJ=cube.o ./tools/run_tool.sh 23 24 debugtool: debugcube.o 25 mkdir -p tools/results 26 CC="${CC} ${DBGFLAGS}" CUBEOBJ=debugcube.o ./tools/run_tool.sh 27 28 shell: cube.o 29 mkdir -p tables 30 ${CC} ${CFLAGS} -o run cube.o shell.c 31 32 debugshell: debugcube.o 33 mkdir -p tables 34 ${CC} ${DBGFLAGS} -o run debugcube.o shell.c 35 36 .PHONY: all clean test tool debugtool shell debugshell