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

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

all:	matefinder

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

matefinder:	matefinder.c $(LIB)
	$(CC) $(CFLAGS) -o matefinder matefinder.c $(LIB)

clean:
	rm -f matefinder

.PHONY:	all clean
