From 766dee7f4292f82be19265544a59e1282e29e208 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 8 Jul 2026 01:37:28 -0500 Subject: ignore the overengineered line splitting algorithm --- linux/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux/Makefile (limited to 'linux/Makefile') diff --git a/linux/Makefile b/linux/Makefile new file mode 100644 index 0000000..45123bf --- /dev/null +++ b/linux/Makefile @@ -0,0 +1,27 @@ +CC := gcc + +CFLAGS := -Wall -Wextra -Wpedantic -O0 -g -fsanitize=address +LDFLAGS := -O0 -g -fsanitize=address + +BUILDDIR := build +SOURCES := main.c util.c +OBJS := $(SOURCES:%=$(BUILDDIR)/%.o) +IMGNAME := exitest + +.PHONY: all +all: $(BUILDDIR)/$(IMGNAME) + +$(BUILDDIR)/$(IMGNAME): $(OBJS) + $(CC) $(OBJS) -o $@ $(LDFLAGS) + +$(BUILDDIR)/%.c.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ + +$(OBJS): | $(BUILDDIR) + +$(BUILDDIR): + mkdir $(BUILDDIR) + +.PHONY: clean +clean: + -rm -rvf $(BUILDDIR) -- cgit v1.2.3-70-g09d2