-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.project
69 lines (52 loc) · 1.51 KB
/
Makefile.project
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
_SMEKA_project = 1
# Contains specific default information for this project
# Step this version upon new versions
PROJECT_MAJOR = 0
PROJECT_MINOR = 5
PROJECT_MICRO = 1
PROJECT_VERSION = $(PROJECT_MAJOR).$(PROJECT_MINOR).$(PROJECT_MICRO)
# These are constant default
PROJECT_NAME = ncdf
# Create the list of libraries
NCDF_LIB ?= ncdf$(LIB_SUFFIX)
NCDF_LIB_STATIC ?= lib$(NCDF_LIB).a
NCDF_LIB_SHARED ?= lib$(NCDF_LIB).so
# Define custom options for fdict
STATIC ?= 1
# If the library was built previously,
# we default to building the shared library.
ifneq ("","$(wildcard $(NCDF_LIB_SHARED))")
SHARED ?= 1
else
SHARED ?= 0
endif
# Create the list of libraries
ifeq ($(STATIC),1)
LIBRARIES += $(NCDF_LIB_STATIC)
endif
ifeq ($(SHARED),1)
LIBRARIES += $(NCDF_LIB_SHARED)
# Forcefully denote that objects should have
# position independent code
# THIS IS A SMEKA SETTING
PIC = 1
endif
# Create custom installation of modules
.NOTPARALLEL: install-mod
smeka-install: install-mod
install-mod:
$(INSTALL) -m $(_OCT_rwrr) -t $(FMOD_DIR) $(F_MODS)
.NOTPARALLEL: install-settings
smeka-install: install-settings
install-settings:
$(INSTALL) -m $(_OCT_rwrr) -t $(BIN_DIR) settings.bash
.NOTPARALLEL: install-header
smeka-install: install-header
install-header: netcdf_ncdf.inc
$(INSTALL) -m $(_OCT_rwrr) -t $(INC_DIR) netcdf_ncdf.inc
# Force the deletion of both libraries
clean:
-$(RM) $(RM_FLAG_FORCE) $(NCDF_LIB_SHARED) $(NCDF_LIB_STATIC) settings.bash netcdf_ncdf.inc
# Local Variables:
# mode: makefile-gmake
# End: