changed reading hint
[gromacs/adressmacs.git] / src / makef / Makefile.def
blobfa49fd9d2afc45b889d8ada9cb92859a5c082c0d
2 # @(#) Makefile.def 1.33 8/16/96
5 # GROMACS - Groningen Machine for Chemical Simulation
6 # Copyright (c) 1990-1994, Groningen University
8 # Global definitions for gromacs
10 ROOT :=$(GMXHOME)
11 CUR :=$(shell basename `pwd`)
12 SRCDIR :=$(ROOT)/src
13 MKDIR :=$(SRCDIR)/makef
14 INCDIR :=include
15 #LIB :=$(LIBDIR)/libgmx.$(GMXCPU).a
16 #SONAME :=libgmx.$(GMXCPU).so
17 #SOLIB :=$(LIBDIR)/$(SONAME)
18 STDTARGET :=$(MKDIR)/Makefile.std
19 SHAREIT :=echo
20 MKDEP := $(CC) -M
22 # Machine dependent stuff
24 include $(MKDIR)/Makefile.$(GMXCPU)
25 ifeq ($(USE_MPI),yes)
26 PARALLEL = yes
27 else
28 ifeq ($(USE_PVM3),yes)
29 PARALLEL = yes
30 else
31 PARALLEL = no
32 endif
33 endif
34 ifneq ($(PARALLEL_ONLY_MDRUN),yes)
35 OBJDIR :=$(ROOT)/obj/$(GMXCPU)
36 LIBDIR :=$(ROOT)/lib/$(GMXCPU)
37 BINDIR :=$(ROOT)/bin/$(GMXCPU)
38 else
39 SHAREIT :=echo
40 ifeq ($(USE_MPI),yes)
41 OBJDIR :=$(ROOT)/obj/$(GMXCPU)_mpi
42 LIBDIR :=$(ROOT)/lib/$(GMXCPU)_mpi
43 BINDIR :=$(ROOT)/bin/$(GMXCPU)_mpi
44 else
45 ifeq ($(USE_PVM3),yes)
46 OBJDIR :=$(ROOT)/obj/$(GMXCPU)_pvm
47 LIBDIR :=$(ROOT)/lib/$(GMXCPU)_pvm
48 BINDIR :=$(ROOT)/bin/$(GMXCPU)_pvm
49 endif
50 endif
51 endif
52 RUNSYSLIBS := $(LINKSTATIC) -lmd.$(GMXCPU) -lgmx.$(GMXCPU) -lfftw.$(GMXCPU) $(LINKDYNAMIC) $(SYSLIBS)
53 SYSLIBS := -lgmx.$(GMXCPU) $(SYSLIBS)
55 # System independent definitions
57 GET = ln -s
58 ifneq ($(GMXCPU),win)
59 RM = /bin/rm -f
60 else
61 RM = rm -f
62 endif
63 BINMODE = 755
64 LIBMODE = 644
65 INCS = -I. -I$(SRCDIR)/$(INCDIR) $(X11INC)
66 ADDFLAGS = -D_$(GMXCPU)_ $(DEFS) $(SYSDEFS) $(INCS)
67 C-FLAGS = $(CFLAGS) $(ADDFLAGS)
68 CC-FLAGS = $(CCFLAGS) $(ADDFLAGS) -DCPLUSPLUS