Changed to use sound device factory to create PSoundChannel for
[opal/cbnco.git] / samples / openphone / Makefile
blobbe118c4529af29dd4b7d73a5494491a6a7e73e56
2 # Makefile
4 # Make file for simple sample application for the Open Phone Abstraction library.
6 # Copyright (c) 2006 Derek J Smithies
8 # The contents of this file are subject to the Mozilla Public License
9 # Version 1.0 (the "License"); you may not use this file except in
10 # compliance with the License. You may obtain a copy of the License at
11 # http://www.mozilla.org/MPL/
13 # Software distributed under the License is distributed on an "AS IS"
14 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15 # the License for the specific language governing rights and limitations
16 # under the License.
18 # The Original Code is Open Phone Abstraction Library.
20 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
22 # Contributor(s): ______________________________________.
24 # $Log$
25 # Revision 1.3 2006/07/31 07:39:21 rjongbloed
26 # Fixed default target to be PWlib one, not just to build opephone.cxx
27 # Added OPAL directory default (no OPALDIR env var) to be ../.. before
28 # searhcing for $(HOME) and /usr/local/opal
30 # Revision 1.2 2006/07/22 00:24:55 dereksmithies
31 # Add linux magic so it compiles and runs on linux.
32 # Add the command wxrc to turn the openphone.xrc file into openphone.cxx
33 # Compile openphone.cxx, which defines the function InitXmlResource();
34 # Since openphone.cxx is an auto generated file, get cvs to ignore this file.
36 # Revision 1.1 2006/07/19 10:41:51 dereksmithies
37 # First steps towards having a unix compiled openphone.
41 PROG := openphone
42 SOURCES := main.cxx openphone.cxx
44 VERSION_FILE = $(OPALDIR)/version.h
46 STDCCFLAGS += `wx-config --cxxflags`
47 LDFLAGS += `wx-config --libs`
49 ifndef OPALDIR
50 ifneq (,$(wildcard ../../version.h))
51 OPALDIR=$(wildcard ../..)
52 else
53 ifneq (,$(wildcard $(HOME)/opal))
54 OPALDIR=$(HOME)/opal
55 else
56 ifneq (,$(wildcard /usr/local/opal))
57 OPALDIR=/usr/local/opal
58 else
59 default_target :
60 @echo Cannot find OPAL in standard locations, you must set the OPALDIR
61 @echo environment variable to build this application.
62 endif
63 endif
64 endif
65 endif
67 ifdef OPALDIR
68 include $(OPALDIR)/opal_inc.mak
69 endif
71 openphone.cxx : openphone.xrc
72 wxrc openphone.xrc -c -o openphone.cxx