mirror of
https://github.com/drowe67/codec2
synced 2026-08-14 19:31:34 -04:00
25 lines
396 B
Makefile
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
|