From 28dc66c5290db50386c8aeedf33cc4645316cdd6 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Mon, 18 Jul 2022 16:14:12 +1000 Subject: [PATCH] reorg fixup --- socket-sniff/Makefile | 5 +++-- tests/Makefile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/socket-sniff/Makefile b/socket-sniff/Makefile index e86108f..9888195 100644 --- a/socket-sniff/Makefile +++ b/socket-sniff/Makefile @@ -1,11 +1,12 @@ 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 diff --git a/tests/Makefile b/tests/Makefile index ab5fcc2..aa2f5eb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -4,12 +4,13 @@ BIN = ${SRC:.c=} 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} -- 2.39.2