# OTA Chunk Transfer Makefile CC = gcc CFLAGS = -Wall -Wextra -std=c11 -I protocol LDFLAGS = SRCS = protocol/crc32.c protocol/chunk_client.c OBJS = $(SRCS:.c=.o) .PHONY: all clean test all: $(OBJS) # CRC32 test test_crc32: tests/test_crc32.c protocol/crc32.c $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) test: test_crc32 ./test_crc32 clean: rm -f *.o protocol/*.o tests/*.o test_crc32