From 548a225fb616ee66afb8411f282d44148f67898c Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 30 Mar 2023 13:55:48 +0200 Subject: test: moving shareable function in a separate file --- tests/unit/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/unit/Makefile') diff --git a/tests/unit/Makefile b/tests/unit/Makefile index aad8549..1c3a413 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile @@ -13,9 +13,9 @@ HEADERS_FILTER := $(COOKER_DIR)/filter.h $(DBG_DIR)/disasm.h $(COMMON_DIR)/commo HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h SRCS_OP_CALL := $(OP_DIR)/operations.c -HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h \ - $(COMMON_DIR)/common.h -SRCS_OP := $(COMMON_DIR)/common.c $(OP_DIR)/operations.c +HEADERS_OP := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h \ + $(COMMON_DIR)/common.h testutil.h +SRCS_OP := $(COMMON_DIR)/common.c $(OP_DIR)/operations.c util.c TARGET := $(shell $(CC) -dumpmachine) TARGET_ARCH := $(shell echo $(TARGET) | cut -f1 -d- | tr [A-Z] [a-z]) @@ -43,7 +43,7 @@ test-op-call: test_op_call.c $(SRCS_OP_CALL) $(HEADERS_OP_CALL) test_op_call.c ./test-op-call -test-operations: test_operations.c $(SRCS_OP) $(HEADERS_OP_CALL) +test-operations: test_operations.c $(SRCS_OP) $(HEADERS_OP) $(CC) $(CFLAGS) -o test-operations $(SRCS_OP) \ test_operations.c ./test-operations -- cgit v1.2.3