Files
wt 89ac7eb5b4
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 5s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 7s
initial commit
2026-02-09 16:47:11 +07:00

21 lines
331 B
Makefile

CC = gcc
CFLAGS = -Wall -g -std=gnu2x
LDFLAGS =
LIBS =
INCLUDES =
SRCS = $(wildcard src/*.c)
OBJS = $(SRCS:.c=.o)
TARGET = swpb
CROSS_COMPILE =
all: $(TARGET)
$(TARGET): $(OBJS)
$(CROSS_COMPILE)$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
%.o: %.c
$(CROSS_COMPILE)$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)