添加 Makefile

This commit is contained in:
2025-03-05 08:46:31 +00:00
parent fa24084b92
commit 5196208c2d

23
Makefile Normal file
View File

@@ -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