libglacier/Makefile

35 lines
930 B
Makefile
Raw Normal View History

2024-02-08 09:01:44 -05:00
include config.mk
all:
2025-01-04 12:34:35 -05:00
@echo "No make option specified."
2024-02-08 09:01:44 -05:00
@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:
mkdir build
mkdir build/lib
$(CC) libglacier.c -c $(LIBFLAGS) -o build/lib/libglacier.o
$(AR) -rc build/lib/libglacier.a build/lib/libglacier.o
2024-10-02 17:30:43 -04:00
install:
2025-01-04 12:34:35 -05:00
install build/lib/libglacier.a $(PREFIX)/lib
install include/config.h $(PREFIX)/include/glacier
install include/data.h $(PREFIX)/include/glacier
install include/log.h $(PREFIX)/include/glacier
install include/pkgops.h $(PREFIX)/include/glacier
install include/runtime.h $(PREFIX)/include/glacier
install include/security.h $(PREFIX)/include/glacier
2024-10-02 17:30:43 -04:00
2024-02-08 09:01:44 -05:00
clean:
rm -rf build