2 # @(#) Makefile.lnx 1.8 27 Jun 1996
5 # GROMACS - Groningen Machine for Chemical Simulation
6 # Copyright (c) 1990, 1991, 1992, Groningen University
8 # Makefile for gromacs on a i486 processor (Linux)
10 # See README file for info
12 SYSDEFS = -DHAVE_IDENT -DCINVSQRT -DFINVSQRT -DHAVE_STRDUP
15 # USER MODIFIABLE SECTION
17 # If you want to use fortran innerloops set this to yes
18 # For most machines this will improve the performance quite a bit
19 # because C-compilers are not as good as Fortran compilers
22 # If you want to run in *** P A R A L L E L ***
23 # please select either PVM or MPI, check with your local hacker
24 # to see what's installed at your site. If you have neither,
25 # set both to no. If you select both, something will break!!!
31 # If you want to use compressed data files set this to yes
32 # This uses the xdr libraries of your UNIX system, which is virtually
33 # Allways present, because it is necessary for NFS (network file system)
38 # Set this on if you have Open GL and the Viewkit library
39 # (standard with SGI, available for money elsewhere)
40 # This is used in the Open GL trajectory viewer.
44 # If you want to use the GMX/Motif user interface (and if you have Motif
45 # or lesstif (www.lesstif.org) installed, uncomment this one.
48 # Note that these variables are also used in Makefile.std
49 # If something does not work, please check out the link command line
50 # in that file (e.g. for PVM)
59 CC = $(LAMHOME)/bin/hcc
60 F77 = $(LAMHOME)/bin/hf77
63 CFLAGS = -O3 -ffast-math -finline-functions -Winline -fPIC -funroll-all-loops -Wall -Wno-unused #-fomit-frame-pointer
64 # -mcpu=pentiumpro -march=pentiumpro
66 # Assume Intel 486 for now. Tested with egcs 1.1.2: -mpentium or -mpentiumpro
67 # yields 10% slower code than -m486 !!!
72 # Generic linking stuff
75 FLD = $(F77) $(LDFLAGS)
76 CCLD = $(CCC) $(LDFLAGS)
78 ifeq ($(HAVE_MOTIF),yes)
79 SYSDEFS += -DHAVE_MOTIF
81 XLIBS = -L/usr/X11R6/lib -lXm -lXt -lX11
82 SYSLIBS = $(XLIBS) -lm
85 XLIBS = -L/usr/X11R6/lib -lX11
88 SHAREIT = (cd $(LIBDIR); ar x $(LIB); $(CC) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $(LIBDIR)/$(SONAME) *.o; $(RM) *.o)
90 X11INC = -I/usr/X11R6/include