Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
148899c8
Commit
148899c8
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Automated build rules for web distribs
parent
3df4d98b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+62
-48
62 additions, 48 deletions
Makefile
with
62 additions
and
48 deletions
Makefile
+
62
−
48
View file @
148899c8
# $Id: Makefile,v 1.
19
2000-12-1
0 14:44:58
geuzaine Exp $
# $Id: Makefile,v 1.
20
2000-12-1
1 08:54:04
geuzaine Exp $
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Makefile for Gmsh
# Makefile for Gmsh
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -185,32 +185,34 @@ bbn: tag
...
@@ -185,32 +185,34 @@ bbn: tag
# Ready to compile for somes platforms
# Ready to compile for somes platforms
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
#### -O2 merde dans 3d_smesh.c sur TransfiniteHex()
dec
:
tag compile_little_endian link_opengl strip_bin compress_bin
sgi
:
tag
linux
:
tag compile_little_endian link_mesa strip_bin compress_bin
@
for
i
in
$(
GMSH_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=CC"
\
ibm
:
tag compile_big_endian link_mesa strip_bin compress_bin
"C_FLAGS=-O2 -o32 -Olimit 3000"
\
"RANLIB=true"
\
sun
:
tag compile_big_endian link_mesa strip_bin compress_bin
"OS_FLAGS=-D_UNIX"
\
"VERSION_FLAGS="
\
hp
:
tag compile_big_endian link_hp strip_bin compress_bin
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
sgi
:
tag compile_sgi link_sgi strip_bin compress_bin
)
;
done
@
for
i
in
Mesh
;
do
(
cd
$$
i
&&
$(
MAKE
)
\
rpm
:
src
"CC=CC"
\
mv
$(
GMSH_SRCRPM
)
.tar.gz /usr/src/redhat/SOURCES
"C_FLAGS=-O1 -o32"
\
rpm
-bb
utils/gmsh.spec
"RANLIB=true"
\
cp
/usr/src/redhat/RPMS/i386/
$(
GMSH_SRCRPM
)
-1
.i386.rpm .
"OS_FLAGS=-D_UNIX"
\
cp
/usr/src/redhat/BUILD/
$(
GMSH_SRCRPM
)
/bin/gmsh .
"VERSION_FLAGS="
\
gtar zcvf gmsh-
$(
GMSH_UNAME
)
.tgz gmsh
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
compress_bin
:
)
;
done
cd
$(
GMSH_BIN_DIR
)
&&
tar
cvf gmsh-
$(
GMSH_UNAME
)
.tar gmsh
CC
-O2
-o32
-o
$(
GMSH_BIN_DIR
)
/gmsh-IRIX
$(
GMSH_LIB
)
$(
OPENGL_LIB
)
\
gzip
$(
GMSH_BIN_DIR
)
/gmsh-
$(
GMSH_UNAME
)
.tar
$(
MOTIF_LIB
)
$(
X_LIB
)
-lm
mv
$(
GMSH_BIN_DIR
)
/gmsh-
$(
GMSH_UNAME
)
.tar.gz gmsh-
$(
GMSH_UNAME
)
.tgz
strip
$(
GMSH_BIN_DIR
)
/gmsh-IRIX
little_endian
:
tag
strip_bin
:
strip
$(
GMSH_BIN_DIR
)
/gmsh
compile_little_endian
:
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=g++"
\
"CC=g++"
\
"C_FLAGS=-O3"
\
"C_FLAGS=-O3"
\
...
@@ -220,7 +222,7 @@ little_endian: tag
...
@@ -220,7 +222,7 @@ little_endian: tag
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
)
;
done
)
;
done
little_endian_threads
:
tag
compile_
little_endian_threads
:
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=g++"
\
"CC=g++"
\
"C_FLAGS=-D_REENTRANT -O3"
\
"C_FLAGS=-D_REENTRANT -O3"
\
...
@@ -230,7 +232,7 @@ little_endian_threads: tag
...
@@ -230,7 +232,7 @@ little_endian_threads: tag
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
)
;
done
)
;
done
big_endian
:
tag
compile_
big_endian
:
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_DISTRIB_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=g++"
\
"CC=g++"
\
"C_FLAGS=-O3"
\
"C_FLAGS=-O3"
\
...
@@ -240,33 +242,45 @@ big_endian: tag
...
@@ -240,33 +242,45 @@ big_endian: tag
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
"MOTIF_INCLUDE=
$(
MOTIF_INC
)
"
\
)
;
done
)
;
done
# special car -O2 merde dans 3d_smesh.c sur TransfiniteHex()
compile_sgi
:
@
for
i
in
$(
GMSH_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=CC"
\
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H_LIB
)
\
g++
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_LIB
)
\
$(
MESA_LIB
)
$(
MOTIF_LIB
)
$(
X_LIB
)
$(
THREAD_LIB
)
-lm
$(
MESA_LIB
)
$(
MOTIF_LIB
)
$(
X_LIB
)
$(
THREAD_LIB
)
-lm
strip
$(
GMSH_BIN_DIR
)
/gmsh-
$(
GMSH_UNAME
)
dec
:
little_endian ogl
linux
:
little_endian mesa
ibm
:
big_endian mesa
sun
:
big_endian mesa
#
HP :
special
linker option is necessary (+s) + set the
SHLIB_PATH variable.
# special
car +s necessaire pour shared libs avec
SHLIB_PATH variable.
hp
:
big_endian
link_hp
:
g++
-Wl
,+s
-o
$(
GMSH_BIN_DIR
)
/gmsh
-
$(
GMSH_UNAME
)
$(
GMSH_LIB
)
\
g++
-Wl
,+s
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_LIB
)
\
$(
MESA_LIB
)
$(
MOTIF_LIB
)
$(
X_LIB
)
-lm
$(
MESA_LIB
)
$(
MOTIF_LIB
)
$(
X_LIB
)
-lm
strip
$(
GMSH_BIN_DIR
)
/gmsh-
$(
GMSH_UNAME
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment