[gmx-users] template.c => put the GROMACS headers in the same file ?
Mark Abraham
Mark.Abraham at anu.edu.au
Fri Sep 11 21:23:06 CEST 2009
Chih-Ying Lin wrote:
> Hi
> Following are
> 1. template.c
> 2. README
> 3. Makefile.x86_64-unknown-linux-gnu
>
>
> In the template.c => it includes several GROMACS headers.
> #include "statutil.h"
> #include "typedefs.h"
> #include "smalloc.h"
> #include "vec.h"
> #include "copyrite.h"
> #include "statutil.h"
> #include "tpxio.h"
>
>
>
> If I put the GROMACS headers with template.c in the same directory, should I
> still need the Makefile for my architecture, intended to compile template.c
> and link to the GROMACS libraries correctly ???
The point of the Makefile is that you don't need to move headers around
- like it says in the README:
"A Makefile.arch is created for each architecture you install
with the correct paths and libraries. You will have to link
(or copy) the correct makefile to "Makefile" or use the -f
option to gmake in order to select a makefile."
So do "make -f Makefile.x86_64-unknown-linux-gnu" like it says :-)
Mark
More information about the gromacs.org_gmx-users
mailing list