CC = gcc
CFLAGS = -Wall -O2

.PHONY: all clean run

all: decode_host

decode_host: decode_host.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f decode_host

run: decode_host
	@echo "Note: Accessing /dev/mem to interact with the FPGA EIM requires root privileges."
	sudo ./decode_host codeword.bin corrected_codeword.bin
