improve hmmlib makefile when lex missing

This commit is contained in:
Alex Baines 2018-08-09 19:55:44 +01:00
parent f3b728ee6f
commit 82a49f57e9
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@ all: hmml.a example
hmml.a: hmmlib.o
ar rcs $@ $<
hmmlib.c: hmmlib.l
lex -t $< > $@
hmmlib.o: hmmlib.c
gcc -std=gnu99 -D_GNU_SOURCE -g -c $< -o $@
@ -10,6 +13,6 @@ example: example.c hmml.a
gcc -std=gnu99 -g $^ -o $@
clean:
$(RM) hmml.a hmmlib.o example
$(RM) hmml.a hmmlib.o hmmlib.c example
.PHONY: clean
.PHONY: all clean