# # The contents of this file are subject to the Mozilla Public License # Version 1.0 (the "License"); you may not use this file except in # compliance with the License. You may obtain a copy of the License at # http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS" # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See # the License for the specific language governing rights and limitations # under the License. # # The Original Code is CPhone, a cross platform voip gui. # # The Initial Developer of the Original Code is Derek Smithies. # # Copyright (C) 2002 Indranet Technologies Ltd, # http://www.indranet-technologies.com # All Rights Reserved. # # Contributor(s): _______________ # # # # $Log: Makefile,v $ # Revision 1.10 2004/04/23 05:09:59 dereksmithies # Fixes so it works with latest openh323 lib, and not lock X display. # # Revision 1.9 2004/01/02 04:06:24 dereksmithies # Bring up to date with openh323 libraries. Get Plugins to work corectly. # # Revision 1.8 2003/08/26 04:48:02 dereksmithies # Fixes to get statistics working right, add icons, add ok,cancel,apply buttons # # Revision 1.7 2003/07/21 14:54:18 peternixon # Needed for the AMD64 architecture where 32 and 64 bit libraries can reside side-by-side. # # Revision 1.6 2003/05/15 19:49:15 peternixon # Remove support for qt2 as cphone no longer works with it # # Revision 1.5 2003/05/13 09:18:14 peternixon # Use QT3 by default if available # # Revision 1.4 2003/05/09 03:08:24 dereksmithies # Fix Microtelco handling, and message display # # Revision 1.3 2003/02/03 09:15:06 rogerhardiman # Add extra QTDIR search to find QT on my FreeBSD system # # Revision 1.2 2002/11/28 22:51:59 dereksmithies # Add switch so it compiles on FreeBSD. Thanks Roger Hardiman # # Revision 1.1.1.1 2002/05/12 22:55:00 dereksmithies # Initial release. # # # # PROG = cphone SOURCES := \ addressbookSub.cxx \ audiopropertiesSub.cxx \ callanswerSub.cxx \ cpendpoint.cxx \ gdisplay.cxx \ main.cxx \ mainwindowSub.cxx \ message.cxx \ options.cxx \ precompile.cxx \ qtvid.cxx \ settingsSub.cxx \ statisticsSub.cxx \ vdisplay.cxx \ videopropertiesSub.cxx UIFILES := \ addressbook.ui \ audioproperties.ui \ callanswer.ui \ mainwindow.ui \ messagebox.ui \ settings.ui \ statistics.ui \ videoproperties.ui MOCFILES := \ vdisplay.h # message.h \ ################################################## ifndef QTDIR ifneq (,$(wildcard /usr/local/qt)) QTDIR=/usr/local/qt else ifneq (,$(wildcard /usr/lib/qt3)) QTDIR=/usr/lib/qt3 else ifneq (,$(wildcard ~/qt)) QTDIR=~/qt else ifneq (,$(wildcard ../qt)) QTDIR=../qt else ifneq (,$(wildcard /usr/X11R6/include/qapplication.h)) QTDIR=/usr/X11R6 endif endif endif endif endif endif ifndef XLIBDIR XLIBDIR=/usr/X11R6/lib endif ifndef QTLIBDIR QTLIBDIR=$(QTDIR)/lib endif UIC = $(QTDIR)/bin/uic MOC = $(QTDIR)/bin/moc STDCCFLAGS += -I$(QTDIR)/include -DQT_THREAD_SUPPORT LDFLAGS += -L$(QTLIBDIR) -L$(XLIBDIR) ENDLDLIBS += -lqt-mt -lSM -lICE -lXext -lX11 ifeq ($(OSTYPE),linux) ENDLDLIBS += -ldl endif UISRC := $(patsubst %.ui,%.cxx,$(UIFILES)) UIHDRS := $(patsubst %.ui,%.h,$(UIFILES)) MOCFILES += $(UIHDRS) MOCSRCRAW := $(addprefix moc_, $(MOCFILES)) MOCSRC := $(patsubst %.h,%.cxx,$(MOCSRCRAW)) SOURCES += $(MOCSRC) $(UISRC) ################################################## ifndef OPENH323DIR OPENH323DIR=$(HOME)/openh323 endif include $(OPENH323DIR)/openh323u.mak ################################################## %.cxx %.h : %.ui $(UIC) -impl $*.h $*.ui > $*.cxx $(UIC) $*.ui > $*.h moc_%.cxx: %.h $(MOC) -f$*.h -o $@ < $*.h .PRECIOUS: $(UIHDRS) $(MOCSRC) clean:: rm -f $(UISRC) $(UIHDRS) $(MOCSRC) main.cxx : mainwindow.h addressbookSub.cxx : addressbook.h mainwindow.h callanswer.h audiopropertiesSub.cxx : audioproperties.h mainwindow.h callanswerSub.cxx : callanswer.h mainwindow.h cpendpoint.cxx : qtvid.h gdisplay.cxx : messagebox.h mainwindowSub.cxx : $(UIHDRS) qtvid.h message.h : messagebox.h options.cxx : mainwindow.h qtvid.h qtvid.cxx : qtvid.h settingsSub.cxx : settings.h mainwindow.h statisticsSub.cxx : statistics.h mainwindow.h videopropertiesSub.cxx : videoproperties.h mainwindow.h qtvid.h gdisplay.cxx : statistics.h # End of File ####################################