diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -1,5 +1,7 @@ | |||
| 1 | # See LICENSE file for copyright and license details. | 1 | # See LICENSE file for copyright and license details. |
| 2 | 2 | ||
| 3 | include config.mk | ||
| 4 | |||
| 3 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | 5 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 4 | -Wno-unused-parameter -O3 | 6 | -Wno-unused-parameter -O3 |
| 5 | DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ | 7 | DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ |
| @@ -8,13 +10,13 @@ DBGFLAGS = -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ | |||
| 8 | 10 | ||
| 9 | CC = cc | 11 | CC = cc |
| 10 | 12 | ||
| 11 | all: solve | 13 | all: cube.o debugcube.o |
| 12 | 14 | ||
| 13 | cube.o: clean | 15 | cube.o: clean |
| 14 | ${CC} ${CFLAGS} -c -o cube.o src/*.c | 16 | ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c |
| 15 | 17 | ||
| 16 | debugcube.o: | 18 | debugcube.o: |
| 17 | ${CC} ${DBGFLAGS} -c -o debugcube.o src/*.c | 19 | ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c |
| 18 | 20 | ||
| 19 | clean: | 21 | clean: |
| 20 | rm -rf *.o | 22 | rm -rf *.o |
