source: trunk/examples/objects/xmlparser/Makefile.in @ 1566

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

updates to Rappture::Library and Rappture::Number objects to demo how the library should store objects and generate the xml for those objects upon request. opting for configure() and dump() functions for objects. the object should know how to configure it self from a string of xml, tree object or (in the future) blob of hdf5. added some rudimentary examples of using the library object.

File size: 1.5 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13MKDIR_P         = @MKDIR_P@
14
15CC              = @CC@
16CFLAGS          = @CFLAGS@
17CXX             = @CXX@
18CXXFLAGS        = @CFLAGS@
19DEFINES         = -g -Wall
20INCLUDES        = -I../../../src/core \
21                  -I../../../src/objects \
22                  -I$(srcdir)/../../../src/core \
23                  -I$(srcdir)/../../../src/objects \
24                  -I$(includedir)
25LIBS    = \
26                -L../../../src/core -lrappture \
27                -L../../../src/objects -lRpObjects\
28                -L$(libdir) -lexpat -lz
29VPATH   = $(srcdir)
30
31CXX_SWITCHES    = $(CXXFLAGS) $(INCLUDES) $(DEFINES)
32CC_SWITCHES     = $(CFLAGS) $(INCLUDES) $(DEFINES)
33
34FILES   = \
35                $(srcdir)/xmlparser.cc \
36                $(srcdir)/xmlparser_1_0_in.xml \
37                $(srcdir)/xmlparser_1_0_out.xml \
38                $(srcdir)/xmlparser_2_0_in.xml \
39                $(srcdir)/xmlparser_5_0_in.xml \
40                $(srcdir)/tool.xml \
41                Makefile
42
43destdir = $(prefix)/examples/objects/xmlparser
44
45
46PROGS   = \
47                xmlparser
48
49all: $(PROGS)
50
51xmlparser: $(srcdir)/xmlparser.cc
52        $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS)
53
54install:
55        $(MKDIR_P) $(destdir)
56        for i in $(FILES) ; do \
57          $(INSTALL) -m 444  $$i $(destdir) ; \
58        done
59        for i in $(PROGS) ; do \
60          $(INSTALL) -m 555 $$i $(destdir) ; \
61        done
62
63clean:
64        $(RM) $(PROGS)
65
66distclean: clean
67        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.