Files
ota-chunk-transfer/Makefile
T
km b1c3ec3af4 Initial commit: OTA chunk transfer protocol implementation
- Protocol definition with 6-byte header (chunk_idx: 2B, payload: N B, crc32: 4B)
- Node.js server with chunk-based HTTP delivery
- C client library with resumable download support
- CRC32 implementation (IEEE 802.3)
- Test suites for both server and CRC32
- 1024B default chunk size (0.59% overhead)
2026-03-30 06:35:25 +09:00

23 lines
387 B
Makefile

# 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