mirror of
https://github.com/drowe67/codec2
synced 2026-08-14 19:31:34 -04:00
24 lines
455 B
Makefile
24 lines
455 B
Makefile
# Makefile for UDP JSON demo
|
|
|
|
CC = gcc
|
|
CFLAGS = -O2 -Wall -Wno-stringop-truncation -pthread -std=gnu11 -D_GNU_SOURCE -DTEST_MAIN
|
|
LDFLAGS = -pthread
|
|
|
|
# Objects
|
|
OBJS = ui_communication.o
|
|
|
|
# Target
|
|
TARGET = ui_communication
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
|
|
|
|
ui_communication.o: ui_communication.c ui_communication.h
|
|
$(CC) $(CFLAGS) -c ui_communication.c
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|
|
|
|
.PHONY: all clean
|