From 97e9a036107e6ffcd336a3aac13b35b24b2f856f Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Wed, 17 Dec 2025 02:00:39 +0100 Subject: [PATCH] restructure --- draw_12_tilted_rects.c => draw_parra/dmx2img.c | 0 .../draw_12_rects_and_send.py | 0 draw_parra/makefile | 21 +++++++++++++++++++++ makefile => img2wfm/makefile | 0 waveform.c => img2wfm/waveform.c | 0 5 files changed, 21 insertions(+) rename draw_12_tilted_rects.c => draw_parra/dmx2img.c (100%) rename draw_12_rects_and_send.py => draw_parra/draw_12_rects_and_send.py (100%) create mode 100644 draw_parra/makefile rename makefile => img2wfm/makefile (100%) rename waveform.c => img2wfm/waveform.c (100%) diff --git a/draw_12_tilted_rects.c b/draw_parra/dmx2img.c similarity index 100% rename from draw_12_tilted_rects.c rename to draw_parra/dmx2img.c diff --git a/draw_12_rects_and_send.py b/draw_parra/draw_12_rects_and_send.py similarity index 100% rename from draw_12_rects_and_send.py rename to draw_parra/draw_12_rects_and_send.py diff --git a/draw_parra/makefile b/draw_parra/makefile new file mode 100644 index 0000000..42d8b13 --- /dev/null +++ b/draw_parra/makefile @@ -0,0 +1,21 @@ +CC := gcc +CFLAGS := -Wall -Wextra +LDLIBS := -lc -lm + +TARGET := dmx2img + +SRC := dmx2img.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/makefile b/img2wfm/makefile similarity index 100% rename from makefile rename to img2wfm/makefile diff --git a/waveform.c b/img2wfm/waveform.c similarity index 100% rename from waveform.c rename to img2wfm/waveform.c