From 5196208c2d602e5bbb4494a4fcc31b71061e662e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=AE=81?= Date: Wed, 5 Mar 2025 08:46:31 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a282cea --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# +# Makefile for base example +# +include ./make.h + + +all: fork execlp + +fork: fork.o + $(CC) -o fork fork.o + + +execlp: execlp.o + $(CC) -o execlp execlp.o + + +.c.o: + $(CC) $(CFLAGS) $(COMMON_INCLUDE_DIRS) -c $(SRC_DIR)/*.c + +clean: + $(RM) -rf fork execlp *.o + +