This commit is contained in:
2025-07-06 22:07:15 -04:00
parent af6d263d22
commit f32082bb15
16 changed files with 1503 additions and 700 deletions

View File

@@ -9,9 +9,8 @@ TDIR = ./tests
include config.mk
all:
@echo "No make option specified."
@echo "Run 'make help' for a full list of options."
all: lib
@echo "Built static library"
help:
@echo "Make options for libglacier:"
@@ -30,9 +29,9 @@ test: deprecate
cp etc/example.cfg ./glacier.cfg
lib: $(SDIR)/libglacier.c
mkdir build
mkdir build/lib
$(CC) $(SDIR)/libglacier.c -c $(LIBFLAGS) -o $(BDIR)/lib/libglacier.o
mkdir -p build
mkdir -p build/lib
$(CC) $(SDIR)/libglacier.c -c -o $(BDIR)/lib/libglacier.o $(LIBFLAGS)
$(AR) -rc $(BDIR)/lib/libglacier.a build/lib/libglacier.o
check: lib $(BDIR) $(TDIR)/unit-tests.c