libglacier/Makefile

32 lines
869 B
Makefile
Raw Permalink Normal View History

2024-02-08 09:01:44 -05:00
include config.mk
all:
@echo "Run 'make test' for the test binary, or 'make lib' to generate a static library."
@echo "Run 'make help' for a full list of options."
help:
@echo "Make options for libglacier:"
@echo ""
@echo "lib - generate the static library"
@echo "test - generate a test binary"
@echo "clean - remove all generated files"
test:
$(CC) libglacier.c $(LIBFLAGS) -o libglacier.test
cp etc/example.cfg ./glacier.cfg
2024-10-02 17:30:43 -04:00
lib:
2024-10-02 22:30:05 -04:00
mkdir lib
2024-10-02 17:30:43 -04:00
$(CC) libglacier.c -c $(LIBFLAGS) -o lib/libglacier.o
$(AR) -rc lib/libglacier.a lib/libglacier.o
install:
install lib/libglacier.a $(PREFIX)/lib
install include/glacier_config.h $(PREFIX)/include
install include/glacier_log.h $(PREFIX)/include
install include/glacier_pkgops.h $(PREFIX)/include
install include/glacier_runtime.h $(PREFIX)/include
2024-02-08 09:01:44 -05:00
clean:
rm libglacier.test libglacier.a glacier.cfg