I'm trying to compile multiple files in the same time but I don't know why the client command doesn't compile, but when I run it separately in the terminal it works at it should be.
CC = gcc
UTILS = utils/*.c
ENTRY = main.c
TARGET = bin/main.exe
CLIENT_ENTRY = server/client.c
CLIENT_TARGET = bin/client.exe
SERVER_ENTRY = server/server.c
SERVER_TARGET = bin/server.exe
terminal:
$(CC) $(UTILS) $(ENTRY) -o $(TARGET) -lreadline
client:
$(CC) $(CLIENT_ENTRY) -o $(CLIENT_TARGET)
all: terminal client