| 1 | AUTOMAKE_OPTIONS = foreign |
|---|
| 2 | SUBDIRS = compat util geom init . itaps test cgm_apps |
|---|
| 3 | # Don't loose the autoconf include path |
|---|
| 4 | ACLOCAL_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) |
|---|
| 10 | cfgdir = $(libdir) |
|---|
| 11 | cfg_DATA = cgm.make |
|---|
| 12 | |
|---|
| 13 | lib_LTLIBRARIES = libcgm.la |
|---|
| 14 | |
|---|
| 15 | if build_parallel |
|---|
| 16 | CGM_ll_LIB = geom/parallel/libcubit_parallel.la |
|---|
| 17 | else |
|---|
| 18 | CGM_ll_LIB = |
|---|
| 19 | endif |
|---|
| 20 | if build_ACIS |
|---|
| 21 | CGM_ACIS_LIB = $(CGM_ll_LIB) geom/ACIS/libcubit_ACIS.la |
|---|
| 22 | |
|---|
| 23 | else |
|---|
| 24 | CGM_ACIS_LIB = |
|---|
| 25 | endif |
|---|
| 26 | if build_OCC |
|---|
| 27 | CGM_OCC_LIB = geom/OCC/libcubit_OCC.la |
|---|
| 28 | else |
|---|
| 29 | CGM_OCC_LIB = |
|---|
| 30 | endif |
|---|
| 31 | |
|---|
| 32 | if 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 |
|---|
| 42 | else |
|---|
| 43 | CORE_CGM_LIBS = |
|---|
| 44 | endif |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | libcgm_la_LIBADD = init/libcgma_init.la $(CORE_CGM_LIBS) $(CGM_EXT_LIBS) $(CUBIT_FILE) |
|---|
| 49 | |
|---|
| 50 | libcgm_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. |
|---|
| 57 | CFG_FILE = $(DESTDIR)$(cfgdir)/cgm.make |
|---|
| 58 | install-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) |
|---|