-
Notifications
You must be signed in to change notification settings - Fork 8
/
GNUmakefile~
executable file
·139 lines (114 loc) · 3.91 KB
/
GNUmakefile~
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# file: GNUmakefile
#
# setup the environment
#
# DESTDIR is used by install scripts to install to a fake root
DESTDIR =
# ISIP and isip both point to the base of the ISIP source tree
#
#ISIP = /usr/local/isip/tools/hdphmm_lib
isip = $(ISIP)
ISIP_DEVEL = $(ISIP)
export ISIP isip ISIP_DEVEL
# we need to capture these configure variables as variables so they
# can be referenced by other configure variables
#
prefix := $ISIP
exec_prefix := ${prefix}
target := linux-gnu
export prefix exec_prefix target
# define the location of g++
#
ifndef ISIP_CPLUS_COMPILER
ISIP_CPLUS_COMPILER := g++
export ISIP_CPLUS_COMPILER
endif
# define a binary directory. if uname does not work on your system,
# you need to create some arbitrary string which will be unique across
# each architecture you use. our values for ISIP_BINARY are
# i386_SunOS_5.6 or sparc_SunOS_5.6.
#
ifndef ISIP_BINARY
ISIP_BINARY := linux-gnu
export ISIP_BINARY
endif
# ----------------------------------------
# you shouldn't need to edit anything below this line
# ----------------------------------------
ifndef ISIP_INCLUDE
ISIP_INCLUDE := -I$(ISIP_DEVEL)/include
export ISIP_INCLUDE
endif
ifndef ISIP_LIBS
ISIP_LIBS := -L$(ISIP_DEVEL)/lib/$(ISIP_BINARY) -l_asr -l_pr -l_search -l_sp -l_algo -l_stat -l_mmedia -l_shell -l_numeric -l_math_matrix -l_math_vector -l_math_scalar -l_io -l_system -lm -lgomp
export ISIP_LIBS
endif
# if a partial ISIP envioronment is running, it could cause problems.
# unset a few variables
#
unexport ISIP_WORK
# force our default compilation options: optimize
#
DEBUG=
OPTIMIZE=-O2
export DEBUG OPTIMIZE
# define the order these directories are built
#
ISIP_ORDER = scripts/ class/ util/
# define additional things to be deleted with distclean
#
ISIP_DISTCLEAN = config.cache config.log config.status GNUmakefile ISIP_BASE_ENV.sh class/system/Integral/IntegralConfigure.h scripts/make/compile_configure.make include lib bin
# define the full install directive. this triggers traverse.make's
# install directive to call the install-release directive.
#
ISIP_POST_INSTALL := install-release
# we will only install things if the target directories are outside
# the source tree -- if we don't do this it may try to copy a file
# over itself.
#
ifneq "${exec_prefix}/bin" "$(ISIP)/bin"
RELEASE_BIN := install-release-bin
endif
ifneq "${exec_prefix}/lib" "$(ISIP)/lib"
RELEASE_LIB := install-release-lib
endif
ifneq "${prefix}/include" "$(ISIP)/include"
RELEASE_HEADER := install-release-header
endif
# include the isip standard make template. make this a quite include, since
# very likely the make directory will not exist and it will have to execute
# the rule below which installs the makefiles
#
-include $(ISIP_DEVEL)/lib/scripts/make/traverse.make
# define additional rules: install makefiles
#
$(ISIP_DEVEL)/lib/scripts/make/traverse.make: $(ISIP_DEVEL)/scripts/make/traverse.make
$(MAKE) --directory $(ISIP_DEVEL)/scripts/make install
# define additional rules: debug environment
#
debug_env:
echo "ISIP =" $(ISIP)
echo "isip =" $(isip)
echo "ISIP_DEVEL =" $(ISIP_DEVEL)
echo "ISIP_CPLUS_COMPILER =" $(ISIP_CPLUS_COMPILER)
echo "ISIP_BINARY =" $(ISIP_BINARY)
echo "ISIP_INCLUDE =" $(ISIP_INCLUDE)
echo "ISIP_LIBS =" $(ISIP_LIBS)
# define additional rules: full installation
#
install-release: $(RELEASE_BIN) $(RELEASE_LIB) $(RELEASE_HEADER)
install-release-bin:
echo "copying binaries -> " $(DESTDIR)${exec_prefix}/bin
mkdir -p $(DESTDIR)${exec_prefix}/bin
-cp $(ISIP_DEVEL)/bin/scripts/* $(DESTDIR)${exec_prefix}/bin
-cp $(ISIP_DEVEL)/bin/$(ISIP_BINARY)/* $(DESTDIR)${exec_prefix}/bin
install-release-lib:
echo "copy libraries -> " $(DESTDIR)${exec_prefix}/lib
mkdir -p $(DESTDIR)${exec_prefix}/lib
-cp -r $(ISIP_DEVEL)/lib/* $(DESTDIR)${exec_prefix}/lib
install-release-header:
echo "copy includes -> " $(DESTDIR)${prefix}/include
mkdir -p $(DESTDIR)${prefix}/include
-cp $(ISIP_DEVEL)/include/* $(DESTDIR)${prefix}/include
#
# end of file