Working as of 12/11
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,6 +1,6 @@
|
||||
include config.mk
|
||||
|
||||
all: prepare log log_test rt make_conf
|
||||
all: prepare log log_test rt istoreutils make_conf
|
||||
@echo "libglacier-ng has finished building"
|
||||
|
||||
prepare:
|
||||
@@ -16,16 +16,29 @@ log:
|
||||
cp src/log.h build/include/glacier/log.h
|
||||
|
||||
log_test:
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/log.c -o build/lib/shared/lg_log.so
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/log.c -o build/lib/shared/libglacier_log.so
|
||||
|
||||
rt:
|
||||
$(CC) $(CFLAGS) src/runtime.c -c -o build/lib/tmp/runtime.o
|
||||
|
||||
istoreutils:
|
||||
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/istoreutils.c \
|
||||
-Lbuild/lib/shared -lglacier_log \
|
||||
-Wl,-rpath,'$$ORIGIN' \
|
||||
-o build/lib/shared/libglacier_istoreutils.so
|
||||
|
||||
make_conf:
|
||||
$(CC) $(CFLAGS) src/make_conf.c -c -o build/lib/tmp/make_conf.o
|
||||
|
||||
install:
|
||||
mkdir -p $(PREFIX)/lib/glacier/
|
||||
install build/lib/shared/libglacier_log.so $(PREFIX)/lib/glacier/ -m 755
|
||||
install build/lib/shared/libglacier_istoreutils.so $(PREFIX)/lib/glacier/ -m 755
|
||||
|
||||
install_test_dir:
|
||||
install build/lib/shared/lg_log.so $(TEST_DIR)
|
||||
install build/lib/shared/
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
Reference in New Issue
Block a user