libglacier/Makefile

35 lines
930 B
Makefile

include config.mk
all:
@echo "No make option specified."
@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
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
install:
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
clean:
rm -rf build