Compiles in MSVC with cmake
[alexxy/gromacs.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Note: Makefile is automatically generated from Makefile.in by the configure
3 # script, and Makefile.in is automatically from Makefile.am by automake.
4
5 # N.B.: To be able to use dependency tracking on all hosts (not only w. gmake/gcc)
6 # and to use the suffix in library names we need the development versions of
7 # automake. Presently, this means automake version 1.4f. In Groningen, you
8 # can find that under ~lindahl/gnu/bin , or download a copy from www.gromacs.org
9
10
11 AUTOMAKE_OPTIONS = foreign 
12
13 SUBDIRS = include src admin scripts share man
14
15 #
16 # Most files in the config subdir is included automatically when
17 # we issue "make dist", but not depcomp
18
19 EXTRA_DIST = config/depcomp                                    
20
21 install-exec-hook:
22         @echo ""
23         @echo "GROMACS is installed under $(prefix)."
24         @echo "Make sure to update your PATH and MANPATH to find the"
25         @echo "programs and unix manual pages, and possibly LD_LIBRARY_PATH"
26         @echo "or /etc/ld.so.conf if you are using dynamic libraries."
27         @echo ""
28         @echo "Please run \"make tests\" now to verify your installation."
29         @echo ""
30         @echo "If you want links to the executables in /usr/local/bin,"
31         @echo "you can issue \"make links\" now."
32
33 # Shortcuts to construct and install the mdrun executable
34
35 mdrun:          
36         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
37         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
38         (cd $(top_builddir)/src/kernel && $(MAKE) mdrun ; exit 0)
39
40 install-mdrun:
41         (cd $(top_builddir)/src/gmxlib && $(MAKE) install ; exit 0)
42         (cd $(top_builddir)/src/mdlib && $(MAKE) install ; exit 0)
43         (cd $(top_builddir)/src/kernel && $(MAKE) install-mdrun ; exit 0)
44
45 fahcore:
46         (cd $(top_builddir)/src/gmxlib && $(MAKE) ; exit 0)
47         (cd $(top_builddir)/src/mdlib && $(MAKE) ; exit 0)
48         (cd $(top_builddir)/src/kernel && $(MAKE) fahcore ; exit 0)
49
50 links:
51         cd $(bindir) && programs=`ls` && cd /usr/local/bin && \
52         for i in $$programs; do \
53            (test ! -f $$i && $(LN_S) $(bindir)/$$i . ; exit 0); \
54         done
55 tests:
56         (if test -d "gmxtest"; then cd "gmxtest"; ./gmxtest.pl all; cd ..; \
57         else echo "No gmxtest directory found. Please download and unpack it here.";\
58         fi)
59
60 RPMARCH=`rpm --showrc | awk '/^build arch/ {print $$4}'`
61
62 #
63 # Use --buildroot ???
64 rpm:
65         mkdir -p rpmdir/BUILD \
66           rpmdir/SPECS \
67           rpmdir/SOURCES \
68           rpmdir/SRPMS \
69           rpmdir/RPMS/$(RPMARCH)
70         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES
71         rpmbuild --clean -ba $(top_srcdir)/admin/$(PACKAGE).spec --define "_topdir $$PWD/rpmdir" 
72         @echo "============================================================"
73         @echo "Finished - the packages are in rpmdir/RPMS and rpmdir/SRPMS!"
74
75
76 mpi-rpm:        
77         mkdir -p rpmdir/BUILD \
78           rpmdir/SPECS \
79           rpmdir/SOURCES \
80           rpmdir/SRPMS \
81           rpmdir/RPMS/$(RPMARCH)
82         cp -f $(PACKAGE)-$(VERSION).tar.gz rpmdir/SOURCES/$(PACKAGE)-$(VERSION).tar.gz
83         rpmbuild --clean -bb $(top_srcdir)/admin/$(PACKAGE)-mpi.spec --define "_topdir $$PWD/rpmdir"
84         @echo "============================================"
85         @echo "Finished - the packages are in rpmdir/RPMS!"
86
87 CLEANFILES = *~ \\\#* 
88
89 DISTCLEANFILES = libtool config.cache config.log
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
151
152
153
154
155
156
157
158
159
160
161
162