Make a simple sleep clone

This commit is contained in:
Fabio Scotto di Santolo
2025-09-21 14:26:30 +02:00
parent af39524b33
commit b2342bf8fd
2 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
CC := gcc
CFLAGS := -Wall -Wextra -pedantic -std=c11 -pthread -g
TARGET := sleep
SRC := main.c
OBJS := $(SRC:.c=.o)
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(TARGET) $(OBJS)