SRC=	../../SAN_SRC
LIB=	$(SRC)/libsan.a

CC=	gcc
CFLAGS=	-pedantic -Wall -O -I$(SRC)

all:	xboard-engine

$(LIB):
	$(MAKE) -C $(SRC) lib

xboard-engine:	xboard-engine.c $(LIB)
	$(CC) $(CFLAGS) -o xboard-engine xboard-engine.c $(LIB)

clean:
	rm -f xboard-engine

.PHONY:	all clean
