CC = gcc
###############################################################################################
# Use the following symbols for normal operation
LDFLAGS = -lpthread -lm
CFLAGS = -O3 -Wall -Wextra

# Use the following when debugging to compile in backtrace capabilities
#LDFLAGS = -lpthread -rdynamic
#CFLAGS = -Og -g -Wall -Wextra -funwind-tables -DDEBUG
###############################################################################################
all: test_udp
###############################################################################################
test_udp.o : test_udp.c
	-$(CC) -c test_udp.c -o $@ $(CFLAGS)
###############################################################################################
test_udp : test_udp.o
	-$(CC) test_udp.o -o $@ $(LDFLAGS)
	-chmod 755 test_udp
###############################################################################################
clean:
	-rm -f *.o *~ test_udp
