# Compiler
CC = gcc
# Compiler flags
CFLAGS = -Wall -Wextra -pedantic -L/usr/local/lib -lncurses -lncursesw -ltinfo -ldl -lpthread -static
# Executable name
TARGET = rzf
# Source files
SRCS = main.c
# Object files
OBJS = $(SRCS:.c=.o)
# Default target
all: $(TARGET)
# Build the executable
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(CFLAGS)
# Clean up build files
clean:
rm -f $(TARGET) $(OBJS)
.PHONY: all clean