root/cgm/trunk/Makefile.am

Revision 2468, 1.7 KB (checked in by kraftche, 12 months ago)

o Retain --with-occ and --with-acis options during 'make distcheck'
o Include compat/new/new.h in tarball
o Include geom/OCC/OCCCoFace.hpp in tarball

Line 
1AUTOMAKE_OPTIONS = foreign
2SUBDIRS = compat util geom init . itaps test cgm_apps
3# Don't loose the autoconf include path
4ACLOCAL_AMFLAGS = -I m4
5
6# Automake doesn't seem to have a directory defined for
7# platform-dependent data (or include) files. So put
8# in $(libdir).  Define a $(cfgdir) to get around automake's
9# check that only libraries are going in $(libdir)
10cfgdir = $(libdir)
11cfg_DATA = cgm.make
12
13lib_LTLIBRARIES = libcgm.la
14
15if build_parallel
16  CGM_ll_LIB = geom/parallel/libcubit_parallel.la
17else
18  CGM_ll_LIB =
19endif
20if build_ACIS
21  CGM_ACIS_LIB = $(CGM_ll_LIB) geom/ACIS/libcubit_ACIS.la
22 
23else
24  CGM_ACIS_LIB =
25endif
26if build_OCC
27  CGM_OCC_LIB = geom/OCC/libcubit_OCC.la
28else
29  CGM_OCC_LIB =
30endif
31
32if BUILD_CGM
33  CORE_CGM_LIBS = $(CGM_ACIS_LIB) \
34                  $(CGM_OCC_LIB) \
35                  $(CGM_ll_LIB) \
36                  geom/virtual/libcubit_virtual.la \
37                  geom/facet/libcubit_facet.la \
38                  geom/Cholla/libcholla.la \
39                  geom/facetbool/libcubit_facetbool.la \
40                  geom/libcubit_geom.la \
41                  util/libcubit_util.la
42else
43  CORE_CGM_LIBS =
44endif
45
46
47
48libcgm_la_LIBADD = init/libcgma_init.la $(CORE_CGM_LIBS) $(CGM_EXT_LIBS) $(CUBIT_FILE)
49
50libcgm_la_SOURCES =
51
52# By default, cmg.make will define these to $(srcdir).  We
53# want to override that during the INSTALL of the file so
54# that the correct values are set (e.g. if someone does
55# 'make prefix=/foo install', we don't know the correct install
56# directory until we're doing the install.
57CFG_FILE = $(DESTDIR)$(cfgdir)/cgm.make
58install-data-hook:
59        echo "CGM_INT_INCLUDE = -I$(includedir)"  >> $(CFG_FILE)
60        echo "CGM_INT_LDFLAGS = -L$(libdir)"      >> $(CFG_FILE)
61        echo "CGM_INT_LTFLAGS = -R$(libdir)"      >> $(CFG_FILE)
Note: See TracBrowser for help on using the browser.