Commit 82a49f57 by Alex Baines

improve hmmlib makefile when lex missing

parent f3b728ee
......@@ -3,6 +3,9 @@ all: hmml.a example
hmml.a: hmmlib.o
ar rcs [email protected] $<
hmmlib.c: hmmlib.l
lex -t $< > [email protected]
hmmlib.o: hmmlib.c
gcc -std=gnu99 -D_GNU_SOURCE -g -c $< -o [email protected]
......@@ -10,6 +13,6 @@ example: example.c hmml.a
gcc -std=gnu99 -g $^ -o [email protected]
clean:
$(RM) hmml.a hmmlib.o example
$(RM) hmml.a hmmlib.o hmmlib.c example
.PHONY: clean
.PHONY: all clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment