File: Makefile.am

package info (click to toggle)
openbabel 2.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 36,644 kB
  • ctags: 33,717
  • sloc: cpp: 242,528; ansic: 87,037; sh: 10,280; perl: 5,518; python: 5,156; pascal: 793; makefile: 747; cs: 392; xml: 97; ruby: 54; java: 23
file content (80 lines) | stat: -rw-r--r-- 2,277 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
EXTRA_DIST = \
	strncasecmp.c snprintf.c snprintf.h zipstream.h zipstreamimpl.h \
	CMakeLists.txt RDKitConv.cpp config.h.cmake

if BUILD_SHARED
thisdir = .
endif
SUBDIRS = math fingerprints forcefields descriptors ops $(thisdir) formats 
if BUILD_WXGUI
SUBDIRS += GUI
endif

INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/data/ -I$(top_srcdir)/include

lib_LTLIBRARIES = libopenbabel.la

if BUILD_SHARED_UNIX
# Unix, e.g., Linux, Mac, BSD, Solaris, etc.
   dlhandler_unix = dlhandler_unix.cpp
else 
	 dlhandler_unix = 
endif

if BUILD_SHARED_WIN
# MinGW
   dlhandler_win32 = dlhandler_win32.cpp
else
	 dlhandler_win32 = 
endif

libopenbabel_la_SOURCES = \
		atom.cpp alias.cpp base.cpp bitvec.cpp bond.cpp \
		bondtyper.cpp canon.cpp builder.cpp \
		chains.cpp chiral.cpp data.cpp descriptor.cpp \
		fingerprint.cpp forcefield.cpp format.cpp generic.cpp \
		griddata.cpp grid.cpp \
		locale.cpp \
		kekulize.cpp matrix.cpp mol.cpp \
		molchrg.cpp \
		obconversion.cpp oberror.cpp obiter.cpp \
		obmolecformat.cpp obutil.cpp \
		op.cpp ops.cpp \
		parsmart.cpp \
		patty.cpp phmodel.cpp plugin.cpp \
		pointgroup.cpp \
		rand.cpp residue.cpp ring.cpp \
		rotor.cpp rotamer.cpp \
		tokenst.cpp typer.cpp \
		transform.cpp $(dlhandler_unix) $(dlhandler_win32)

libopenbabel_la_LDFLAGS = -version-info 3:3:0 -no-undefined

if BUILD_SHARED
AM_CPPFLAGS = -DOB_MODULE_PATH=\"$(pkglibdir)/$(VERSION)\" -DUSING_DYNAMIC_LIBS

libopenbabel_la_LIBADD = math/libmath.la fingerprints/libfingerprints.la \
			forcefields/libforcefields.la ops/libops.la \
			descriptors/libdescriptors.la @LTLIBOBJS@ @LIBDL@
else !BUILD_SHARED
libopenbabel_la_LIBADD = math/libmath.la fingerprints/libfingerprints.la \
			formats/libformats.la forcefields/libforcefields.la \
			ops/libops.la descriptors/libdescriptors.la @LTLIBOBJS@
endif

if BUILD_PCH
BUILT_SOURCES = all.h.gch

PCHFLAGS=-Winvalid-pch -x c++-header $(CPPFLAGS) $(INCLUDES)
all.h.gch: all.h Makefile \
	$(srcdir)/../include/openbabel/babelconfig.h \
  $(srcdir)/../include/openbabel/base.h \
	$(srcdir)/../include/openbabel/generic.h \
	$(srcdir)/../include/openbabel/mol.h \
	$(srcdir)/../include/openbabel/oberror.h
	rm -f $@
	$(CXX) $(PCHFLAGS) $<
AM_CXXFLAGS= -include $(top_srcdir)/src/all.h
clean-local:
	-rm -f all.h.gch
endif