root/cgm/trunk/itaps/Makefile.am @ 1541

Revision 1541, 2.4 KB (checked in by kraftche, 22 months ago)

fix 'make test' link errors

Line 
1AUTOMAKE_OPTIONS = foreign
2
3DEFS = $(TEMPLATE_DEFS_INCLUDED) $(HAVE_ACIS_DEF)
4
5if USE_BABEL
6  SIDL_DIR = SIDL
7else
8  SIDL_DIR =
9endif
10
11SUBDIRS = . $(SIDL_DIR)
12
13lib_LTLIBRARIES = libiGeom.la
14
15if build_ACIS
16  TEST_ACISLIBS = $(top_builddir)/geom/ACIS/libcubit_ACIS.la
17else
18  TEST_ACISLIBS =
19endif
20
21if BUILD_CGM
22  TEST_XLIBS = $(TEST_ACISLIBS) \
23               $(top_builddir)/geom/facet/libcubit_facet.la \
24               $(top_builddir)/geom/facetbool/libcubit_facetbool.la \
25               $(top_builddir)/geom/Cholla/libcholla.la \
26               $(top_builddir)/geom/virtual/libcubit_virtual.la \
27               $(top_builddir)/geom/libcubit_geom.la \
28               $(top_builddir)/util/libcubit_util.la
29else
30  TEST_XLDFLAGS = $(CUBIT_LDFLAGS) $(CUBIT_LTFLAGS)
31  TEST_XLIBS = $(CUBIT_LIBS)
32endif
33
34if build_ACIS
35  ACIS_CGM_INCLUDES = -I$(top_srcdir)/geom/ACIS
36else
37  ACIS_CGM_INCLUDES =
38endif
39
40libiGeom_la_includedir = $(includedir)
41
42libiGeom_la_libadd = $(top_builddir)/init/libcgma_init.la $(TEST_XLIBS)
43
44INCLUDES = -I$(top_srcdir)/util \
45           -I$(top_srcdir)/geom \
46           -I$(top_srcdir)/init \
47           -I.
48
49libiGeom_la_SOURCES = \
50        CATag.hpp \
51        CATag.cpp \
52        iGeom_CGMA.cc \
53        iGeomError.cc \
54        iGeomError.h
55
56libiGeom_la_include_HEADERS = \
57        iBase.h \
58        iGeom.h \
59        iBase_FCDefs.h \
60        iGeom_protos.h
61
62TESTS = testgeom
63
64check_PROGRAMS = $(TESTS)
65
66testgeom_SOURCES = testgeom.cc
67testgeom_LDADD = libiGeom.la  ../init/libcgma_init.la $(TEST_XLIBS)
68
69
70# Automake doesn't seem to have a directory defined for
71# platform-dependent data (or include) files. So put
72# in $(libdir).  Define a $(cfgdir) to get around automake's
73# check that only libraries are going in $(libdir)
74cfgdir = $(libdir)
75cfg_DATA = iGeom-Defs.inc
76
77# By default, iGeom-Defs.inc will define these to $(srcdir).  We
78# want to override that during the INSTALL of the file so
79# that the correct values are set (e.g. if someone does
80# 'make prefix=/foo install', we don't know the correct install
81# directory until we're doing the install.
82install-data-hook:
83        echo "iGeom_SRCDIR=${includedir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
84        echo "iGeom_BLDDIR=${includedir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
85        echo "iGeom_DIR=${DESTDIR}${cfgdir}/.." >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
86        echo "iGeom_LIBDIR=${libdir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
87        echo "CGM_LDFLAGS=-L${libdir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
88        echo "CGM_INCLUDEDIR=${includedir}" >> $(DESTDIR)$(cfgdir)/iGeom-Defs.inc
Note: See TracBrowser for help on using the browser.