File: Makefile.in

package info (click to toggle)
ghemical 1.01-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,984 kB
  • ctags: 19,443
  • sloc: ansic: 69,073; cpp: 60,583; fortran: 35,324; sh: 5,419; makefile: 506; perl: 91
file content (126 lines) | stat: -rw-r--r-- 3,567 bytes parent folder | download
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#Open Babel Makefile

prefix        = @prefix@
exec_prefix   = @exec_prefix@
pkgdatadir    = @datadir@/openbabel

CC            = @CC@
CXX	      = @CXX@

CFLAGS        = @CFLAGS@
CXXFLAGS      = @CXXFLAGS@ -DDATADIR=\"${pkgdatadir}\" -I$(builddir)
LIBS	      = @LIBS@
LIBFLAGS      = -DLIBRARY

LINKER	      = $(CXX)
LDFLAGS       = @LDFLAGS@

RM            = rm -f
INSTALL	      = @INSTALL@
MKDIRS        = $(top_srcdir)/mkinstalldirs
AR	      = @AR@
RANLIB	      = @RANLIB@

srcdir        = @srcdir@
VPATH         = @srcdir@
top_srcdir    = @top_srcdir@
top_builddir  = @top_builddir_@
builddir      = @top_builddir_@/src

DEST	      = @bindir@

MAIN	      = main.o

DATAFILES     = aromatic.txt atomtyp.txt element.txt extable.txt \
		resdata.txt types.txt phmodel.txt 

DATAINCS      = aromatic.h atomtyp.h element.h extable.h \
	        phmodeldata.h resdata.h types.h

HDRS	      = Vector.h aromatic.h atomtyp.h base.h binary.h \
		bitgrid.h bitvec.h chiral.h chains.h commandline.h cwrap.h \
		data.h element.h extable.h fileformat.h grid.h \
		matrix.h mol.h molchrg.h molvector.h oeifstream.h \
		obutil.h parsmart.h patty.h phmodel.h phmodeldata.h \
		resdata.h ring.h rotor.h smi.h typer.h types.h version.h \
		chains.h ctransform.h binary_io.h generic.h

OBJS	      =	alchemy.o binary.o typer.o atom.o base.o bitvec.o \
		bitgrid.o bond.o \
		chains.o commandline.o data.o molvector.o matrix.o\
		chiral.o grid.o mdl.o mol.o mol2.o molchrg.o \
		obutil.o parsmi.o parsmart.o patty.o \
		ring.o rotor.o smi.o tokenst.o Vector.o pdb.o ccc.o \
		mmod.o rand.o box.o balst.o bgf.o cacao.o cache.o chdrw.o \
		csr.o cssr.o feat.o fh.o gromos96.o cwrap.o \
		ghemical.o xyz.o fileformat.o gamess.o hin.o \
		qchem.o tinker.o unichem.o mpqc.o phmodel.o car.o xed.o \
		jaguar.o amber.o ctransform.o binary_io.o generic.o \
		dmol.o report.o nwchem.o mopac.o gaussian.o c3d.o viewmol.o \
		cml.o

PROGRAM	      = babel

LIBRARY       = libopenbabel.a

EXTRA_DIST    = bin2hex.pl

MAKEFILE      = Makefile

$(PROGRAM):     $(MAIN) $(LIBRARY)
		$(LINKER) $(LDFLAGS) -o  $(PROGRAM) $(MAIN) $(LIBRARY) $(LIBS)

$(LIBRARY):	$(DATAINCS) $(OBJS)
		$(AR) -r $(LIBRARY) $(OBJS)
		$(RANLIB) $(LIBRARY)

all:		$(DATAINCS) $(LIBRARY) $(PROGRAM)

test:		check
check:		$(PROGRAM)

clean:;		$(RM) $(OBJS) $(MAIN) $(PROGRAM) $(LIBRARY) 
distclean:	clean
		$(RM) version.h Makefile

install:	$(PROGRAM)
		$(MKDIRS) $(DEST)
		$(INSTALL) $(PROGRAM) $(DEST)
		$(MKDIRS) $(pkgdatadir)
		(cd $(srcdir); $(INSTALL) -m644 $(DATAFILES) $(pkgdatadir))

print:;		$(PRINT) $(HDRS) $(SRCS)

program:        $(PROGRAM)

dist:		distclean

# Generated include files (default data tables)
aromatic.h:	bin2hex.pl aromatic.txt
		(cd $(srcdir); ./bin2hex.pl aromatic.txt AromaticData >aromatic.h)

atomtyp.h:	bin2hex.pl atomtyp.txt
		(cd $(srcdir); ./bin2hex.pl atomtyp.txt AtomTypeData >atomtyp.h)

element.h:	bin2hex.pl element.txt
		(cd $(srcdir); ./bin2hex.pl element.txt ElementData >element.h)

extable.h:	bin2hex.pl extable.txt
		(cd $(srcdir); ./bin2hex.pl extable.txt ExtensionTableData >extable.h)

phmodeldata.h:	bin2hex.pl phmodel.txt
		(cd $(srcdir); ./bin2hex.pl phmodel.txt PhModelData PHMODELDATA >phmodeldata.h)

resdata.h:	bin2hex.pl resdata.txt
		(cd $(srcdir); ./bin2hex.pl resdata.txt ResidueData >resdata.h)

types.h:	bin2hex.pl types.txt
		(cd $(srcdir); ./bin2hex.pl types.txt TypesData >types.h)

# Update the Makefile if the Makefile.in or configure script changes
Makefile:	Makefile.in
		(cd ..; ./config.status)

.SUFFIXES:	.cpp
.cpp.o:
		$(CXX) $(CXXFLAGS) -c $< -o $@