Skip to content

Commit 80773db

Browse files
forum: port to new build system
1 parent 76e826f commit 80773db

File tree

20 files changed

+57
-87
lines changed

20 files changed

+57
-87
lines changed

forum/Makefile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
include ../make/defaults-module.mk
2+
3+
# Build
4+
5+
MODULE_NAME := forum
6+
SRCS :=
7+
SRCS_CHECK :=
8+
INTERNAL_DEPENDS_ON :=
9+
EXTERNAL_DEPENDS_ON := hdf5_fortran
10+
BINTYPE := static-lib
11+
INCLUDE_DIRS :=
12+
13+
# Testing
14+
15+
CHECK_RESULTS_GOLDEN := test/test_output
16+
17+
# Install
18+
19+
MODULES := forum_m.mod
20+
INSTALL_INCLUDES :=
21+
22+
include $(MAKE_DIR)/Makefile
23+
24+
ifeq ($(PROFILE),debug)
25+
FORUM_DEBUG = yes
26+
else
27+
FORUM_DEBUG = false
28+
endif
29+
30+
ifeq ($(MESASDK_ROOT),)
31+
FPP=./fypp_deps
32+
else
33+
FPP= PYTHONPATH=$(MESASDK_ROOT)/lib/python ./fypp_deps
34+
endif
35+
36+
BUILD_DIR_FORUM_BUILD := $(BUILD_DIR_MODULE)/src
37+
INSTALL_INCLUDES_BUILD += $(BUILD_DIR_MODULE)/include/forum.inc
38+
39+
$(BUILD_DIR_FORUM_BUILD): forum-1.0.3.tar.gz | $(BUILD_DIR_FORUM_BUILD)/ $(BUILD_DIR_MODULE)/include/
40+
tar --strip-components=1 -xf $< -C $(BUILD_DIR_FORUM_BUILD)
41+
cp $(BUILD_DIR_FORUM_BUILD)/src/include/forum.inc $(BUILD_DIR_MODULE)/include/forum.inc
42+
43+
wrap-forum: $(BUILD_DIR_FORUM_BUILD)
44+
$(MAKE) -C $(BUILD_DIR_FORUM_BUILD) SHARED=no DEBUG=$(FORUM_DEBUG) OMP=$(WITH_OPENMP) FPE=yes VERSION_CHECK=passed FPP="$(FPP)" LDFLAGS="$(LIB_DEP_ARGS)" FFLAGS="$(FLAGS_DEPS)"
45+
46+
$(OBJ_OUT): wrap-forum | $(BUILD_DIR_MODULE)/lib/
47+
cp $(BUILD_DIR_FORUM_BUILD)/build/$(notdir $@) $@
48+
49+
$(BUILD_DIR_MODULE)/modules/forum_m.mod: wrap-forum | $(BUILD_DIR_MODULE)/modules/
50+
cp $(BUILD_DIR_FORUM_BUILD)/build/$(notdir $@) $@
51+
52+
check:
53+
pushd test > /dev/null ; ../$(BUILD_DIR_FORUM_BUILD)/build/test_order > ../$(CHECK_RESULTS); popd > /dev/null
54+
diff -b $(CHECK_RESULTS) $(CHECK_RESULTS_GOLDEN)
55+
56+
.PHONY: wrap-forum

forum/build_and_test

Lines changed: 0 additions & 7 deletions
This file was deleted.

forum/build_and_test_parallel

Lines changed: 0 additions & 8 deletions
This file was deleted.

forum/clean

Lines changed: 0 additions & 1 deletion
This file was deleted.

forum/export

Lines changed: 0 additions & 2 deletions
This file was deleted.

forum/i1

Lines changed: 0 additions & 1 deletion
This file was deleted.

forum/i1p

Lines changed: 0 additions & 1 deletion
This file was deleted.

forum/install

Lines changed: 0 additions & 8 deletions
This file was deleted.

forum/make/makefile

Lines changed: 0 additions & 8 deletions
This file was deleted.

forum/make/makefile_base

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)