22 lines
421 B
Makefile
22 lines
421 B
Makefile
CC := gcc
|
||
CFLAGS := -Wall -Wextra -pthread
|
||
LDLIBS := -lc -lm
|
||
|
||
TARGET := dmx2img
|
||
|
||
SRC := dmx2img.c artnet_receiver.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
|