ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mengine/src/Makefile
Revision: 15
Committed: Thu Jun 19 00:26:16 2008 UTC (13 years ago) by tjod
Original Path: trunk/smi23d/src/mengine/Makefile
File size: 2646 byte(s)
Log Message:
Create new main program, mengine.c to replace gmmx.c
simplifying command line parsing (none).
Make mengine read stdin (sdf) and write stdout (sdf) instead
of files.  Makefile reflects change from gmmx to mengine.

Line User Rev File contents
1 tjod 3 CC = gcc
2    
3     # For FreeBSD uncomment the following
4     # CFLAGS = -g -Wall -O -I/usr/X11R6/include -DFREEBSD
5    
6     # For RedHat Linux; if you want warnings trys "-Wall" and
7     # for debugging "-g". Most of us (users) like it like this:
8     CFLAGS = -g -O3
9     #CFLAGS = -g -O3 -Wall -Wstrict-prototypes
10     #CFLAGS = -g -Wall -Wstrict-prototypes -pg -O -I/usr/local/LessTif/Motif1.2/include
11     #CFLAGS = -g -Wall -Wstrict-prototypes -pg -O -I/usr/local/Motif2.0/include
12    
13     #LD_DIR1 = /usr/local/LessTif/Motif1.2/lib/
14     #XLIBDIRS= -L/usr/X11R6/lib -L/usr/local/LessTif/Motif1.2/lib/
15     #XLIBDIRS= -L/usr/X11R6/lib -L/usr/local/lib/
16    
17     # Red Hat with Open Group's Open Motif
18     #XLIBDIRS= -L/usr/X11R6/lib
19    
20     # EXTLIBS = -lm -lXi -lXext -lX11
21     #LDFLAGS = ${LD_DIR1}libXm.so.1.0.2 ${LD_DIR1}libXt.so.6.0 ${LD_DIR1}libX11.so.6.1 -lm
22    
23     # For Statically linked binary
24     LDFLAGS = -lm
25    
26     # For normal shared library version
27     #LDFLAGS = -lXm -lXt -lX11 -lm
28    
29     RM = rm -f
30     CP = cp -f
31    
32     # destination dir; set this for your setup
33     #BIN_DIR = /usr/local/bin
34    
35     DST = mengine
36    
37     SRCS = \
38     active.c etorsion.c read_pcm.c \
39     angles.c initiali.c kvdw.c readprm.c \
40     attach.c read_sdf.c mark.c \
41     column.c ehal.c kangle.c \
42     kbond.c matrix.c rings.c \
43     datastat.c rotbond.c \
44     diagc.c kcharge.c minimize.c search.c \
45     dipmom.c field.c numeral.c solve.c \
46     draw.c fnd_bond.c sring.c \
47     fnd_ring.c pcm7.c tncg.c \
48     eobpw.c get_mem.c pcmwin1.c torsions.c \
49 tjod 15 eangle.c eopbend.c mengine.c kopend.c pcmwin2.c type_mmx.c \
50 tjod 3 ebond.c epimer.c gmmx_run.c read.c \
51     asnsym.c kstrbnd.c utility.c \
52     ebufchrg.c estrbnd.c \
53     hessian.c ktorsion.c xlogp.c vibrate.c
54    
55     OBJS = \
56     active.o etorsion.o read_pcm.o \
57     angles.o initiali.o kvdw.o readprm.o \
58     attach.o read_sdf.o mark.o \
59     column.o ehal.o kangle.o \
60     kbond.o matrix.o rings.o \
61     datastat.o rotbond.o \
62     diagc.o kcharge.o minimize.o search.o \
63     dipmom.o field.o numeral.o solve.o \
64     draw.o fnd_bond.o sring.o \
65     fnd_ring.o pcm7.o tncg.o \
66     eobpw.o get_mem.o pcmwin1.o torsions.o \
67 tjod 15 eangle.o eopbend.o mengine.o kopend.o pcmwin2.o type_mmx.o \
68 tjod 3 ebond.o epimer.o gmmx_run.o read.o \
69     asnsym.o kstrbnd.o utility.o \
70     ebufchrg.o estrbnd.o \
71     hessian.o ktorsion.o xlogp.o vibrate.o
72    
73    
74    
75     ${DST}: $(OBJS)
76     ${CC} -g -o ${DST} ${OBJS} ${LDFLAGS}
77    
78    
79     install:
80     @${CP} ${DST} ${BIN_DIR}
81     @echo "Copying executable ${DST} to ${BIN_DIR}..."
82     @echo "Don't forget to set the PCM_DIR environment variable."
83    
84     clean:
85     ${RM} ${OBJS}