all: hmml.a example

hmml.a: hmmlib.o
	ar rcs $@ $<

hmmlib.o: hmmlib.c
	gcc -D_GNU_SOURCE -g -c $< -o $@

example: example.c hmml.a
	gcc -g $^ -o $@
	
clean:
	$(RM) hmml.a hmmlib.o example

.PHONY: clean