default: socket-sniff
-RRQLIBS = typing vector
+RRQLIBS = vector typing
INCDIRS = $(addprefix -I../,$(RRQLIBS))
+$(foreach L,$(RRQLIBS),$(eval LDLIBS += -L../$L -lrrq$L))
CFLAGS = -Wall $(INCDIRS)
CFLAGS += -g -fmax-errors=1
-LDLIBS = -L../vector -lvector -lm
+LDLIBS += -lm
.INTERMEDIATE: socket-sniff.o
default: ${BIN}
-RRQLIBS = typing vector logic
+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 = -L../vector -lvector -lm
+LDLIBS += -lm
.INTERMEDIATE: ${OBJ}