projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup and commenting
[rrq/rrqmisc.git]
/
pvector
/
Makefile
diff --git
a/pvector/Makefile
b/pvector/Makefile
index 10beb6ffffd9f767bc480cd1b52d8660ff6eb62b..ea0496ce246bfdc1462a051a7cc6115ab00256e4 100644
(file)
--- a/
pvector/Makefile
+++ b/
pvector/Makefile
@@
-4,7
+4,11
@@
default: libpvector.a
pvector.o: CFLAGS = -Wall -g
pvector.o: pvector.c | pvector.h
pvector.o: CFLAGS = -Wall -g
pvector.o: pvector.c | pvector.h
-libpvector.a: pvector.o
+#.INTERMEDIATE: pvector.o
+hashvector.o: CFLAGS = -Wall -g
+hashvector.o: hashvector.c | pvector.h hashvector.h
+
+libpvector.a: pvector.o hashvector.o
$(AR) r $@ $^
CLEANRM += libpvector.a
$(AR) r $@ $^
CLEANRM += libpvector.a
@@
-14,5
+18,11
@@
example-pvector: LDLIBS = libpvector.a
example-pvector: example-pvector.o libpvector.a
CLEANRM += example-pvector
example-pvector: example-pvector.o libpvector.a
CLEANRM += example-pvector
+#.INTERMEDIATE: example-hashvector.o
+example-hashvector: CFLAGS = -Wall -g
+example-hashvector: LDLIBS = libpvector.a
+example-hashvector: example-hashvector.o libpvector.a
+CLEANRM += example-hashvector
+
clean:
rm -f $(CLEANRM)
clean:
rm -f $(CLEANRM)