projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated vector ABI
[rrq/rrqmisc.git]
/
htable
/
Makefile
diff --git
a/htable/Makefile
b/htable/Makefile
index 236afb871e99c4ccaf190dddf00432f1240b4b9c..e8bd7e1ac9103c47cca7372299ae1bdcc51f0936 100644
(file)
--- 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
-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
.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
CLEANRM += example-htable
-clean:
- rm -f $(CLEANRM)