fork download
  1.  
Success #stdin #stdout 0.01s 5284KB
stdin
# Variables
CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -g
TARGET = pipe_exec
SRC = main.c
OBJ = main.o

# Default target
all: $(TARGET)

# Link the executable
$(TARGET): $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^

# Compile the source file into an object file
%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

# Clean up the build artifacts
clean:
	rm -f $(OBJ) $(TARGET)

# Phony targets
.PHONY: all clean
stdout
Standard output is empty