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