root/cgm/trunk/cgm.make.in

Revision 2797, 1.7 KB (checked in by tautges, 8 months ago)

- add a crude but effective file type extraction from file name; this
should really be a capability in each engine
- add a -DHAVE_ACIS and/or -DHAVE_OCC to IGEOM_DEFINES so applications
can branch on which engine to decide file extensions

Line 
1#==================================================================
2#
3# To build CGM applications, do the following:
4#
5# 0. include this file in your makefile (using 'include cgm.make')
6# 1. Insert '${CGM_INCLUDES}' (w/o quotes) in your compile command, e.g.
7#      ${CXX} ${CGM_INCLUDES} -c mysource.cpp
8# 2. Insert '${CGM_LIBS_LINK}' (w/o quotes) on your link line
9#
10# That's it! No need to look at the code below, unless you're curious.
11#
12#==================================================================
13
14# The following are initialized here for a non-installed CGM.
15# These values will be overridden when this file is installed.
16CGM_INT_LDFLAGS = -L@abs_top_builddir@/.libs
17CGM_INT_LTFLAGS = -R@abs_top_builddir@/.libs
18CGM_INT_INCLUDE = -I@abs_top_srcdir@ \
19                  -I@abs_top_srcdir@/util \
20                  -I@abs_top_builddir@/util \
21                  -I@abs_top_srcdir@/init \
22                  -I@abs_top_builddir@/init \
23                  -I@abs_top_srcdir@/geom \
24                  -I@abs_top_builddir@/geom \
25                  -I@abs_top_srcdir@/geom/ACIS \
26                  -I@abs_top_srcdir@/geom/virtual \
27                  -I@abs_top_srcdir@/geom/facet \
28                  -I@abs_top_srcdir@/geom/facetbool \
29                  -I@abs_top_srcdir@/geom/Cholla
30
31# Pre-processor flags
32CGM_DEFINES = @CANT_USE_STD@ @CANT_USE_STD_IO@ @TEMPLATE_DEFS_INCLUDED@ @HAVE_ACIS_DEF@ @HAVE_OCC_DEF@
33CGM_INCLUDES = @CGM_EXT_INCLUDE@ $(CGM_INT_INCLUDE)
34CGM_CPPFLAGS = $(CGM_DEFINES) $(CGM_INCLUDES)
35
36# Link flags
37CGM_LIBS = -lcgm @CGM_EXT_LIBS@
38CGM_LDFLAGS = $(CGM_INT_LDFLAGS) @CGM_EXT_LDFLAGS@
39CGM_LTFLAGS = $(CGM_INT_LTFLAGS) @CGM_EXT_LTFLAGS@
40CGM_LIBS_LINK = $(CGM_LDFLAGS) $(CGM_LIBS)
41
42# Build-generated values appended after this line
Note: See TracBrowser for help on using the browser.