CFLAGS  = -Wall -O2
CFLAGS += $(shell pkg-config --cflags easel)
LDLIBS  = $(shell pkg-config --libs easel)

all: readseq

readseq: readseq.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)

check: readseq
	./readseq fasta
	./readseq genbank
	./readseq fasta stockholm.1

clean:
	rm -f readseq

.PHONY: all check clean
