projects
/
rrq
/
rrqmisc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use hashvector for knockouts
[rrq/rrqmisc.git]
/
vector
/
Makefile
1
LIBRARY = libvector.a
2
LIBOBJS = vector.o hashvector.o
3
LIBOBJS += integeritem.o stringitem.o tupleitem.o relation.o
4
5
default: $(LIBRARY)
6
7
all: default
8
9
CFLAGS = -Wall -g -fmax-errors=1 -I.
10
LDLIBS = -lm
11
12
define STDCC
13
.INTERMEDIATE: $1.o
14
CLEANRM += $1.o
15
$1.o: $1.c | $1.h
16
endef
17
18
$(foreach OBJ,$(LIBOBJS:.o=),$(eval $(call STDCC,$(OBJ))))
19
20
CLEANRM += $(LIBRARY)
21
$(LIBRARY): $(LIBOBJS)
22
$(AR) r $@ $^
23
24
clean:
25
rm -f $(CLEANRM)