# Makefile for Tigerbot AI

CC=gcc
CFLAGS=-Wall -O2
LDFLAGS=-ltclient

# Specify path to tclient here if necessary
CFLAGS+=-I../../tclient
LDFLAGS+=-L../../tclient -Wl,-rpath,../../tclient

all: tetrinet_ai

btetris.c: btetris.h

tetrinet_ai: tigerbot.o btetris.o 
	$(CC) -o tetrinet_ai $(LDFLAGS) tigerbot.o btetris.o

.PHONY:	clean

clean:
	rm -rf *.o tetrinet_ai

