From 35af599f2b17f453d753a7f30697106fc70afdd6 Mon Sep 17 00:00:00 2001 From: apprentice073 <1776943106@qq.com> Date: Fri, 27 Jun 2025 22:58:36 +0800 Subject: [PATCH] docs: Update Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add header file “chatlib.h” dependency --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe764e7..344d66b 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ all: smallchat-server smallchat-client CFLAGS=-O2 -Wall -W -std=c99 -smallchat-server: smallchat-server.c chatlib.c +smallchat-server: smallchat-server.c chatlib.c chatlib.h $(CC) smallchat-server.c chatlib.c -o smallchat-server $(CFLAGS) -smallchat-client: smallchat-client.c chatlib.c +smallchat-client: smallchat-client.c chatlib.c chatlib.h $(CC) smallchat-client.c chatlib.c -o smallchat-client $(CFLAGS) clean: