Fri, 28 Nov 2008 11:21:08 +0100
Fork project trunk at version 0.7.7 to maintain for future usage.
The original Cable & Wireless development team no longer exists.
The OSSP CVS repository is unavailable (cvs co ossp-pkg/as fails),
however http://cvs.ossp.org/dirview?d=ossp-pkg/as/as-gui is working.
1 ##
2 ## OSSP asgui - Accounting system graphical user interface
3 ## Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/)
4 ## Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com>
5 ## Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com>
6 ## Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH
7 ##
8 ## This file is part of OSSP asgui, an accounting system graphical user
9 ## interface which can be found at http://www.ossp.org/pkg/tool/asgui/.
10 ##
11 ## Permission to use, copy, modify, and distribute this software for
12 ## any purpose with or without fee is hereby granted, provided that
13 ## the above copyright notice and this permission notice appear in all
14 ## copies.
15 ##
16 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
17 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
20 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 ## SUCH DAMAGE.
28 ##
29 ## Makefile.in: Autoconf Makefile template
30 ##
32 @SET_MAKE@
34 DESTDIR =
35 prefix = @prefix@
36 exec_prefix = @exec_prefix@
37 bindir = @bindir@
38 sbindir = @sbindir@
39 libdir = @libdir@
40 datadir = @datadir@
41 includedir = @includedir@
42 mandir = @mandir@
44 CC = @CC@
45 CXX = @CXX@
46 CFLAGS = @CFLAGS@ @DEFS@
47 CXXFLAGS = @CXXFLAGS@ @DEFS@
48 #CFLAGS = @CFLAGS@ @DEFS@ -Wl,-Bstatic
49 #CXXFLAGS = @CXXFLAGS@ @DEFS@ -Wl,-Bstatic
50 CPPFLAGS = @CPPFLAGS@
51 CXXCPP = @CXXCPP@
52 LDFLAGS = @LDFLAGS@
53 LIBS = @LIBS@
55 # CORBA-specific variables
56 CORBABASE = @CORBABASE@
57 IDL = $(CORBABASE)/bin/idl
59 # Qt-specific variables
60 QTCFLAGS = @QT_CFLAGS@
61 QTLIBS = @QT_LIBS@
62 QTBASE = @QTBASE@
63 UIC = @UIC@
64 MOC = @MOC@
66 RM = rm -f
67 STRIP = strip
68 CHMOD = chmod
69 RMDIR = rmdir
70 SHTOOL = ./shtool
71 POD2MAN = pod2man
72 TRUE = true
74 PROG_NAME = as-gui
75 TARGET_PROGS = as-gui
76 TARGET_MANS = as-gui.1 as-gui.conf.5
78 SRCS = as_main.cpp as_gui.cpp as_assist.cpp as_slot.cpp as_dataop.cpp as_except.cpp as_generic.cpp as_amount.cpp as_table.cpp as_panel.cpp as_reportpanel.cpp as_helpanel.cpp as_numdial.cpp as_sfile.cpp as_pref.cpp as_user.cpp as_rand.cpp as_crc.cpp as_uuid.cpp as_version.cpp
80 OBJS = as_main.o as_gui.o as_assist.o as_slot.o as_dataop.o as_except.o as_generic.o as_amount.o as_table.o as_panel.o as_sfile.o as_pref.o as_reportpanel.o as_helpanel.o as_numdial.o as_user.o as_rand.o as_crc.o as_uuid.o as_version.o
82 GRAFX = gfx/ossplogo.xpm
84 # IDL compiler generated
85 IDL_SRC = as_stub.idl
86 IDL_OUT = as_stub.cpp as_stub.h
87 IDL_OBJ = as_stub.o
89 # Qt meta object compiler (MOC) generated
90 MOC_OUT = moc_as_gui.cpp moc_as_table.cpp moc_as_panel.cpp moc_as_reportpanel.cpp moc_as_helpanel.cpp moc_as_numdial.cpp
91 MOC_OBJ = moc_as_gui.o moc_as_table.o moc_as_panel.o moc_as_reportpanel.o moc_as_helpanel.o moc_as_numdial.o
93 .SUFFIXES:
94 .SUFFIXES: .c .cc .cpp .cxx .o
95 .c.o:
96 $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $<
98 .cc.o:
99 $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $<
101 .cpp.o:
102 $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $<
104 .cxx.o:
105 $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $<
107 all: Makefile $(TARGET_PROGS)
109 # Build the program conditionally including
110 # RPC stubs and skeleton objects
111 ifdef CORBABASE
112 $(PROG_NAME): $(OBJS) $(IDL_OBJ) $(MOC_OBJ)
113 $(CXX) $(LDFLAGS) -o $@ $+ $(QTLIBS) $(LIBS)
114 else
115 $(PROG_NAME): $(OBJS) $(MOC_OBJ)
116 $(CXX) $(LDFLAGS) -o $@ $+ $(QTLIBS) $(LIBS)
117 endif
119 moc_%.cpp: %.h
120 $(MOC) $< -o $@
122 # Use the Trolltech uic to compile headers
123 # and implementation from ui XML
124 #%.h: %.ui
125 # uic $< -o $@
126 #%.cpp: %.ui
127 # uic -impl $*.h $< -o $@
129 # Run the IDL compiler over IDL source
130 # but avoid a make deps spaghetti nest
131 ifdef CORBABASE
132 $(SRCS):$(IDL_OUT)
133 $(IDL_OUT): $(IDL_SRC)
134 $(IDL) --c++-suffix=cpp $<
135 endif
137 # Special treatment for help panel class, which needs the $datadir variable
138 as_helpanel.o: as_helpanel.cpp
139 $(CXX) -c -DTITRAQ_DOCDIR=\"$(datadir)\" $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $<
141 doc: as-gui.1 as-gui.conf.5 as-events.5 as-accounts.5
143 as-gui.1: as-gui.pod
144 VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \
145 VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \
146 D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \
147 $(POD2MAN) --quotes=none \
148 --section=1 --center="AS Accounting System" \
149 --release="$$D" --date="as-gui $$VS" as-gui.pod | \
150 sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-gui.1
152 as-gui.conf.5: as-gui.conf.pod
153 VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \
154 VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \
155 D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \
156 $(POD2MAN) --quotes=none \
157 --section=5 --center="AS Preferences File" \
158 --release="$$D" --date="as-gui $$VS" as-gui.conf.pod | \
159 sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-gui.conf.5
161 as-events.5: as-events.pod
162 VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \
163 VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \
164 D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \
165 $(POD2MAN) --quotes=none \
166 --section=5 --center="AS Events File" \
167 --release="$$D" --date="as-gui $$VS" as-events.pod | \
168 sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-events.5
170 as-accounts.5: as-accounts.pod
171 VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \
172 VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \
173 D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \
174 $(POD2MAN) --quotes=none \
175 --section=5 --center="AS Accounts File" \
176 --release="$$D" --date="as-gui $$VS" as-accounts.pod | \
177 sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-accounts.5
179 install: all
180 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
181 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
182 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
183 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man5
184 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(datadir)
185 $(SHTOOL) install -c -s -m 755 as-gui $(DESTDIR)$(bindir)/as-gui
186 $(SHTOOL) install -c -m 644 as-gui.1 $(DESTDIR)$(mandir)/man1/as-gui.1
187 $(SHTOOL) install -c -m 644 as-gui.conf.5 $(DESTDIR)$(mandir)/man5/as-gui.conf.5
188 $(SHTOOL) install -c -m 644 as-events.5 $(DESTDIR)$(mandir)/man5/as-events.5
189 $(SHTOOL) install -c -m 644 as-accounts.5 $(DESTDIR)$(mandir)/man5/as-accounts.5
190 $(SHTOOL) install -c -m 644 as-gui.html $(DESTDIR)$(datadir)/as-gui.html
192 uninstall:
193 $(RM) $(DESTDIR)$(datadir)/as-gui.html
194 $(RM) $(DESTDIR)$(mandir)/man5/as-accounts.5
195 $(RM) $(DESTDIR)$(mandir)/man5/as-events.5
196 $(RM) $(DESTDIR)$(mandir)/man5/as-gui.conf.5
197 $(RM) $(DESTDIR)$(mandir)/man1/as-gui.1
198 $(RM) $(DESTDIR)$(bindir)/as-gui
199 $(RMDIR) $(DESTDIR)$(datadir) >/dev/null 2>&1 || $(TRUE)
200 $(RMDIR) $(DESTDIR)$(mandir)/man5 >/dev/null 2>&1 || $(TRUE)
201 $(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
202 $(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE)
203 $(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
204 $(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
206 clean:
207 $(RM) $(TARGET_PROGS) $(OBJS) $(IDL_OBJ) $(MOC_OBJ)
208 ifdef CORBABASE
209 $(RM) $(IDL_OBJ)
210 endif
211 $(RM) as_gui_pcre.tab *.core
213 distclean: clean
214 $(RM) config.log config.status config.cache # Generated by ./configure
215 $(RM) Makefile ac_config.h # Generated by ./configure
216 ifdef CORBABASE
217 $(RM) $(IDL_OUT) # Generated by $(IDL)
218 endif
219 $(RM) $(MOC_OUT) # Generated by $(MOC)
221 realclean: distclean
222 $(RM) configure ac_config.h.in* # Generated by Autoconf
223 $(RM) configure.lineno # Generated by Autoconf
224 $(RM) shtool # Generated by Devtool
226 check: test
227 test: as-gui
228 ./as_gui_test.sh
230 .PHONY: doc install uninstall clean distclean realclean check test