X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=htable%2FMakefile;h=e8bd7e1ac9103c47cca7372299ae1bdcc51f0936;hb=da225d6f240bffd052502c0cf8804522514a7e61;hp=4d0ed950bd473f117753633c258192205a73978f;hpb=c417be0f32e0f66e5f0e4a6c3f3224da19f52e4f;p=rrq%2Frrqmisc.git diff --git a/htable/Makefile b/htable/Makefile index 4d0ed95..e8bd7e1 100644 --- a/htable/Makefile +++ b/htable/Makefile @@ -1,18 +1,14 @@ -default: libhtable.a +LIBRARY = librrqhtable.a +LIBOBJS = htable.o -.INTERMEDIATE: htable.o -htable.o: CFLAGS = -Wall -g -htable.o: htable.c +default: $(LIBRARY) example-htable +CLEANRM += $(LIBRARY) -libhtable.a: htable.o - $(AR) r $@ $^ -CLEANRM += libhtable.a +include ../common.mk .INTERMEDIATE: example-htable.o example-htable: CFLAGS = -Wall -g -example-htable: LDLIBS = libhtable.a -example-htable: example-htable.o libhtable.a +example-htable: example-htable.o $(LIBRARY) + CLEANRM += example-htable -clean: - rm -f $(CLEANRM)