add yworker in y_socket

This commit is contained in:
2025-05-22 23:21:35 +02:00
parent 52e6353469
commit e449185394
2 changed files with 11 additions and 3 deletions
@@ -22,6 +22,10 @@
#include "y_socket_t/y_node_t.h"
#include "y_worker_t/y_worker_t.h"
#include "y_worker_t/y_task_t.h"
#define BUF_SIZE 500
#define type4
+7 -3
View File
@@ -6,10 +6,11 @@ NAME_TEST=is_good
CC=gcc
YTESTDIR=$(PWD)/../../ytest_t
YLISTDIR=$(PWD)/../../list_t
YWORKDIR=$(PWD)/../../y_worker_t
ROOT_DIR=$(PWD)/..
INCLUDE_DIR=$(ROOT_DIR)/include
CFLAGS=-I$(INCLUDE_DIR) -I$(YTESTDIR)/include_ytest/include -I$(YLISTDIR)/src
CFLAGS=-I$(INCLUDE_DIR) -I$(YTESTDIR)/include_ytest/include -I$(YLISTDIR)/src -I$(YWORKDIR)/include
LDFLAGS=-L$(YTESTDIR) -lytest -lpthread -lm -lOpenCL
#SRC_DIR=$(ROOT_DIR)/src
@@ -33,11 +34,14 @@ YNODESRC_O=$(YNODESRC:.c=.o)
YLISTSRC=$(YLISTDIR)/src/list_t/list_t.c
YLISTSRC_O=$(YLISTSRC:.c=.o)
YWORKSRC_0=$(YWORKDIR)/src/y_worker_t/y_worker_t.o
YTASKSRC_0=$(YWORKDIR)/src/y_worker_t/y_task_t.o
TOPTARGETS := all clean
DEPS=$(YTESTDIR) $(YLISTDIR) $(ROOT_DIR)
DEPS=$(YTESTDIR) $(YLISTDIR) $(YWORKDIR) $(ROOT_DIR)
OBJ=$(YSOCKSRC_O) $(YNODESRC_O) $(YLISTSRC_O)
OBJ=$(YSOCKSRC_O) $(YNODESRC_O) $(YLISTSRC_O) $(YWORKSRC_0) $(YTASKSRC_0)
LIB_YTEST=$(YTESTDIR)/libytest.so