michael@1: ## michael@1: ## OSSP asgui - Accounting system graphical user interface michael@1: ## Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) michael@1: ## Copyright (c) 2002-2004 Ralf S. Engelschall michael@1: ## Copyright (c) 2002-2004 Michael Schloh von Bennewitz michael@1: ## Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH michael@1: ## michael@1: ## This file is part of OSSP asgui, an accounting system graphical user michael@1: ## interface which can be found at http://www.ossp.org/pkg/tool/asgui/. michael@1: ## michael@1: ## Permission to use, copy, modify, and distribute this software for michael@1: ## any purpose with or without fee is hereby granted, provided that michael@1: ## the above copyright notice and this permission notice appear in all michael@1: ## copies. michael@1: ## michael@1: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@1: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@1: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@1: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@1: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@1: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@1: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@1: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@1: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@1: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@1: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@1: ## SUCH DAMAGE. michael@1: ## michael@1: ## Makefile.in: Autoconf Makefile template michael@1: ## michael@1: michael@1: @SET_MAKE@ michael@1: michael@1: DESTDIR = michael@1: prefix = @prefix@ michael@1: exec_prefix = @exec_prefix@ michael@1: bindir = @bindir@ michael@1: sbindir = @sbindir@ michael@1: libdir = @libdir@ michael@1: datadir = @datadir@ michael@1: includedir = @includedir@ michael@1: mandir = @mandir@ michael@1: michael@1: CC = @CC@ michael@1: CXX = @CXX@ michael@1: CFLAGS = @CFLAGS@ @DEFS@ michael@1: CXXFLAGS = @CXXFLAGS@ @DEFS@ michael@1: #CFLAGS = @CFLAGS@ @DEFS@ -Wl,-Bstatic michael@1: #CXXFLAGS = @CXXFLAGS@ @DEFS@ -Wl,-Bstatic michael@1: CPPFLAGS = @CPPFLAGS@ michael@1: CXXCPP = @CXXCPP@ michael@1: LDFLAGS = @LDFLAGS@ michael@1: LIBS = @LIBS@ michael@1: michael@1: # CORBA-specific variables michael@1: CORBABASE = @CORBABASE@ michael@1: IDL = $(CORBABASE)/bin/idl michael@1: michael@1: # Qt-specific variables michael@1: QTCFLAGS = @QT_CFLAGS@ michael@1: QTLIBS = @QT_LIBS@ michael@1: QTBASE = @QTBASE@ michael@1: UIC = @UIC@ michael@1: MOC = @MOC@ michael@1: michael@1: RM = rm -f michael@1: STRIP = strip michael@1: CHMOD = chmod michael@1: RMDIR = rmdir michael@1: SHTOOL = ./shtool michael@1: POD2MAN = pod2man michael@1: TRUE = true michael@1: michael@1: PROG_NAME = as-gui michael@1: TARGET_PROGS = as-gui michael@1: TARGET_MANS = as-gui.1 as-gui.conf.5 michael@1: michael@1: 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 michael@1: michael@1: 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 michael@1: michael@1: GRAFX = gfx/ossplogo.xpm michael@1: michael@1: # IDL compiler generated michael@1: IDL_SRC = as_stub.idl michael@1: IDL_OUT = as_stub.cpp as_stub.h michael@1: IDL_OBJ = as_stub.o michael@1: michael@1: # Qt meta object compiler (MOC) generated michael@1: 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 michael@1: 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 michael@1: michael@1: .SUFFIXES: michael@1: .SUFFIXES: .c .cc .cpp .cxx .o michael@1: .c.o: michael@1: $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $< michael@1: michael@1: .cc.o: michael@1: $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $< michael@1: michael@1: .cpp.o: michael@1: $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $< michael@1: michael@1: .cxx.o: michael@1: $(CXX) -c $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $< michael@1: michael@1: all: Makefile $(TARGET_PROGS) michael@1: michael@1: # Build the program conditionally including michael@1: # RPC stubs and skeleton objects michael@1: ifdef CORBABASE michael@1: $(PROG_NAME): $(OBJS) $(IDL_OBJ) $(MOC_OBJ) michael@1: $(CXX) $(LDFLAGS) -o $@ $+ $(QTLIBS) $(LIBS) michael@1: else michael@1: $(PROG_NAME): $(OBJS) $(MOC_OBJ) michael@1: $(CXX) $(LDFLAGS) -o $@ $+ $(QTLIBS) $(LIBS) michael@1: endif michael@1: michael@1: moc_%.cpp: %.h michael@1: $(MOC) $< -o $@ michael@1: michael@1: # Use the Trolltech uic to compile headers michael@1: # and implementation from ui XML michael@1: #%.h: %.ui michael@1: # uic $< -o $@ michael@1: #%.cpp: %.ui michael@1: # uic -impl $*.h $< -o $@ michael@1: michael@1: # Run the IDL compiler over IDL source michael@1: # but avoid a make deps spaghetti nest michael@1: ifdef CORBABASE michael@1: $(SRCS):$(IDL_OUT) michael@1: $(IDL_OUT): $(IDL_SRC) michael@1: $(IDL) --c++-suffix=cpp $< michael@1: endif michael@1: michael@1: # Special treatment for help panel class, which needs the $datadir variable michael@1: as_helpanel.o: as_helpanel.cpp michael@1: $(CXX) -c -DTITRAQ_DOCDIR=\"$(datadir)\" $(CPPFLAGS) $(QTCFLAGS) $(CXXFLAGS) $< michael@1: michael@1: doc: as-gui.1 as-gui.conf.5 as-events.5 as-accounts.5 michael@1: michael@1: as-gui.1: as-gui.pod michael@1: VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \ michael@1: VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \ michael@1: D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \ michael@1: $(POD2MAN) --quotes=none \ michael@1: --section=1 --center="AS Accounting System" \ michael@1: --release="$$D" --date="as-gui $$VS" as-gui.pod | \ michael@1: sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-gui.1 michael@1: michael@1: as-gui.conf.5: as-gui.conf.pod michael@1: VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \ michael@1: VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \ michael@1: D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \ michael@1: $(POD2MAN) --quotes=none \ michael@1: --section=5 --center="AS Preferences File" \ michael@1: --release="$$D" --date="as-gui $$VS" as-gui.conf.pod | \ michael@1: sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-gui.conf.5 michael@1: michael@1: as-events.5: as-events.pod michael@1: VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \ michael@1: VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \ michael@1: D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \ michael@1: $(POD2MAN) --quotes=none \ michael@1: --section=5 --center="AS Events File" \ michael@1: --release="$$D" --date="as-gui $$VS" as-events.pod | \ michael@1: sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-events.5 michael@1: michael@1: as-accounts.5: as-accounts.pod michael@1: VS=`$(SHTOOL) version -lc -dshort as_version.cpp`; \ michael@1: VL=`$(SHTOOL) version -lc -dlong as_version.cpp`; \ michael@1: D=`$(SHTOOL) version -lc -dlong as_version.cpp | sed -e 's;.*(;;' -e 's;).*;;'`; \ michael@1: $(POD2MAN) --quotes=none \ michael@1: --section=5 --center="AS Accounts File" \ michael@1: --release="$$D" --date="as-gui $$VS" as-accounts.pod | \ michael@1: sed -e "s;ASGUI_VERSION_STR;$$VL;" >as-accounts.5 michael@1: michael@1: install: all michael@1: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix) michael@1: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) michael@1: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1 michael@1: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man5 michael@1: $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(datadir) michael@1: $(SHTOOL) install -c -s -m 755 as-gui $(DESTDIR)$(bindir)/as-gui michael@1: $(SHTOOL) install -c -m 644 as-gui.1 $(DESTDIR)$(mandir)/man1/as-gui.1 michael@1: $(SHTOOL) install -c -m 644 as-gui.conf.5 $(DESTDIR)$(mandir)/man5/as-gui.conf.5 michael@1: $(SHTOOL) install -c -m 644 as-events.5 $(DESTDIR)$(mandir)/man5/as-events.5 michael@1: $(SHTOOL) install -c -m 644 as-accounts.5 $(DESTDIR)$(mandir)/man5/as-accounts.5 michael@1: $(SHTOOL) install -c -m 644 as-gui.html $(DESTDIR)$(datadir)/as-gui.html michael@1: michael@1: uninstall: michael@1: $(RM) $(DESTDIR)$(datadir)/as-gui.html michael@1: $(RM) $(DESTDIR)$(mandir)/man5/as-accounts.5 michael@1: $(RM) $(DESTDIR)$(mandir)/man5/as-events.5 michael@1: $(RM) $(DESTDIR)$(mandir)/man5/as-gui.conf.5 michael@1: $(RM) $(DESTDIR)$(mandir)/man1/as-gui.1 michael@1: $(RM) $(DESTDIR)$(bindir)/as-gui michael@1: $(RMDIR) $(DESTDIR)$(datadir) >/dev/null 2>&1 || $(TRUE) michael@1: $(RMDIR) $(DESTDIR)$(mandir)/man5 >/dev/null 2>&1 || $(TRUE) michael@1: $(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE) michael@1: $(RMDIR) $(DESTDIR)$(mandir) >/dev/null 2>&1 || $(TRUE) michael@1: $(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE) michael@1: $(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE) michael@1: michael@1: clean: michael@1: $(RM) $(TARGET_PROGS) $(OBJS) $(IDL_OBJ) $(MOC_OBJ) michael@1: ifdef CORBABASE michael@1: $(RM) $(IDL_OBJ) michael@1: endif michael@1: $(RM) as_gui_pcre.tab *.core michael@1: michael@1: distclean: clean michael@1: $(RM) config.log config.status config.cache # Generated by ./configure michael@1: $(RM) Makefile ac_config.h # Generated by ./configure michael@1: ifdef CORBABASE michael@1: $(RM) $(IDL_OUT) # Generated by $(IDL) michael@1: endif michael@1: $(RM) $(MOC_OUT) # Generated by $(MOC) michael@1: michael@1: realclean: distclean michael@1: $(RM) configure ac_config.h.in* # Generated by Autoconf michael@1: $(RM) configure.lineno # Generated by Autoconf michael@1: $(RM) shtool # Generated by Devtool michael@1: michael@1: check: test michael@1: test: as-gui michael@1: ./as_gui_test.sh michael@1: michael@1: .PHONY: doc install uninstall clean distclean realclean check test