2 # @(#) Makefile.std 1.44 6/25/97
5 # GROMACS - Groningen Machine for Chemical Simulation
6 # Copyright (c) 1990, 1991, 1992, Groningen University
8 # Definitions dependent on CPU but general enough to put here...
17 SYSDEFS += -DUSE_MPI -DPARALLEL
19 INCDIR += -I$(MPIR_HOME)/include
25 ifeq ($(USE_PVM3),yes)
26 SYSDEFS += -DUSE_PVM3 -DPARALLEL
29 LDFLAGS += -L$(PVM_ROOT)/lib/$(PVM_ARCH)
30 X11INC += -I$(PVM_ROOT)/include
31 CFLAGS += -I$(PVM_ROOT)/include
32 CCFLAGS += -I$(PVM_ROOT)/include
35 FFTLIBS = -lfftw.$(GMXCPU)
37 EXECUTABLES = $(foreach FILE, $(PROGRAMS), $(FILE)$(EXTENSION))
47 # Standard target definitions for gromacs
51 lib: $(foreach OB,$(OBJ),$(LIB)($(OB)) )
54 echo "No library in $(CUR)"
61 echo "No programs in $(CUR)"
63 cd $(BINDIR) ; $(RM) $(EXECUTABLES)
64 chmod $(BINMODE) $(EXECUTABLES)
65 mv $(EXECUTABLES) $(BINDIR)
69 GMXINS = \$$\(GMXHOME\)
75 ( $(foreach OB,$(OBJ),echo s~^$(OB):~\$$\(LIB\)\($(OB)\):~ ; ) ) > sedscr
77 $(MKDEP) -I. -I$(GMXHOME)/src/include *.c | sed s~$(GMXHOME)~$(GMXINS)~ | grep GMXHOME | sed -f sedscr > Make.dep
84 $(RM) $(EXECUTABLES) *.o *.l *~ *.bak \#*\#
90 $(CC) $(C-FLAGS) -c $<
96 $(CCC) $(CC-FLAGS) -c $<
99 $(CCC) $(CC-FLAGS) -c $<
102 $(CCC) $(CC-FLAGS) -c $<
104 $(CC) $(C-FLAGS) -E $<
106 $(F77) $(FFLAGS) -s $<
109 $(F77) $(FFLAGS) -c $<
112 $(F77) $(FFLAGS) -c $<
115 $(F77) $(FFLAGS) -c $<
118 $(CC) $(C-FLAGS) -s $<
121 $(LD) -o $@ $^ $(SYSLIBS)