Added compilation stuff for blitz++ and

jansson.
Adjusted makefile and jansson Makefile.
Updated config/config.mk
This commit is contained in:
2024-07-29 17:40:01 +02:00
parent ca4fb23423
commit f5e278281c
7 changed files with 17758 additions and 4 deletions
-2
View File
@@ -21,8 +21,6 @@ BLITZ_INCLUDES = -I$(BLITZ_INC_DIR)
BLITZ_LIBS = -lblitz -lm -L$(BLITZ_LIB_DIR)
# HDF5
MAKE_H5 = false
#HDF5_DIR = /usr/include/hdf5/
HDF5P_INC_DIR = /usr/include/hdf5/openmpi/
HDF5P_LIB_DIR = /usr/lib/x86_64-linux-gnu/hdf5/openmpi/
Vendored Executable
+25
View File
@@ -0,0 +1,25 @@
dummy: all
# Auf Solaris muss blitz mit dem Sun Studio Compiler gebaut werden
# der ist zwar scheisse, funktioniert mit blitz aber. :)
ZIP = tar
NAME_TAR = blitz-1.0.2.tar.gz
NAME = blitz-1.0.2
BLITZ_FOLDER=/external/blitz/
all:
$(ZIP) -xf $(NAME_TAR)
mkdir -p build
mkdir -p build/include
mkdir -p build/lib
cd $(NAME) && autoreconf -fiv && autoconf && automake --add-missing
cd $(NAME) && ./configure --prefix=$(HOMEBASE)$(BLITZ_FOLDER)build/ --includedir=$(HOMEBASE)$(BLITZ_FOLDER)build/include/ --libdir=$(HOMEBASE)$(BLITZ_FOLDER)build/lib/
cd $(NAME) && $(MAKE)
cd $(NAME) && $(MAKE) lib
cd $(NAME) && $(MAKE) install
clean:
-rm -rf $(HOMEBASE)$(BLITZ_FOLDER)blitz-1.0.2
-rm -rf $(HOMEBASE)$(BLITZ_FOLDER)build
BIN
View File
Binary file not shown.
Vendored Executable
+17698
View File
File diff suppressed because it is too large Load Diff
Vendored Executable
+24
View File
@@ -0,0 +1,24 @@
dummy: all
# Auf Solaris muss blitz mit dem Sun Studio Compiler gebaut werden
# der ist zwar scheisse, funktioniert mit blitz aber. :)
ZIP = tar
NAME_TAR = jansson-2.13.tar.gz
NAME = jansson-2.13
JANSSON_FOLDER=/external/jansson/
all:
$(ZIP) -xf $(NAME_TAR)
mkdir -p build
mkdir -p build/include
mkdir -p build/lib
#cd $(NAME) && autoreconf -fiv && automake --add-missing
cd $(NAME) && ./configure --prefix=$(HOMEBASE)$(JANSSON_FOLDER)build/ --includedir=$(HOMEBASE)$(JANSSON_FOLDER)build/include/ --libdir=$(HOMEBASE)$(JANSSON_FOLDER)build/lib/
cd $(NAME) && $(MAKE)
cd $(NAME) && $(MAKE) install
clean:
-rm -rf $(HOMEBASE)$(JANSSON_FOLDER)$(NAME)
-rm -rf $(HOMEBASE)$(JANSSON_FOLDER)build
BIN
View File
Binary file not shown.
+11 -2
View File
@@ -71,7 +71,7 @@ TARGET=$(BIN_DIR)/karl
# Compile logic
all: karl
all: blitz jansson karl
check_homebase:
ifeq ($(HOMEBASE),)
@@ -86,6 +86,15 @@ ifneq ($(IS_ABSPATH), yes)
@exit 1
endif
blitz: check_homebase
ifeq ($(MAKE_BLITZ), true)
$(MAKE) -C external/blitz
endif
jansson: check_homebase
ifeq ($(MAKE_JANSSON), true)
$(MAKE) -C external/jansson
endif
karl: check_abspath check_homebase $(TARGET)
@@ -153,4 +162,4 @@ clean:
clean_all: clean
-$(MAKE) -C external/blitz clean
-$(MAKE) -C external/jansson clean