summaryrefslogtreecommitdiff
path: root/Makefile
blob: 12d2617ca044c581ae6ea2960b9e9de85556f3de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CC=gcc
CFLAGS=-I. -pthread -std=c99 -march=native -O3 -lm
CFLAGS+= -Wshadow -Wundef -Wcast-align
CFLAGS+= -Wunreachable-code -Wswitch-enum

generate:
	$(CC) -o chess3 src/chess.c src/vector.c src/chesshelpers.c src/console.c src/fscomch.c $(CFLAGS)

install:
	cp chess3 /usr/local/bin/

clean:
	-rm chess3