Annotation-System/hmmlib/makefile

19 lines
274 B
Makefile

all: hmml.a example
hmml.a: hmmlib.o
ar rcs $@ $<
hmmlib.c: hmmlib.l
lex -o $@ $<
hmmlib.o: hmmlib.c
gcc -std=gnu99 -D_GNU_SOURCE -g -c $< -o $@
example: example.c hmml.a
gcc -std=gnu99 -g $^ -o $@
clean:
$(RM) hmml.a hmmlib.o hmmlib.c example
.PHONY: all clean