projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added compilation variant
[rrq/rrqmisc.git]
/
tests
/
Makefile
diff --git
a/tests/Makefile
b/tests/Makefile
index b050eda33cc87e465f55d3558c8a2a05945d58c8..aa2f5eb4a54ea491d4bec66145a19f6cdfa5ca75 100644
(file)
--- a/
tests/Makefile
+++ b/
tests/Makefile
@@
-4,8
+4,13
@@
BIN = ${SRC:.c=}
default: ${BIN}
default: ${BIN}
-CFLAGS = -Wall -I../vector -g -fmax-errors=1
-LDLIBS = -L../vector -lvector
+RRQLIBS = logic vector typing
+INCDIRS = $(addprefix -I../,$(RRQLIBS))
+$(foreach L,$(RRQLIBS),$(eval LDLIBS += -L../$L -lrrq$L))
+
+CFLAGS = -Wall $(INCDIRS)
+CFLAGS += -g -fmax-errors=1
+LDLIBS += -lm
.INTERMEDIATE: ${OBJ}
.INTERMEDIATE: ${OBJ}