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
4eb99b87
Commit
4eb99b87
authored
Jun 25, 2009
by
Michael Sherman
Browse files
Tweak the examples Makefile to be more robust.
parent
c5329db5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
examples/Makefile
examples/Makefile
+6
-5
No files found.
examples/Makefile
View file @
4eb99b87
...
@@ -25,9 +25,10 @@ CFLAGS = -g
...
@@ -25,9 +25,10 @@ CFLAGS = -g
FFLAGS
=
-g
FFLAGS
=
-g
# Extra libraries required when gfortran links with a C++ module.
# Extra libraries required when gfortran links with a C++ module.
# Uncomment this on Mac. If this doesn't work, look in /usr/lib to
# If this doesn't work, look in /usr/lib to
# see what versions of libstdc++.so you have and try that.
# see what versions of libstdc++.so you have and try different
# FCPPLIBS = -lstdc++.6
# versions.
FCPPLIBS
=
-lstdc
++
LIB_DIR
=
$(OpenMM_INSTALL_DIR)
/lib
LIB_DIR
=
$(OpenMM_INSTALL_DIR)
/lib
INCLUDE_DIR
=
$(OpenMM_INSTALL_DIR)
/include
INCLUDE_DIR
=
$(OpenMM_INSTALL_DIR)
/include
...
@@ -48,7 +49,7 @@ all : $(ALL_PROGS)
...
@@ -48,7 +49,7 @@ all : $(ALL_PROGS)
# Treat all .cpp source files the same way (except the one that
# Treat all .cpp source files the same way (except the one that
# implements the C Wrappers).
# implements the C Wrappers).
.cpp
:
.cpp
:
g++
$(CFLAGS)
$<
-I
$(INCLUDE_DIR)
-L
$(LIB_DIR)
$(LIBS)
-o
$*
g++
$(CFLAGS)
-I
$(INCLUDE_DIR)
$<
-L
$(LIB_DIR)
$(LIBS)
-o
$*
HelloArgonInC
:
HelloArgonInC.c OpenMM_CWrapper.o
HelloArgonInC
:
HelloArgonInC.c OpenMM_CWrapper.o
g++
$(CFLAGS)
-I
$(WRAPPER_DIR)
HelloArgonInC.c OpenMM_CWrapper.o
\
g++
$(CFLAGS)
-I
$(WRAPPER_DIR)
HelloArgonInC.c OpenMM_CWrapper.o
\
...
@@ -76,5 +77,5 @@ openmm.mod:
...
@@ -76,5 +77,5 @@ openmm.mod:
gfortran
-c
$(FFLAGS)
$(WRAPPER_DIR)
/OpenMM_Module.f90
gfortran
-c
$(FFLAGS)
$(WRAPPER_DIR)
/OpenMM_Module.f90
clean
:
clean
:
rm
$(ALL_PROGS)
*
.o
*
.mod
rm
$(ALL_PROGS)
*
.o
*
.mod
*
.obj
*
.exe
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