codec2/utils/Makefile
2025-08-13 23:45:34 +01:00

25 lines
396 B
Makefile

# Compiler and flags
CC = gcc
CFLAGS = -Wall -Wextra -O2
LDFLAGS = -pthread
# Source and output files
SRC = broadcast_test.c kiss.c
OUT = broadcast_test
# Default target
all: $(OUT)
# Build the executable
$(OUT): $(SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(OUT) $(SRC)
# Clean up build artifacts
clean:
rm -f $(OUT)
# Run the program
run: $(OUT)
./$(OUT) 127.0.0.1 8300
.PHONY: all clean run