From a4b8aeee2edc03d8cc36409e4ba087572f09e122 Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 4 Feb 2019 14:07:01 -0800 Subject: [PATCH 1/3] Fixed the makefile to use the shared object library for the target link. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0ebfe36..6de9852 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ print_obj: wireshark: $(WIRESHARK_TARGET) -$(TEST_TARGET): $(LIB_TARGET) $(OBJ) $(TEST_OBJ) +$(TEST_TARGET): $(LIB_SO_TARGET) $(OBJ) $(TEST_OBJ) $(CC) $(CFLAGS) -L. -lrmc $^ -o $@ $(LIB_TARGET): $(OBJ) @@ -69,14 +69,14 @@ $(LIB_TARGET): $(OBJ) $(LIB_SO_TARGET): $(OBJ) $(CC) -shared -o $(LIB_SO_TARGET) $(OBJ) -etags: +etags: @rm -f TAGS find . -name '*.h' -o -name '*.c' -print | etags - clean: rm -f $(OBJ) *~ $(TEST_TARGET) $(TEST_OBJ) $(WIRESHARK_TARGET) $(LIB_TARGET) $(LIB_SO_TARGET) -$(OBJ): $(HDR) Makefile +$(OBJ): $(HDR) Makefile $(TEST_OBJ): $(HDR) Makefile From 9db0ea02de0409127ee6121acb755ce63bab041d Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 4 Feb 2019 14:07:01 -0800 Subject: [PATCH 2/3] Fixed the makefile to use the shared object library for the target link. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9730269..eee8750 100644 --- a/Makefile +++ b/Makefile @@ -60,9 +60,8 @@ print_obj: wireshark: $(WIRESHARK_TARGET) - -$(TEST_TARGET): $(LIB_TARGET) $(OBJ) $(TEST_OBJ) - $(CC) --static $(CFLAGS) -L. -lrmc $^ -o $@ +$(TEST_TARGET): $(LIB_SO_TARGET) $(OBJ) $(TEST_OBJ) + $(CC) $(CFLAGS) -L. -lrmc $^ -o $@ $(LIB_TARGET): $(OBJ) ar q $(LIB_TARGET) $(OBJ) From 474fa3a90fc9251ec2be878641b7531db1187606 Mon Sep 17 00:00:00 2001 From: Jack Sanchez Date: Tue, 12 Feb 2019 13:57:49 -0800 Subject: [PATCH 3/3] Set ar=>$(AR) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eee8750..b26414a 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ $(TEST_TARGET): $(LIB_SO_TARGET) $(OBJ) $(TEST_OBJ) $(CC) $(CFLAGS) -L. -lrmc $^ -o $@ $(LIB_TARGET): $(OBJ) - ar q $(LIB_TARGET) $(OBJ) + $(AR) q $(LIB_TARGET) $(OBJ) $(LIB_SO_TARGET): $(OBJ) $(CC) -shared -o $(LIB_SO_TARGET) $(OBJ)