cubecore

A library of core functions for working with 3x3x3 Rubik's cubes
git clone https://git.tronto.net/cubecore
Download | Log | Files | Refs | README | LICENSE

Makefile (515B)


      1 CFLAGS = -std=c99 -pedantic -Wall -Wextra -O3
      2 DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG
      3 
      4 CC = cc
      5 
      6 all: cleancube cube.o
      7 
      8 cleancube:
      9 	rm -rf cube.o
     10 
     11 cube.o:
     12 	${CC} ${CFLAGS} -c -o cube.o cube.c
     13 
     14 cleandebug:
     15 	rm -rf debugcube.o
     16 
     17 debugcube.o:
     18 	${CC} ${DBGFLAGS} -c -o debugcube.o cube.c
     19 
     20 clean:
     21 	rm -rf *.o
     22 
     23 test: cleandebug debugcube.o
     24 	CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh
     25 
     26 benchmark: cube.o
     27 	CUBETYPE=${CUBETYPE} ./benchmark/bench.sh
     28 
     29 .PHONY: all clean cleancube cleandebug test benchmark