changed reading hint
[gromacs/adressmacs.git] / src / Makefile
blobf03adeeeca70e4b354a065a00974a09768e492cc
1 #!gmake
3 # Gromacs Makefile $Id$
5 ifeq ($(GMXHOME),)
6 all:
7 echo "No GROMACS environment, Please source your GMXRC file"
8 else
9 include $(GMXHOME)/src/makef/Makefile.def
11 BASIC = include gmxlib mdlib fftw kernel
12 ifneq ($(USE_XWIN),no)
13 SRCDIRS = $(BASIC) tools ngmx
14 else
15 SRCDIRS = $(BASIC) tools
16 endif
17 LOCALDIRS = local
18 ALLDIRS = $(SRCDIRS) $(LOCALDIRS)
19 COPYRGTDIRS = include include/types gmxlib mdlib kernel tools ngmx $(LOCALDIRS)
20 SRCFILES = Makefile makef mkhtml mkcompl
21 SRCDIST = $(SRCDIRS) $(SRCFILES)
22 AUXFILES = NOGMX
23 AUXDIRS = top tutor html
24 DIST = $(AUXFILES) $(foreach dir,$(SRCDIST),src/$(dir)) $(AUXDIRS)
25 TARDIR = $(GMXHOME)
26 TARCMD = tar cvf
27 # /usr/local/bin/tar cvf
28 #TARFLG = --exclude=CVS
29 COPYRGT = $(GMXHOME)/src/local/copyrgt
30 PROGRAMS = (cd bin/s10; ls; cd ../..)
32 all: dirs oclean
33 $(foreach dir,$(SRCDIRS),cd $(dir); $(MAKE); cd ..;)
34 ifneq ($(PARALLEL),yes)
35 ifneq ($(GMXCPU),win)
36 ./mkcompl
37 endif
38 endif
40 etags:
41 find . -name "*.[chCHm4]" -print | etags -
43 it:
44 $(foreach dir,$(ALLDIRS),cd $(dir); $(MAKE); cd ..;)
46 dist: oclean
47 cd $(GMXHOME); $(TARCMD) $(TARDIR)/gmxcore.tar $(TARFLG) $(DIST)
48 cd $(GMXHOME); $(TARCMD) $(TARDIR)/local.tar $(TARFLG) src/$(LOCALDIRS)
50 basic: dirs oclean
51 $(foreach dir,$(BASIC),cd $(dir); $(MAKE); cd ..;)
52 # rule to make dirs where binaries and libary go:
53 dirs:
54 \mkdir -p $(BINDIR) $(LIBDIR);
56 doc: man html
58 man:
59 ./mknroff
60 html:
61 ./mkhtml
62 complete:
63 ./mkcompl
65 clean:
66 $(foreach dir,$(SRCDIRS),cd $(dir); $(MAKE) clean; cd ..;)
68 copyrgt:
69 $(foreach dir,$(COPYRGTDIRS),echo $(dir); cd $(dir); $(COPYRGT) *.c; $(COPYRGT) *.h; cd $(GMXHOME)/src;)
71 oclean:
72 $(foreach dir,$(SRCDIRS),cd $(dir); $(MAKE) oclean; cd ..;)
73 endif