source: trunk/src/core/Makefile.in @ 1051

Last change on this file since 1051 was 1051, checked in by dkearney, 16 years ago

templatized the rappture simple buffer object to work with ints, floats, chars, doubles.
adjusted rappture buffer and encode to reflect the changes to the simple buffer.
created a basic dx writer object, currently it handles some uniform rectangular grids with data.
added some c header files to rappture outcome object to stop it from complaining about function headers.
adjusted Makefile to reflect changes to the simple buffer and dx writer object.

File size: 3.3 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11incdir          = $(prefix)/include
12
13INSTALL         = @INSTALL@
14
15CXX             = @CXX@
16CC              = @CC@
17CFLAGS_DEBUG    = @CFLAGS_DEBUG@ -Wall
18CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
19STLIB_LD        = @STLIB_LD@
20SHLIB_LD        = @SHLIB_LD@
21SHLIB_CFLAGS    = @SHLIB_CFLAGS@
22SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
23SHLIB_SUFFIX    = @SHLIB_SUFFIX@
24CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
25LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
26CFLAGS          = @CFLAGS@
27
28CC_SWITCHES     = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
29CXX_SWITCHES    = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
30
31INCLUDES        = -I$(srcdir) \
32                  -I$(includedir)
33
34RANLIB          = @RANLIB@
35AR              = ar
36VPATH           = $(srcdir):$(srcdir)/scew:$(srcdir)/b64
37RM              = rm -f
38
39CDEBUGFLAGS     = -g -Wall
40
41LIBS            = -lexpat -lz -lm -lstdc++
42
43HEADERS = \
44                RpOutcome.h \
45                RpPtr.h \
46                RpBindingsDict.h \
47                RpBuffer.h \
48                RpBufferCHelper.h \
49                RpBufferCInterface.h \
50                RpDict.h \
51                RpDXWriter.h \
52                RpEncode.h \
53                RpEntityRef.h \
54                RpFortranCommon.h \
55                RpLibrary.h \
56                RpLibraryCInterface.h \
57                RpLibraryFInterface.h \
58                RpLibraryFStubs.h \
59                RpOutcomeCHelper.h \
60                RpOutcomeCInterface.h \
61                RpSimpleBuffer.h \
62                RpUnits.h \
63                RpUnitsCInterface.h \
64                RpUnitsFInterface.h \
65                RpUnitsFStubs.h \
66                RpUnitsStd.h \
67                RpUtils.h \
68                RpUtilsCInterface.h \
69                RpUtilsFInterface.h \
70                RpUtilsFStubs.h \
71                rappture.h
72
73SCEW_HEADERS    = \
74                attribute.h  \
75                element.h \
76                error.h \
77                parser.h \
78                scew.h \
79                scew_extras.h  \
80                str.h \
81                tree.h \
82                types.h \
83                xattribute.h \
84                xelement.h \
85                xhandler.h \
86                xparser.h \
87                xprint.h \
88                xtree.h \
89                writer.h \
90                xerror.h
91
92# Build the scew library directly into Rappture for now. 
93# Note: This works because of viewpath-ing. See the VPATH variable.
94B64_OBJS        = \
95                cdecode.o \
96                cencode.o
97
98SCEW_OBJS       = \
99                attribute.o \
100                element.o \
101                error.o \
102                parser.o \
103                scew_extras.o  \
104                str.o \
105                tree.o \
106                writer.o \
107                xattribute.o \
108                xerror.o \
109                xhandler.o \
110                xparser.o \
111                xprint.o
112
113OBJS =          \
114                RpBindingsDict.o \
115                RpBuffer.o \
116                RpBufferCInterface.o \
117                RpDXWriter.o \
118                RpEncode.o \
119                RpEntityRef.o \
120                RpFortranCommon.o \
121                RpLibrary.o \
122                RpLibraryCInterface.o \
123                RpLibraryFInterface.o \
124                RpOutcome.o \
125                RpOutcomeCInterface.o \
126                RpPtr.o \
127                RpResult.o \
128                RpUnits.o \
129                RpUnitsCInterface.o \
130                RpUnitsFInterface.o \
131                RpUnitsStd.o \
132                RpUtils.o \
133                RpUtilsCInterface.o \
134                RpUtilsFInterface.o  \
135                $(SCEW_OBJS) \
136                $(B64_OBJS)
137
138name            = rappture
139libname         = lib$(name)
140lib             = $(libname).a
141shared_lib      = $(libname)$(SHLIB_SUFFIX)
142
143all: $(lib) $(shared_lib)
144
145$(lib): $(OBJS)
146        $(RM) $@
147        $(AR) -r $@ $(OBJS)
148        $(RANLIB) $@
149
150$(shared_lib): $(OBJS)
151        $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \
152                $(LIB_SEARCH_DIRS) $(LIBS)
153
154install: install_libs install_headers
155
156install_libs: $(lib)  $(shared_lib)
157        $(INSTALL) -m 444 $(lib) $(libdir)
158        $(INSTALL) -m 555 $(shared_lib) $(libdir)
159
160install_headers:
161        $(INSTALL) -d $(incdir)
162        for i in $(HEADERS) ; do \
163          $(INSTALL) -m 444  $(srcdir)/$$i $(incdir) ; \
164        done
165
166.cc.o:
167        $(CXX) $(CXX_SWITCHES) -c $?
168.c.o:
169        $(CC) $(CC_SWITCHES)-c $?
170
171clean:
172        $(RM) $(OBJS) $(lib) $(shared_lib)
173
174distclean: clean
175        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.