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

Last change on this file since 1038 was 1038, checked in by dkearney, 15 years ago

adding the simple buffer object back to the repository because it was accidentally removed in rev 1018

File size: 3.0 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
37RM              = rm -f
38
39CDEBUGFLAGS     = -g -Wall
40
41LIBS            = -lexpat -lz -lb64 -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                RpEncode.h \
52                RpEntityRef.h \
53                RpFortranCommon.h \
54                RpLibrary.h \
55                RpLibraryCInterface.h \
56                RpLibraryFInterface.h \
57                RpLibraryFStubs.h \
58                RpOutcomeCHelper.h \
59                RpOutcomeCInterface.h \
60                RpSimpleBuffer.h \
61                RpUnits.h \
62                RpUnitsCInterface.h \
63                RpUnitsFInterface.h \
64                RpUnitsFStubs.h \
65                RpUnitsStd.h \
66                RpUtils.h \
67                RpUtilsCInterface.h \
68                RpUtilsFInterface.h \
69                RpUtilsFStubs.h \
70                rappture.h \
71                scew_extras.h
72
73# Build the scew library directly into Rappture for now. 
74# Note: This works because of viewpath-ing. See the VPATH variable.
75SCEW_OBJS       = \
76                attribute.o \
77                element.o \
78                error.o \
79                parser.o \
80                scew_extras.o  \
81                str.o \
82                tree.o \
83                writer.o \
84                xattribute.o \
85                xerror.o \
86                xhandler.o \
87                xparser.o \
88                xprint.o
89
90OBJS =          \
91                RpBindingsDict.o \
92                RpBuffer.o \
93                RpBufferCInterface.o \
94                RpEncode.o \
95                RpEntityRef.o \
96                RpFortranCommon.o \
97                RpLibrary.o \
98                RpLibraryCInterface.o \
99                RpLibraryFInterface.o \
100                RpOutcome.o \
101                RpOutcomeCInterface.o \
102                RpPtr.o \
103                RpResult.o \
104                RpSimpleBuffer.o \
105                RpUnits.o \
106                RpUnitsCInterface.o \
107                RpUnitsFInterface.o \
108                RpUnitsStd.o \
109                RpUtils.o \
110                RpUtilsCInterface.o \
111                RpUtilsFInterface.o  \
112                $(SCEW_OBJS)
113
114name            = rappture
115libname         = lib$(name)
116lib             = $(libname).a
117shared_lib      = $(libname)$(SHLIB_SUFFIX)
118
119all: $(lib) $(shared_lib)
120
121$(lib): $(OBJS)
122        $(RM) $@
123        $(AR) -r $@ $(OBJS)
124        $(RANLIB) $@
125
126$(shared_lib): $(OBJS)
127        $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \
128                $(LIB_SEARCH_DIRS) $(LIBS)
129
130install: install_libs install_headers
131
132install_libs: $(lib)  $(shared_lib)
133        $(INSTALL) -m 444 $(lib) $(libdir)
134        $(INSTALL) -m 555 $(shared_lib) $(libdir)
135
136install_headers:
137        $(INSTALL) -d $(incdir)
138        for i in $(HEADERS) ; do \
139          $(INSTALL) -m 444  $(srcdir)/$$i $(incdir) ; \
140        done
141
142.cc.o:
143        $(CXX) $(CXX_SWITCHES) -c $?
144.c.o:
145        $(CC) $(CC_SWITCHES)-c $?
146
147clean:
148        $(RM) $(OBJS) $(lib) $(shared_lib)
149
150distclean: clean
151        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.