Uncommented beaudio code
[pwlib.git] / src / ptlib / unix / Makefile
blob3a6fc6c28fd74bd42c18859e6fcdd16fbccbf379
2 # Makefile
4 # Make file for ptlib library
6 # Portable Windows Library
8 # Copyright (c) 1993-1998 Equivalence Pty. Ltd.
10 # The contents of this file are subject to the Mozilla Public License
11 # Version 1.0 (the "License"); you may not use this file except in
12 # compliance with the License. You may obtain a copy of the License at
13 # http://www.mozilla.org/MPL/
15 # Software distributed under the License is distributed on an "AS IS"
16 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 # the License for the specific language governing rights and limitations
18 # under the License.
20 # The Original Code is Portable Windows Library.
22 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 # Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25 # All Rights Reserved.
27 # Contributor(s): ______________________________________.
29 # $Log$
30 # Revision 1.123 2004/04/02 03:59:46 ykiryanov
31 # Uncommented beaudio code
33 # Revision 1.122 2004/03/17 05:52:59 csoutheren
34 # Removed obsolete udp.cxx
36 # Revision 1.121 2004/02/15 22:36:29 csoutheren
37 # Included ALSA in default non-plugin sound drivers
39 # Revision 1.120 2003/11/18 10:41:20 csoutheren
40 # Fixed problem with linking in static plugins
42 # Revision 1.119 2003/11/14 05:32:09 csoutheren
43 # Removed video input device
45 # Revision 1.118 2003/11/12 03:29:51 csoutheren
46 # Initial version of plugin code from Snark of GnomeMeeting with changes
47 # by Craig Southeren of Post Increment
49 # Revision 1.117 2003/10/27 04:06:13 csoutheren
50 # Added code to allow compilation of new QoS code on Unix
52 # Revision 1.116 2003/10/06 02:30:06 dereksmithies
53 # Remove Stun.cxx as it is not in the repositary.
55 # Revision 1.115 2003/09/17 08:57:33 csoutheren
56 # Moved PSmartPointer and PNotifier into seperate files
57 # Added detection for system regex libraries on all platforms
59 # Revision 1.114 2003/07/28 18:44:01 dsandras
60 # Make use of the libc regex on Linux.
62 # Revision 1.113 2003/05/22 12:41:42 dsandras
64 # Check if TRY_1394AVC/DC=1 to compile support for it or not.
66 # Revision 1.112 2003/04/28 08:37:06 craigs
67 # Added SDL
69 # Revision 1.111 2003/04/16 08:05:50 craigs
70 # CHanged checks of variosu vars to use ifeq
72 # Revision 1.110 2003/04/15 08:05:43 craigs
73 # Added pdns.cxx
75 # Revision 1.109 2003/04/14 21:20:59 dereks
76 # Fix problems for Firewire video. Thanks to Snark on #gnomemeeting
78 # Revision 1.108 2003/03/31 09:03:04 robertj
79 # Added ILS support file.
81 # Revision 1.107 2003/03/28 03:03:28 craigs
82 # Added LDAP sources
84 # Revision 1.106 2003/02/24 17:49:02 rogerh
85 # Add Mac Core Audio changes from Shawn.
87 # Revision 1.105 2003/02/18 03:55:59 dereks
88 # Add 1394AVC pathces from Georgi Georgiev. Thanks!
90 # Revision 1.104 2003/02/04 22:51:20 robertj
91 # Added basic SOAP support, thanks Andreas Sikkema
93 # Revision 1.103 2003/02/04 07:41:10 craigs
94 # Added stun elements
96 # Revision 1.102 2003/01/11 05:30:13 robertj
97 # Added support for IEEE 1394 AV/C cameras, thanks Georgi Georgiev
99 # Revision 1.101 2003/01/06 18:41:08 rogerh
100 # Add NetBSD patches, taken from the NetBSD pkg patches.
101 # Submitted by Andreas Wrede
103 # Revision 1.100 2002/11/22 10:14:07 robertj
104 # QNX port, thanks Xiaodan Tang
106 # Revision 1.99 2002/11/05 01:43:39 robertj
107 # Added missing VxWorks files.
109 # Revision 1.98 2002/10/21 13:01:33 rogerh
110 # bison 1.5 and above need -o to specify the output filename
112 # Revision 1.97 2002/10/10 04:43:44 robertj
113 # VxWorks port, thanks Martijn Roest
115 # Revision 1.96 2002/10/02 08:59:13 craigs
116 # Added pxmlrpcs.cxx
118 # Revision 1.95 2002/09/09 06:42:00 robertj
119 # Added check for Sun audio header before compiling module, thanks Nils Bokermann
121 # Revision 1.94 2002/08/29 01:45:07 robertj
122 # Changed default opt build to include PTRACE
124 # Revision 1.93 2002/08/14 15:18:54 craigs
125 # Added ptts.cxx to build
127 # Revision 1.92 2002/06/27 05:39:34 craigs
128 # Added vxml.cxx
130 # Revision 1.91 2002/06/27 03:53:01 robertj
131 # Added PMemoryFile class.
133 # Revision 1.90 2002/05/01 04:16:43 robertj
134 # Added thread safe collection classes.
136 # Revision 1.89 2002/04/18 05:12:20 robertj
137 # Changed /usr/include to SYSINCDIR helps with X-compiling, thanks Bob Lindell
139 # Revision 1.88 2002/04/02 11:59:32 craigs
140 # Added pxmlrpc
142 # Revision 1.87 2002/02/20 02:37:26 dereks
143 # Initial release of Firewire camera support for linux.
144 # Many thanks to Ryutaroh Matsumoto <ryutaroh@rmatsumoto.org>.
146 # Revision 1.86 2002/01/23 12:09:46 rogerh
147 # Add dtmf decoder to the compilation
149 # Revision 1.85 2002/01/22 03:55:32 craigs
150 # Moved PWavFile to PTCLib
152 # Revision 1.84 2001/12/06 05:39:05 craigs
153 # Added support for PXML component library
155 # Revision 1.83 2001/11/27 22:42:13 robertj
156 # Changed to make system to better support non-shared library building.
158 # Revision 1.82 2001/11/25 23:28:04 robertj
159 # Fixed correct setting of HAS_VIDEO_CAPTURE compile flag
161 # Revision 1.81 2001/08/11 15:38:43 rogerh
162 # Add Mac OS Carbon changes from John Woods <jfw@jfwhome.funhouse.com>
164 # Revision 1.80 2001/07/20 07:36:59 rogerh
165 # Move ESD detection.
167 # Revision 1.79 2001/07/19 09:53:29 rogerh
168 # Add the PWAVFile class to read and write .wav files
170 # Revision 1.78 2001/07/19 09:27:12 rogerh
171 # Add support for EsounD and esd (the Enlightenment Sound Daemon).
172 # This allows OhPhone to run on platforms where EsounD and esd have been
173 # ported which includes Mac OS X.
174 # Code written by Shawn Pai-Hsiang Hsiao <shawn@eecs.harvard.edu>.
176 # Revision 1.77 2001/07/10 03:45:14 robertj
177 # Added queue channel and delay channel classes to ptclib.
179 # Revision 1.76 2001/07/09 06:16:15 yurik
180 # Jac Goudsmit's BeOS changes of July,6th. Cleaning up media subsystem etc.
182 # Revision 1.75 2001/06/27 17:25:46 rogerh
183 # Compile the dummyvideo.cxx file on platforms with no video capture hardware
185 # Revision 1.74 2001/06/26 15:49:15 rogerh
186 # Define HAS_VIDEOCAPTURE on platforms with video capture code
188 # Revision 1.73 2001/06/26 14:20:36 rogerh
189 # Compile the generic video files on all platforms
191 # Revision 1.72 2001/05/29 03:34:39 craigs
192 # Changed to use new HAS_OPENSSL define
194 # Revision 1.71 2001/02/27 01:05:24 robertj
195 # Updated regular expression parser to latest version from Henry Spencer.
197 # Revision 1.70 2001/02/23 08:42:17 rogerh
198 # Add dummyaudio as the default SOUND_SOURCE
200 # Revision 1.69 2001/02/15 04:58:51 robertj
201 # Added class to do secure HTTP based service process.
203 # Revision 1.68 2001/01/24 02:51:15 robertj
204 # Changed definition of list of files for make clean to more correct position
205 # as expected by common.mak
207 # Revision 1.67 2001/01/04 18:13:32 rogerh
208 # Tidy up the Makefile when building video4bsd.cxx
210 # Revision 1.66 2001/01/04 18:02:16 rogerh
211 # remove some old parts refering to linux
213 # Revision 1.65 2001/01/03 23:10:09 craigs
214 # Fixed Makefile problem when video not available
216 # Revision 1.64 2001/01/03 16:48:13 rogerh
217 # Rename V4L_SOURCE to VIDEO_SOURCE (to be less platform specific).
218 # Specify which files to use for VIDEO_SOURCE on non-linux systems eg BSD.
220 # Revision 1.63 2000/12/19 22:20:26 dereks
221 # Add video channel classes to connect to the PwLib PVideoInputDevice class.
222 # Add PFakeVideoInput class to generate test images for video.
224 # Revision 1.62 2000/12/16 13:00:46 rogerh
225 # BeOS changes, submitted by Yuri Kiryanov <openh323@kiryanov.com>
227 # Revision 1.61 2000/07/26 02:40:30 robertj
228 # Added video I/O devices.
230 # Revision 1.60 2000/06/21 01:01:22 robertj
231 # AIX port, thanks Wolfgang Platzer (wolfgang.platzer@infonova.at).
233 # Revision 1.59 2000/04/26 00:40:48 robertj
234 # Redesigned version number system to have single file to change on releases.
236 # Revision 1.58 2000/04/19 00:13:52 robertj
237 # BeOS port changes.
239 # Revision 1.57 2000/04/09 18:19:23 rogerh
240 # Add my changes for NetBSD support.
242 # Revision 1.56 2000/03/08 18:22:03 rogerh
243 # Select oss.cxx sound support for OpenBSD
245 # Revision 1.55 2000/03/03 00:30:31 robertj
246 # Removed ptclilb/proto directory.
248 # Revision 1.54 2000/02/24 11:03:27 craigs
249 # Fixed problem with making PW programs
251 # Revision 1.53 2000/02/17 12:09:19 robertj
252 # Added better random number generator after finding major flaws in MSVCRT version.
254 # Revision 1.52 2000/02/15 23:11:34 robertj
255 # Audio support for FreeBSD, thanks Roger Hardiman.
257 # Revision 1.51 2000/01/31 01:56:48 robertj
258 # Fixed BeOS compatibility problem.
260 # Revision 1.50 2000/01/22 00:52:06 craigs
261 # Added ability to use in any directory, and to create shared libraries
263 # Revision 1.49 2000/01/10 02:22:41 craigs
264 # Updated for new OpenSSL functionality
266 # Revision 1.48 1999/09/27 01:04:42 robertj
267 # BeOS support changes.
269 # Revision 1.47 1999/07/03 04:31:53 robertj
270 # Fixed problems with not including oss.cxx in library if OSTYPE not "linux"
272 # Revision 1.46 1999/06/28 09:28:02 robertj
273 # Portability issues, especially n BeOS (thanks Yuri!)
275 # Revision 1.45 1999/06/21 00:57:10 robertj
276 # Fixed inclusion of getdate.tab.c to clean files.
278 # Revision 1.44 1999/06/09 15:41:18 robertj
279 # Added better UI to make files.
281 # Revision 1.43 1999/04/18 09:36:31 robertj
282 # Get date grammar build.
284 # Revision 1.42 1999/04/16 14:37:41 craigs
285 # Added build for getdate.y
287 # Revision 1.41 1999/03/02 05:41:59 robertj
288 # More BeOS changes
290 # Revision 1.40 1999/02/25 03:44:58 robertj
291 # Sound driver implementation changes for various unix platforms.
293 # Revision 1.39 1999/02/22 13:24:47 robertj
294 # Added first cut sound implmentation.
296 # Revision 1.38 1999/02/19 11:33:51 robertj
297 # Added IP access control lists file.
299 # Revision 1.37 1999/01/22 00:30:46 robertj
300 # Yet more build environment changes.
302 # Revision 1.36 1999/01/21 08:27:18 robertj
303 # Added tarfiles target
305 # Revision 1.35 1999/01/16 09:54:04 robertj
306 # Changed some macros to more informative names.
308 # Revision 1.34 1998/12/04 12:53:14 craigs
309 # Fixed problem with regex in wrong directory
311 # Revision 1.33 1998/12/02 02:10:19 robertj
312 # New directory structure
314 # Revision 1.32 1998/11/22 10:44:10 craigs
315 # New GUI build system - for sure!
317 # Revision 1.31 1998/11/22 08:11:28 craigs
318 # Changed for new GUI build mechanism
320 # Revision 1.29 1998/10/15 07:03:46 robertj
321 # Moved object.cxx to last place so memory leak destructor is called at the right time.
323 # Revision 1.28 1998/09/24 07:40:34 robertj
324 # Moved structured file to common.
325 # Removed small files only containing pragma implementations
327 # Revision 1.27 1998/09/24 04:20:50 robertj
328 # Added open software license.
330 # Revision 1.26 1998/08/21 05:32:14 robertj
331 # Allowed for multiple "all" target, so can build lib from app makefile.
333 # Revision 1.25 1998/02/12 04:17:55 robertj
334 # Made DEBUG variable optional
336 # Revision 1.24 1998/01/26 07:25:21 robertj
337 # Removed tiny files, as now have pragma in the common files.
339 # Revision 1.22 1998/01/04 09:41:20 robertj
340 # Changed perasn.cxx to asner.cxx
342 # Revision 1.21 1998/01/04 08:29:37 craigs
343 # Changed for Linux
345 # Revision 1.20 1997/04/22 11:00:01 craigs
346 # Added SSL and DLL functions
348 # Revision 1.19 1996/11/17 08:35:50 craigs
349 # Fixed distsrc target
351 # Revision 1.18 1996/11/17 02:35:12 craigs
352 # Removed SSL from list of build targets
354 # Revision 1.16 1996/10/31 10:30:03 craigs
355 # Lots of changes
357 # Revision 1.15 1996/09/21 05:41:41 craigs
358 # Added new common files
360 # Revision 1.14 1996/08/03 12:05:10 craigs
361 # *** empty log message ***
363 # Revision 1.13 1996/07/03 06:32:18 craigs
364 # Removed spurious lines causing warnings during library make
366 # Revision 1.12 1996/06/29 11:37:28 craigs
367 # Added unix system type to object directories
368 # Added support for Linux shared libraries
370 # Revision 1.11 1996/06/19 01:56:26 craigs
371 # Added uhttpsvc to the list
373 # Revision 1.10 1996/06/14 09:30:43 craigs
374 # Included buildinc stuff
376 # Revision 1.9 1996/05/10 11:03:22 craigs
377 # Fixed distsrc rule to only include ptlib stuff
379 # Revision 1.8 1996/05/03 13:48:58 craigs
380 # Sun4 fixes
382 # Revision 1.7 1996/05/02 10:53:24 craigs
383 # Fixed problem with SUN4 target
385 # Revision 1.6 1996/04/17 11:12:20 craigs
386 # Latest version pre mibmaster release 1.0
388 # Revision 1.5 1996/04/15 10:50:13 craigs
389 # Last revision prior to release of MibMaster
391 # Revision 1.4 1996/01/26 11:09:04 craigs
392 # *** empty log message ***
394 # Revision 1.3 1995/12/08 13:18:13 craigs
395 # Lots of changes
397 # Revision 1.2 1995/07/09 00:35:42 craigs
398 # Latest and greatest omnibus change
400 # Revision 1.1 1995/01/16 20:50:44 craigs
401 # Initial revision
403 # Revision 1.1 1993/07/12 21:22:16 craigs
404 # Initial revision
408 ifndef PWLIBDIR
409 PWLIBDIR := $(HOME)/pwlib
410 endif
412 include $(PWLIBDIR)/make/unix.mak
414 OBJDIR = $(PT_OBJDIR)
415 LIBDIR = $(PW_LIBDIR)
416 TARGET = $(LIBDIR)/$(PTLIB_FILE)
417 VERSION_FILE = $(PWLIBDIR)/version.h
419 ##########################################
421 COMPONENT_SRC_DIR = ../../ptclib
422 COMMON_SRC_DIR = ../common
423 VPATH_CXX := $(COMMON_SRC_DIR) $(COMPONENT_SRC_DIR)
424 PLUGIN_DIR = ../../../plugins
427 #####CFLAGS += -DPTRACING=1
430 # try and keep the order of modules in reverse order of usage so any
431 # global statics will be constructed/destructed in the correct order
434 ifeq (1,$(HAS_OPENLDAP))
435 LDAP_SOURCE := $(COMPONENT_SRC_DIR)/pldap.cxx \
436 $(COMPONENT_SRC_DIR)/pils.cxx
437 endif
439 ifeq (1,$(HAS_OPENSSL))
440 SSL_SOURCE := $(COMPONENT_SRC_DIR)/pssl.cxx \
441 $(COMPONENT_SRC_DIR)/shttpsvc.cxx
442 endif
444 ifeq (1,$(HAS_SDL))
445 SDL_SOURCE := $(COMPONENT_SRC_DIR)/vsdl.cxx
446 endif
450 ## VIDEOCAPTURE DRIVERS
451 ## Note this is mostly handled by the plugin system
453 VIDEO_SOURCE := $(COMMON_SRC_DIR)/vfakeio.cxx \
454 $(COMMON_SRC_DIR)/videoio.cxx \
455 $(COMMON_SRC_DIR)/vconvert.cxx
457 ifeq ($(HAS_PLUGINS),0)
459 ifeq ($(OSTYPE),linux)
460 VPATH_CXX += $(PLUGIN_DIR)/vidinput_v4l
461 VIDEO_SOURCE += $(PLUGIN_DIR)/vidinput_v4l/vidinput_v4l.cxx
462 endif
464 # ifneq (,$(wildcard $(SYSINCDIR)/linux/videodev.h))
465 # VIDEO_CAPTURE_SOURCE = video4linux.cxx
466 # endif
468 # VIDEO_CAPTURE_SOURCE = dummyvideo.cxx
470 # ifeq ($(OSTYPE),FreeBSD)
471 # VIDEO_CAPTURE_SOURCE = video4bsd.cxx
472 # endif
474 # ifeq ($(OSTYPE),OpenBSD)
475 # VIDEO_CAPTURE_SOURCE = video4bsd.cxx
476 # endif
478 # ifeq ($(OSTYPE),NetBSD)
479 # VIDEO_CAPTURE_SOURCE = video4bsd.cxx
480 # endif
482 # ifeq (1,$(TRY_1394DC))
483 # VIDEO_CAPTURE_SOURCE += video4dc1394.cxx
484 # endif
486 # ifeq (1,$(TRY_1394AVC))
487 # VIDEO_CAPTURE_SOURCE += video4avc1394.cxx
488 # endif
490 endif # HAS_PLUGINS
493 ## SOUND DRIVERS
494 ## Note this is mostly handled by the plugin system
496 ifeq ($(HAS_PLUGINS),0)
498 ifeq ($(OSTYPE),linux)
499 VPATH_CXX += $(PLUGIN_DIR)/sound_oss
500 SOUND_SOURCE = $(PLUGIN_DIR)/sound_oss/sound_oss.cxx
502 ifeq ($(HAS_ALSA),1)
504 VPATH_CXX += $(PLUGIN_DIR)/sound_alsa
505 SOUND_SOURCE = $(PLUGIN_DIR)/sound_alsa/sound_alsa.cxx
506 endif
508 endif
510 # #Set SOUND_SOURCE to dummyaudio, a file which links but does not
511 # #actually play or record audio.
512 # #This will then be overridden by platform specific audio files.
514 # SOUND_SOURCE = dummyaudio.cxx
517 # ifeq ($(OSTYPE),solaris)
518 # ifneq (,$(wildcard /usr/include/sys/audioio.h))
519 # SOUND_SOURCE = sunaudio.cxx
520 # endif
521 # endif
523 # ifeq ($(OSTYPE),FreeBSD)
524 # SOUND_SOURCE = oss.cxx
525 # endif
527 # ifeq ($(OSTYPE),OpenBSD)
528 # SOUND_SOURCE = oss.cxx
529 # endif
531 # ifeq ($(OSTYPE),NetBSD)
532 # SOUND_SOURCE = oss.cxx
533 # endif
535 # ifeq ($(OSTYPE),AIX)
536 # SOUND_SOURCE = ossaix.cxx
537 # endif
539 ifeq ($(OSTYPE),beos)
541 # ifdef MEDIA_KIT_UPDATE
542 SOUND_SOURCE = beaudio.cxx
543 # else
544 # BEAUDIO_SRC_DIR = ./beaudio
545 # VPATH_CXX += $(BEAUDIO_SRC_DIR)
547 # SOUND_SOURCE = beaudio.cxx \
548 # $(BEAUDIO_SRC_DIR)/MediaRecorder.cxx \
549 # $(BEAUDIO_SRC_DIR)/MediaRecorderNode.cxx
550 # endif
552 # VIDEO_SOURCE = $(COMMON_SRC_DIR)/vfakeio.cxx \
553 # $(COMMON_SRC_DIR)/videoio.cxx \
554 # video4beos.cxx \
555 # $(COMMON_SRC_DIR)/vconvert.cxx
556 endif
558 # ifeq ($(OSTYPE),Carbon)
559 # MACAUDIO_SRC_DIR = ./macosaudio
560 # VPATH_CXX += $(MACAUDIO_SRC_DIR)
562 # SOUND_SOURCE = macosaudio.cxx \
563 # $(MACAUDIO_SRC_DIR)/ringbuffer.cxx \
564 # $(MACAUDIO_SRC_DIR)/MacMain.cxx \
565 # $(MACAUDIO_SRC_DIR)/SequenceGrabber.cxx \
566 # $(MACAUDIO_SRC_DIR)/SoundMangler.cxx
567 # endif
569 # ifeq ($(OSTYPE),Darwin)
570 # SOUND_SOURCE = maccoreaudio.cxx
571 # endif
573 # ifeq ($(OSTYPE),VxWorks)
574 # SOUND_SOURCE = vxaudio.cxx
575 # endif
577 # ifdef HAS_ESD
578 # SOUND_SOURCE = esdaudio.cxx
579 # endif
581 # ifeq ($(OSTYPE),QNX)
582 # SOUND_SOURCE = qsa.cxx
583 # endif
585 endif # HAS_PLUGINS
589 ifeq (1,$(HAS_EXPAT))
590 PXML_SOURCE = $(COMPONENT_SRC_DIR)/pxml.cxx \
591 $(COMPONENT_SRC_DIR)/pxmlrpc.cxx \
592 $(COMPONENT_SRC_DIR)/pxmlrpcs.cxx \
593 $(COMPONENT_SRC_DIR)/psoap.cxx \
594 $(COMPONENT_SRC_DIR)/vxml.cxx
595 endif
597 GETDATE_SOURCE = $(COMMON_SRC_DIR)/getdate.tab.c
599 SOURCES = \
600 $(COMPONENT_SRC_DIR)/asner.cxx \
601 $(COMPONENT_SRC_DIR)/ipacl.cxx \
602 $(COMPONENT_SRC_DIR)/modem.cxx \
603 $(COMPONENT_SRC_DIR)/qchannel.cxx \
604 $(COMPONENT_SRC_DIR)/delaychan.cxx \
605 $(COMPONENT_SRC_DIR)/memfile.cxx \
606 $(COMPONENT_SRC_DIR)/cypher.cxx \
607 $(COMPONENT_SRC_DIR)/random.cxx \
608 $(COMPONENT_SRC_DIR)/socks.cxx \
609 $(COMPONENT_SRC_DIR)/httpsvc.cxx \
610 $(COMPONENT_SRC_DIR)/snmpclnt.cxx \
611 $(COMPONENT_SRC_DIR)/snmpserv.cxx \
612 $(COMPONENT_SRC_DIR)/psnmp.cxx \
613 $(COMPONENT_SRC_DIR)/pasn.cxx \
614 $(COMPONENT_SRC_DIR)/httpform.cxx \
615 $(COMPONENT_SRC_DIR)/httpclnt.cxx \
616 $(COMPONENT_SRC_DIR)/httpsrvr.cxx \
617 $(COMPONENT_SRC_DIR)/http.cxx \
618 $(COMPONENT_SRC_DIR)/html.cxx \
619 $(COMPONENT_SRC_DIR)/ftpclnt.cxx \
620 $(COMPONENT_SRC_DIR)/ftpsrvr.cxx \
621 $(COMPONENT_SRC_DIR)/ftp.cxx \
622 $(COMPONENT_SRC_DIR)/inetmail.cxx \
623 $(COMPONENT_SRC_DIR)/inetprot.cxx \
624 $(COMPONENT_SRC_DIR)/telnet.cxx \
625 $(COMPONENT_SRC_DIR)/pwavfile.cxx \
626 $(COMPONENT_SRC_DIR)/dtmf.cxx \
627 $(COMPONENT_SRC_DIR)/ptts.cxx \
628 $(COMPONENT_SRC_DIR)/pstun.cxx \
629 $(COMPONENT_SRC_DIR)/pdns.cxx \
630 $(SDL_SOURCE) \
631 $(SSL_SOURCE) \
632 $(LDAP_SOURCE) \
633 $(VIDEO_SOURCE) \
634 $(GETDATE_SOURCE) \
635 $(PXML_SOURCE) \
636 $(SOUND_SOURCE) \
637 uicmp.cxx \
638 $(COMMON_SRC_DIR)/sound.cxx \
639 $(COMMON_SRC_DIR)/pluginmgr.cxx \
640 $(COMMON_SRC_DIR)/sockets.cxx \
641 $(COMMON_SRC_DIR)/qos.cxx \
642 $(COMMON_SRC_DIR)/pvidchan.cxx \
643 socket.cxx \
644 svcproc.cxx \
645 remconn.cxx \
646 config.cxx \
647 udll.cxx \
648 $(COMMON_SRC_DIR)/ptime.cxx \
649 pipechan.cxx \
650 serchan.cxx \
651 $(COMMON_SRC_DIR)/sfile.cxx \
652 channel.cxx \
653 osutil.cxx \
654 $(COMMON_SRC_DIR)/osutils.cxx \
655 $(COMMON_SRC_DIR)/safecoll.cxx \
656 tlib.cxx \
657 switch.cxx \
658 assert.cxx \
659 $(COMMON_SRC_DIR)/collect.cxx \
660 $(COMMON_SRC_DIR)/contain.cxx \
661 $(COMMON_SRC_DIR)/object.cxx # must be last module
663 ifneq ($(HAS_REGEX),1)
664 OBJS = $(OBJDIR)/regcomp.o $(OBJDIR)/regexec.o $(OBJDIR)/regerror.o $(OBJDIR)/regfree.o
665 endif
667 CLEAN_FILES = $(GETDATE_SOURCE)
670 #######################################################
672 include ../../../make/common.mak
674 #######################################################
676 alllibs:
677 $(MAKE) both
678 $(MAKE) bothshared
681 $(OBJDIR)/regcomp.o: $(COMMON_SRC_DIR)/regex/regcomp.c
682 $(CC) $(CFLAGS) $(DEBUG_FLAG) $(OPTCCFLAGS) -c -DPOSIX_MISTAKE -I$(COMMON_SRC_DIR)/regex -o $@ -c $<
684 $(OBJDIR)/regexec.o: $(COMMON_SRC_DIR)/regex/regexec.c
685 $(CC) $(CFLAGS) $(DEBUG_FLAG) $(OPTCCFLAGS) -c -DPOSIX_MISTAKE -I$(COMMON_SRC_DIR)/regex -o $@ -c $<
687 $(OBJDIR)/regerror.o: $(COMMON_SRC_DIR)/regex/regerror.c
688 $(CC) $(CFLAGS) $(DEBUG_FLAG) $(OPTCCFLAGS) -c -DPOSIX_MISTAKE -I$(COMMON_SRC_DIR)/regex -o $@ -c $<
690 $(OBJDIR)/regfree.o: $(COMMON_SRC_DIR)/regex/regfree.c
691 $(CC) $(CFLAGS) $(DEBUG_FLAG) $(OPTCCFLAGS) -c -DPOSIX_MISTAKE -I$(COMMON_SRC_DIR)/regex -o $@ -c $<
694 ifdef REQUIRES_SEPARATE_SWITCH
695 $(OBJDIR)/switch.o: ./switch.cxx
696 @if [ ! -d $(OBJDIR) ] ; then mkdir -p $(OBJDIR) ; fi
697 $(CPLUS) $(CFLAGS) $(STDCCFLAGS) -c $< -o $@
698 endif
700 $(OBJDIR)/getdate.tab.o: $(GETDATE_SOURCE)
701 $(CC) $(CFLAGS) $(STDCCFLAGS) -c $< -o $@
703 $(DEPDIR)/getdate.tab.dep: $(GETDATE_SOURCE)
704 $(CC) $(STDCCFLAGS) -M $< >> $@
706 $(GETDATE_SOURCE): $(COMMON_SRC_DIR)/getdate.y
707 bison $(COMMON_SRC_DIR)/getdate.y -o $(COMMON_SRC_DIR)/getdate.tab.c
709 #######################################################
711 LIB_BASENAME=$(PTLIB_BASE)
712 LIB_FILENAME=$(PTLIB_FILE)
714 include $(PWLIBDIR)/make/lib.mak
716 #######################################################
718 # End of Makefile