32 lines
671 B
Makefile
32 lines
671 B
Makefile
include config.mk
|
|
|
|
all: prepare log log_test rt make_conf
|
|
@echo "libglacier-ng has finished building"
|
|
|
|
prepare:
|
|
mkdir -p build
|
|
mkdir -p build/lib
|
|
mkdir -p build/include
|
|
mkdir -p build/lib/tmp
|
|
mkdir -p build/lib/shared
|
|
mkdir -p build/include/glacier
|
|
|
|
log:
|
|
$(CC) $(CFLAGS) src/log.c -c -o build/lib/tmp/log.o
|
|
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
|
|
|
|
rt:
|
|
$(CC) $(CFLAGS) src/runtime.c -c -o build/lib/tmp/runtime.o
|
|
|
|
make_conf:
|
|
$(CC) $(CFLAGS) src/make_conf.c -c -o build/lib/tmp/make_conf.o
|
|
|
|
install_test_dir:
|
|
install build/lib/shared/lg_log.so $(TEST_DIR)
|
|
|
|
clean:
|
|
rm -rf build
|