TARGET = test
CC = gcc
CFLAGS = -O2 -g -Wall -Wextra -Wundef -std=gnu99 -I. -I../../comm -I../.. -DNO_STM32 \
	-fsanitize=address,undefined -fno-omit-frame-pointer

$(TARGET): main.c ../../comm/reply_port.c ../../comm/reply_port.h ../../datatypes.h
	$(CC) $(CFLAGS) main.c ../../comm/reply_port.c -o $@

run: $(TARGET)
	./$(TARGET)

clean:
	rm -f $(TARGET)

.PHONY: run clean
