chore: initialize project scaffold with Makefile, .gitignore, README, and main.c skeleton
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user