added the qvector variant
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 25 Jun 2022 22:54:37 +0000 (08:54 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 25 Jun 2022 22:54:37 +0000 (08:54 +1000)
pvector/Makefile

index 170aa4a63caa444245ea90f3ff1a89071939d479..be1ab8638087db64e001e412f92de9cd299a1367 100644 (file)
@@ -1,16 +1,22 @@
-default: libpvector.a
+default: libpvector.a 
 
 all: default example-hashvector example-pvector
 
 #.INTERMEDIATE: pvector.o
 pvector.o: CFLAGS = -Wall -g
 pvector.o: pvector.c | pvector.h
+CLEANRM += pvector.o
 
-#.INTERMEDIATE: pvector.o
+#.INTERMEDIATE: qvector.o
+qvector.o: CFLAGS = -Wall -g
+qvector.o: qvector.c | qvector.h
+CLEANRM += qvector.o
+
+#.INTERMEDIATE: hashvector.o
 hashvector.o: CFLAGS = -Wall -g
 hashvector.o: hashvector.c | pvector.h hashvector.h
 
-libpvector.a: pvector.o hashvector.o
+libpvector.a: pvector.o qvector.o hashvector.o
        $(AR) r $@ $^
 CLEANRM += libpvector.a