3 # Gromacs Makefile $Id$
7 echo
"No GROMACS environment, Please source your GMXRC file"
9 include $(GMXHOME
)/src
/makef
/Makefile.def
11 BASIC
= include gmxlib mdlib fftw kernel
12 ifneq ($(USE_XWIN
),no
)
13 SRCDIRS
= $(BASIC
) tools ngmx
15 SRCDIRS
= $(BASIC
) tools
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
)
23 AUXDIRS
= top tutor html
24 DIST
= $(AUXFILES
) $(foreach dir,$(SRCDIST
),src
/$(dir)) $(AUXDIRS
)
27 # /usr/local/bin/tar cvf
28 #TARFLG = --exclude=CVS
29 COPYRGT
= $(GMXHOME
)/src
/local
/copyrgt
30 PROGRAMS
= (cd bin
/s10
; ls
; cd ..
/..
)
33 $(foreach dir,$(SRCDIRS
),cd
$(dir); $(MAKE
); cd ..
;)
34 ifneq ($(PARALLEL
),yes
)
41 find .
-name
"*.[chCHm4]" -print | etags
-
44 $(foreach dir,$(ALLDIRS
),cd
$(dir); $(MAKE
); cd ..
;)
47 cd
$(GMXHOME
); $(TARCMD
) $(TARDIR
)/gmxcore.
tar $(TARFLG
) $(DIST
)
48 cd
$(GMXHOME
); $(TARCMD
) $(TARDIR
)/local.
tar $(TARFLG
) src
/$(LOCALDIRS
)
51 $(foreach dir,$(BASIC
),cd
$(dir); $(MAKE
); cd ..
;)
52 # rule to make dirs where binaries and libary go:
54 \mkdir
-p
$(BINDIR
) $(LIBDIR
);
66 $(foreach dir,$(SRCDIRS
),cd
$(dir); $(MAKE
) clean; cd ..
;)
69 $(foreach dir,$(COPYRGTDIRS
),echo
$(dir); cd
$(dir); $(COPYRGT
) *.c
; $(COPYRGT
) *.h
; cd
$(GMXHOME
)/src
;)
72 $(foreach dir,$(SRCDIRS
),cd
$(dir); $(MAKE
) oclean
; cd ..
;)