2017-02-27 21:42:14 +00:00
|
|
|
all: hmml.a example
|
|
|
|
|
|
|
|
hmml.a: hmmlib.o
|
|
|
|
ar rcs $@ $<
|
|
|
|
|
|
|
|
hmmlib.o: hmmlib.c
|
2018-06-03 14:22:06 +00:00
|
|
|
gcc -std=gnu99 -D_GNU_SOURCE -g -c $< -o $@
|
2017-02-27 21:42:14 +00:00
|
|
|
|
|
|
|
example: example.c hmml.a
|
2018-06-03 14:22:06 +00:00
|
|
|
gcc -std=gnu99 -g $^ -o $@
|
2018-03-14 23:01:50 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) hmml.a hmmlib.o example
|
|
|
|
|
|
|
|
.PHONY: clean
|