ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/smi23d/Makefile
Revision: 3
Committed: Mon Jun 9 21:38:26 2008 UTC (11 years, 10 months ago) by tjod
File size: 1532 byte(s)
Log Message:
test

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 -O2
9     #CFLAGS = -g -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 = smi_sdf.x
36    
37     SRCS= datastat.c draw.c initiali.c read.c read_sdf.c \
38     numeral.c readprm.c read_smiles.c utility.c iterate.c find_ring.c
39    
40     OBJS= datastat.o draw.o initiali.o read.o read_sdf.o \
41     numeral.o readprm.o read_smiles.o utility.o iterate.o find_ring.o
42    
43    
44     ${DST}: $(OBJS)
45     ${CC} -g -o ${DST} ${OBJS} ${XLIBDIRS} ${LDFLAGS}
46    
47    
48     install:
49     @${CP} ${DST} ${BIN_DIR}
50     @echo "Copying executable ${DST} to ${BIN_DIR}..."
51     @echo "Don't forget to set the PCM_DIR environment variable."
52    
53     clean:
54     ${RM} ${OBJS}