Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
f345a342
Commit
f345a342
authored
Jun 18, 2009
by
Michael Sherman
Browse files
Check in makefile for examples (not functional yet).
parent
173e3472
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
examples/Makefile
examples/Makefile
+40
-0
No files found.
examples/Makefile
0 → 100644
View file @
f345a342
# Uncomment DEBUG to use OpenMM libraries instead of release libraries
# DEBUG=_d
# Default install directory
#
# Linux
# CFLAGS = -g -m32
#
# Mac
# CFLAGS = -g -m32 -bind_at_load
# Check whether this is the right capitalization for your install directory.
OpenMM_INSTALL_DIR
=
/usr/local/OpenMM
CFLAGS
=
-g
LIB_DIR
=
$(OpenMM_INSTALL_DIR)
/lib
INCLUDE_DIR
=
$(OpenMM_INSTALL_DIR)
/include
LIBS
=
-lOpenMM
$(DEBUG)
ALL_CPP_EXAMPLES
=
HelloArgon HelloSodiumChloride HelloEthane HelloWaterBox
ALL_C_EXAMPLES
=
HelloArgonInC HelloSodiumChlorideInC
ALL_F95_EXAMPLES
=
HelloArgonInFortran HelloSodiumChlorideInFortran
default
:
HelloArgon
all
:
$(ALL_PROGS)
# Treat all .cpp source files the same way
.cpp
:
g++
$(CFLAGS)
$<
-I
$(INCLUDE_DIR)
-L
$(LIB_DIR)
$(LIBS)
-o
$*
.c
:
OpenMM_CWrapper
g++
$(CFLAGS)
$<
OpenMM_CWrapper.o
-L
$(LIB_DIR)
$(LIBS)
-o
$*
OpenMM_CWrapper
:
OpenMM_CWrapper.cpp
g++
-c
$(CFLAGS)
$<
-I
$(INCLUDE_DIR)
-o
OpenMM_CWrapper.o
clean
:
rm
$(ALL_PROGS)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment