-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (37 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
CC = gcc
# For FreeBSD uncomment the following
# CFLAGS = -g -Wall -O -I/usr/X11R6/include -DFREEBSD
# For RedHat Linux; if you want warnings trys "-Wall" and
# for debugging "-g". Most of us (users) like it like this:
CFLAGS = -g -O2
#CFLAGS = -g -Wall -Wstrict-prototypes
#CFLAGS = -g -Wall -Wstrict-prototypes -pg -O -I/usr/local/LessTif/Motif1.2/include
#CFLAGS = -g -Wall -Wstrict-prototypes -pg -O -I/usr/local/Motif2.0/include
#LD_DIR1 = /usr/local/LessTif/Motif1.2/lib/
#XLIBDIRS= -L/usr/X11R6/lib -L/usr/local/LessTif/Motif1.2/lib/
XLIBDIRS= -L/usr/X11R6/lib -L/usr/local/lib/
# Red Hat with Open Group's Open Motif
#XLIBDIRS= -L/usr/X11R6/lib
# EXTLIBS = -lm -lXi -lXext -lX11
#LDFLAGS = ${LD_DIR1}libXm.so.1.0.2 ${LD_DIR1}libXt.so.6.0 ${LD_DIR1}libX11.so.6.1 -lm
# For Statically linked binary
LDFLAGS = -lm
# For normal shared library version
#LDFLAGS = -lXm -lXt -lX11 -lm
RM = rm -f
CP = cp -f
# destination dir; set this for your setup
#BIN_DIR = /usr/local/bin
DST = smi_sdf.x
SRCS= datastat.c draw.c initiali.c read.c read_sdf.c \
numeral.c readprm.c read_smiles.c utility.c iterate.c find_ring.c
OBJS= datastat.o draw.o initiali.o read.o read_sdf.o \
numeral.o readprm.o read_smiles.o utility.o iterate.o find_ring.o
${DST}: $(OBJS)
${CC} -g -o ${DST} ${OBJS} ${XLIBDIRS} ${LDFLAGS}
install:
@${CP} ${DST} ${BIN_DIR}
@echo "Copying executable ${DST} to ${BIN_DIR}..."
@echo "Don't forget to set the PCM_DIR environment variable."
clean:
${RM} ${OBJS}