Files
waveform-draw/img2wfm/makefile
2025-12-17 02:00:39 +01:00

22 lines
417 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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