Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# see Config file for compile-time settings
#include Config
include ../Make_include
CFLAGS += -std=c99 -I../include
MAKEFLAGS += --no-print-directory
# macOS compiler options (uncomment on macOS) ---------------------------------
# SOFLAGS += -undefined dynamic_lookup
# default targets
BUILD_CFP = 0
BUILD_ZFORP = 0
BUILD_UTILITIES = 0
BUILD_EXAMPLES = 0
BUILD_TESTING = 0
BUILD_SHARED_LIBS = 0
LIBRARY = static
LIBZFP = libzfp.a
# compiler options ------------------------------------------------------------
# default: build all targets enabled in Config
all:
@echo $(LIBRARY)
@cd src; $(MAKE) $(LIBRARY)
ifneq ($(BUILD_CFP),0)
@cd cfp/src; $(MAKE) clean $(LIBRARY)
endif
ifneq ($(BUILD_ZFORP),0)
@cd fortran; $(MAKE) clean $(LIBRARY)
endif
ifneq ($(BUILD_UTILITIES),0)
@cd utils; $(MAKE) clean all
endif
ifneq ($(BUILD_TESTING),0)
@cd tests; $(MAKE) clean all
endif
ifneq ($(BUILD_EXAMPLES),0)
@cd examples; $(MAKE) clean all
endif
# run basic regression tests
test:
@cd tests; $(MAKE) test
# clean all
clean:
@cd src; $(MAKE) clean
ifneq ($(BUILD_CFP),0)
@cd cfp/src; $(MAKE) clean
endif
ifneq ($(BUILD_ZFORP),0)
@cd fortran; $(MAKE) clean
endif
ifneq ($(BUILD_UTILITIES),0)
@cd utils; $(MAKE) clean
endif
ifneq ($(BUILD_TESTING),0)
@cd tests; $(MAKE) clean
endif
ifneq ($(BUILD_EXAMPLES),0)
@cd examples; $(MAKE) clean
endif