feat: implement archive reader/writer with round-trip test

This commit is contained in:
2026-09-14 23:26:02 +02:00
parent 8287541447
commit 11675f8cd4
4 changed files with 469 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
CC := cc
CFLAGS = -Wall -Wpedantic -I../include -std=c89
LDFLAGS = -L../bin/debug -lfpk
ifeq ($(OS),Windows_NT)
SHELL := cmd.exe
.SHELLFLAGS := /c
EXE_EXT = .exe
else
EXE_EXT =
endif
.PHONY: all test clean
all: test
test_program$(EXE_EXT): test.c
$(CC) $(CFLAGS) -o $@ test.c $(LDFLAGS)
test: test_program$(EXE_EXT)
@./test_program$(EXE_EXT)
clean:
ifeq ($(OS),Windows_NT)
@del /Q test_program.exe 2>nul || true
else
@rm -f test_program
endif