From 63de9b0d3d3127a6b2407036ced89dbb1226bffc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 7 Dec 2025 15:04:50 +0000 Subject: [PATCH] add super simple makefile for building a single file --- makefile | 21 +++++++++++++++++++++ test.c => waveform.c | 0 2 files changed, 21 insertions(+) create mode 100644 makefile rename test.c => waveform.c (100%) diff --git a/makefile b/makefile new file mode 100644 index 0000000..2a1e69e --- /dev/null +++ b/makefile @@ -0,0 +1,21 @@ +CC := gcc +CFLAGS := -Wall -Wextra -std=c11 +LDLIBS := -lSDL2 -lSDL2_image + +TARGET := waveform + +SRC := waveform.c + +# ------------------------------------------------- +# Default target – just type `make` to build +all: $(TARGET) + +# How to build the executable +$(TARGET): $(SRC) + $(CC) $(CFLAGS) $^ $(LDLIBS) -o $@ + +# Convenience: `make clean` to remove the binary +clean: + rm -f $(TARGET) + +.PHONY: all clean diff --git a/test.c b/waveform.c similarity index 100% rename from test.c rename to waveform.c