X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=tests%2FMakefile;h=aa2f5eb4a54ea491d4bec66145a19f6cdfa5ca75;hb=refs%2Fheads%2Fmaster;hp=b050eda33cc87e465f55d3558c8a2a05945d58c8;hpb=a0be49ff8fda77c328424c09d6d0ad4a9f7e8f66;p=rrq%2Frrqmisc.git diff --git a/tests/Makefile b/tests/Makefile index b050eda..aa2f5eb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -4,8 +4,13 @@ BIN = ${SRC:.c=} 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}