refactoring
[rrq/rrqmisc.git] / vector / Makefile
index 7c5268d0b7aa65ce6991d857489795c7c24d75f1..a3feec435d9f38d957cc082763f0d6ad8760801f 100644 (file)
@@ -1,6 +1,10 @@
 LIBRARY = libvector.a
-LIBOBJS = vector.o hashvector.o
-LIBOBJS += integeritem.o  stringitem.o  tupleitem.o
+LIBOBJS = Vector.o HashVector.o
+LIBOBJS += Tuple.o TupleSchema.o integeritem.o stringitem.o Binding.o
+LIBOBJS += BindingTable.o Relation.o Query.o
+LIBOBJS += AssignQuery.o RelationQuery.o
+LIBOBJS += NotQuery.o AndQuery.o OrQuery.o
+#LIBOBJS += View.o
 
 default: $(LIBRARY)
 
@@ -9,6 +13,11 @@ all: default
 CFLAGS = -Wall -g -fmax-errors=1 -I.
 LDLIBS = -lm
 
+%.h:
+       echo "#ifndef ${@:.h=_H}" > $@
+       echo "#define ${@:.h=_H}" >> $@
+       echo "#endif" >> $@
+
 define STDCC
 .INTERMEDIATE: $1.o
 CLEANRM += $1.o