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

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

adding RpDXWriter fortran bindings. updates to RpDXWriter and RpSimpleBuffer? objects

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