-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
150 lines (139 loc) · 3.02 KB
/
Makefile.in
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
140
141
142
143
144
145
146
147
148
149
150
#
# Makefile for Kemo's Dynamo toolkit
# Written by H. Matsui
#
SHELL = @SHELL@
#
# directories of Kemo's Dynamo toolkit
#
SRCDIR = @abs_top_srcdir@
INSTDIR= @prefix@
#
MHDDIR = $(SRCDIR)/src
MAKEDIR= $(SRCDIR)/work
BUILDDIR= $(SRCDIR)/bin
#
# compilers
#
F90 = @FC@
CC = @CC@
CXX = @CXX@
F90_LOCAL = $(F90)
GMAKE = @GMAKE@
AR = @ar_bin@
RANLIB = @RANLIB@
#
# COCOA_FLAG is defined to use cocoa Framework
#
COCOA_FLAG = @COCOA_FLAG@
#
# optimization
#
OPTFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
DEPFLAGS= -MM -w -DDEPENDENCY_CHECK
#
# libpng and zlib settings
#
ZLIB_CFLAGS = @ZLIB_CFLAGS@
ZLIB_LIBS = @ZLIB_LIBS@
PNG_CFLAGS = @PNG_CFLAGS@
PNG_LIBS = @PNG_LIBS@
#
# X window settings
#
X_CFLAGS = @X_CFLAGS@
X_LIBS= @X_LIBS@ -lm
#
# OpenGL settings (Requirement: OpenGL, libpng)
#
OPENGL_INC = @GL_INC@
OPENGL_LIBS= @GL_LIBS@
#
# GTK+ settings (Requirement: OpenGL, libpng)
GTK3_CFLAGS= @GTK3_CFLAGS@
GTK3_LIBS= @GTK3_LIBS@
#
# GLFW settings (Requirement: OpenGL, libpng)
GLFW_CFLAGS= @GLFW_CFLAGS@
GLFW_LIBS= @GLFW_LIBS@
#
# --- Please do not chenge the following ---
#
all: makemake
cd $(MAKEDIR); $(GMAKE)
depends:
@echo "# Construct dependencies"; \
cd $(MHDDIR) ; \
$(GMAKE) \
GMAKE="$(GMAKE)" \
SRCDIR="$(SRCDIR)" \
INSTDIR="$(INSTDIR)" \
MAKEDIR="$(MAKEDIR)" \
BUILDDIR="$(BUILDDIR)" \
MHDDIR="$(MHDDIR)" \
ZLIB_CFLAGS="$(ZLIB_CFLAGS)" \
ZLIB_LIBS="$(ZLIB_LIBS)" \
PNG_CFLAGS="$(PNG_CFLAGS)" \
PNG_LIBS="$(PNG_LIBS)" \
X_LIBS="$(X_LIBS)" \
X_CFLAGS="$(X_CFLAGS)" \
OPENGL_INC="$(OPENGL_INC)" \
OPENGL_LIBS="$(OPENGL_LIBS)" \
GTK3_CFLAGS="$(GTK3_CFLAGS)" \
GTK3_LIBS="$(GTK3_LIBS)" \
GLFW_CFLAGS="$(GLFW_CFLAGS)" \
GLFW_LIBS="$(GLFW_LIBS)" \
COCOA_FLAG="$(COCOA_FLAG)" \
OPTFLAGS="$(OPTFLAGS)" \
CXXFLAGS="$(CXXFLAGS)" \
DEPFLAGS="$(DEPFLAGS)" \
F90_LOCAL="$(F90_LOCAL)" \
CC="$(CC)" \
CXX="$(CXX)" \
depends
makemake:
@echo "# Construct Makefile"; \
cd $(MHDDIR) ; \
$(GMAKE) \
GMAKE="$(GMAKE)" \
SRCDIR="$(SRCDIR)" \
INSTDIR="$(INSTDIR)" \
MAKEDIR="$(MAKEDIR)" \
BUILDDIR="$(BUILDDIR)" \
MHDDIR="$(MHDDIR)" \
ZLIB_CFLAGS="$(ZLIB_CFLAGS)" \
ZLIB_LIBS="$(ZLIB_LIBS)" \
PNG_CFLAGS="$(PNG_CFLAGS)" \
PNG_LIBS="$(PNG_LIBS)" \
X_LIBS="$(X_LIBS)" \
X_CFLAGS="$(X_CFLAGS)" \
OPENGL_INC="$(OPENGL_INC)" \
OPENGL_LIBS="$(OPENGL_LIBS)" \
GTK3_CFLAGS="$(GTK3_CFLAGS)" \
GTK3_LIBS="$(GTK3_LIBS)" \
GLFW_CFLAGS="$(GLFW_CFLAGS)" \
GLFW_LIBS="$(GLFW_LIBS)" \
COCOA_FLAG="$(COCOA_FLAG)" \
OPTFLAGS="$(OPTFLAGS)" \
CXXFLAGS="$(CXXFLAGS)" \
DEPFLAGS="$(DEPFLAGS)" \
F90_LOCAL="$(F90_LOCAL)" \
CC="$(CC)" \
CXX="$(CXX)" \
AR="$(AR)" \
RANLIB="$(RANLIB)" \
makemake
install:
cd $(MAKEDIR) ; \
$(GMAKE) install
clean:
for dir in $(MAKEDIR) $(MHDDIR) ; do \
echo "# cleaning $${dir} directory..."; \
( cd $${dir}; \
$(GMAKE) clean )\
done; \
rm -f mpif.h *.o *.mod *~ *.par *.diag *.a *.f90
distclean:
echo "# Back to initial package"; \
rm -fr $(MAKEDIR) $(BUILDDIR) Makefile config.log