4 # First part of make rules, included in ptlib.mak and pwlib.mak.
5 # Note: Do not put any targets in the file. This should defaine variables
6 # only, as targets are all in common.mak
8 # Portable Windows Library
10 # Copyright (c) 1993-1998 Equivalence Pty. Ltd.
12 # The contents of this file are subject to the Mozilla Public License
13 # Version 1.0 (the "License"); you may not use this file except in
14 # compliance with the License. You may obtain a copy of the License at
15 # http://www.mozilla.org/MPL/
17 # Software distributed under the License is distributed on an "AS IS"
18 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
19 # the License for the specific language governing rights and limitations
22 # The Original Code is Portable Windows Library.
24 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
26 # Portions are Copyright (C) 1993 Free Software Foundation, Inc.
27 # All Rights Reserved.
29 # Contributor(s): ______________________________________.
32 # Revision 1.200 2006/01/17 18:57:17 dsandras
33 # Applied patch from Brian Lu <brian lu sun com> to fix compilation with SUN
36 # Revision 1.199 2006/01/08 14:49:08 dsandras
37 # Several fixes to allow compilation on Open Solaris thanks to Brian Lu <brian.lu _AT_____ sun.com>. Many thanks!
39 # Revision 1.198 2005/12/04 22:50:50 csoutheren
40 # Applied patch for Alpha thanks to Kilian Krause
42 # Revision 1.197 2005/12/04 22:38:38 csoutheren
43 # Added patch for hppa64. Thanks to Kilian Krause
45 # Revision 1.196 2005/09/25 10:51:23 dominance
46 # almost complete the mingw support. We'll be there soon. ;)
48 # Revision 1.195 2005/02/23 21:29:52 dominance
49 # have configure check for bison as we know we'll need it and stop implicit definition of PWLIBDIR. *geesh* that was about time, eh? ;)
51 # Revision 1.194 2005/01/14 11:49:17 csoutheren
52 # Removed -s flag so executables are not stripped by default
54 # Revision 1.193 2004/11/16 00:32:34 csoutheren
55 # Added Cygwin support
57 # Revision 1.192 2004/10/28 20:07:10 csoutheren
58 # Fixes for MacOSX platforms, thanks to Hannes Friederich
60 # Revision 1.191 2004/08/31 23:52:31 csoutheren
61 # Changed check for Mac OS version, thanks to Hannes Friederich
63 # Revision 1.190 2004/06/18 00:38:08 csoutheren
64 # Added check for FD_SETSIZE as suggested by Joegen E. Baclor
66 # Revision 1.189 2004/06/10 01:36:44 csoutheren
67 # Fixed problems with static links
69 # Revision 1.188 2004/05/30 04:49:42 ykiryanov
70 # Streamlined BeOS section
72 # Revision 1.187 2004/04/25 22:11:34 ykiryanov
73 # Added posix library to make files
75 # Revision 1.186 2004/04/21 03:47:36 ykiryanov
76 # Added libdl.so to library list for BeOS
78 # Revision 1.185 2004/04/12 03:35:27 csoutheren
79 # Fixed problems with non-recursuve mutexes and critical sections on
80 # older compilers and libc
82 # Revision 1.184 2004/02/26 11:19:07 csoutheren
83 # Added changes for BeOS, thanks to Yuri Kiryanov
84 # Added changes to fix link problems on some platforms, thanks to Klaus Kaempf
86 # Revision 1.183 2004/02/21 19:44:54 ykiryanov
87 # Fixed make parameters for BeOS: Changed default on BeOS to using Be BONE
89 # Revision 1.182 2004/02/11 05:09:14 csoutheren
90 # Fixed problems with regex libraries on Solaris, and with host OS numbering
91 # being a quoted string rather than a number. Thanks to Chad Attermann
92 # Fixed problems SSL detection problems thanks to Michal Zygmuntowicz
94 # Revision 1.181 2004/02/09 06:24:37 csoutheren
95 # Allowed CXX environment variable to define C++ compiler to use
96 # as required by configure
98 # Revision 1.180 2004/01/29 13:43:59 csoutheren
99 # Moved some preprocessor symbols from the command line to include files
100 # Modified to set P_HAS_SEMAPHORES to 0 for Linux kernels >= 2.6
101 # Applied patches for Solaris thanks to Michal Zygmuntowicz
103 # Revision 1.179 2003/11/02 16:00:26 shawn
104 # Panther requires -lresolv
106 # Revision 1.178 2003/09/18 23:02:35 csoutheren
107 # Removed definition of PMEMORY_CHECK
109 # Revision 1.177 2003/09/17 01:18:03 csoutheren
110 # Removed recursive include file system and removed all references
111 # to deprecated coooperative threading support
113 # Revision 1.176 2003/09/08 21:11:09 dereksmithies
114 # Remove hardcoded path from make file. Thanks Damien Sandras.
116 # Revision 1.175 2003/07/24 22:01:42 dereksmithies
117 # Add fixes from Peter Nixon for fixing install problems. Thanks.
119 # Revision 1.174 2003/06/18 13:19:01 csoutheren
120 # Default debug builds now shared
122 # Revision 1.173 2003/06/17 12:05:01 csoutheren
123 # Changed compiler flags for optimised build
125 # Revision 1.172 2003/05/22 12:17:06 dsandras
127 # Removed unneeded code since Firewire support has been moved to configure.
129 # Revision 1.171 2003/05/06 09:47:20 robertj
130 # Fixed up MacOSX changes so is compatible with previous "API" not requiring
131 # downstream libraries to change
133 # Revision 1.170 2003/05/06 06:59:12 robertj
134 # Dynamic library support for MacOSX, thanks Hugo Santos
136 # Revision 1.169 2003/05/05 13:10:59 robertj
137 # Solaris compatibility
139 # Revision 1.168 2003/04/17 07:29:27 robertj
140 # Fixed solaris link problem
142 # Revision 1.167 2003/04/17 00:05:04 craigs
143 # Added patches from Hugo Santos mainly for Darwin compatibility
145 # Revision 1.166 2003/04/16 07:16:55 craigs
146 # Modified for new autoconf based configuration
149 # Log truncated by CRS 14 April 2003
153 echo "No PWLIBDIR environment variable defined!"
154 echo "You need to define PWLIBDIR!"
155 echo "Try something like:"
156 echo "PWLIBDIR = $(HOME)/pwlib"
160 ####################################################
162 # include generated build options file, then include it
163 include $(PWLIBDIR)/make/ptbuildopts.mak
165 ###############################################################################
167 # this section used to normalise the machine name and OS type
168 # this is now done by autoconf - but this left here as a reference
172 ifdef USE_OLD_MACHINE_CHECKING
175 OSTYPE := $(shell uname -s)
179 MACHTYPE := $(shell uname -m)
182 ifneq (,$(findstring linux,$(HOSTTYPE)))
183 ifneq (,$(findstring $(HOSTTYPE),i386-linux i486-linux))
189 ifeq ($(OSTYPE),mklinux)
194 ifneq (,$(findstring $(OSTYPE),Linux linux-gnu))
198 ifneq (,$(findstring $(OSTYPE),Solaris SunOS))
202 ifneq (,$(findstring $(OSTYPE),IRIX))
206 #Convert bash shell OSTYPE of 'freebsd3.4' to 'FreeBSD'
207 ifneq (,$(findstring freebsd,$(OSTYPE)))
211 #Convert bash shell OSTYPE of 'openbsd2.6' to 'OpenBSD'
212 ifneq (,$(findstring openbsd,$(OSTYPE)))
216 ifneq (,$(findstring macos,$(OSTYPE)))
220 ifneq (,$(findstring darwin,$(OSTYPE)))
224 ifneq (,$(findstring AIX,$(OSTYPE)))
228 ifneq (,$(findstring $(OS),VXWORKS))
232 ifneq (,$(findstring netbsd,$(OSTYPE)))
236 ifneq (,$(findstring sparc, $(MACHTYPE)))
240 ifneq (,$(findstring sun4, $(MACHTYPE)))
244 ifneq (,$(findstring i86, $(MACHTYPE)))
248 ifneq (,$(findstring i386, $(MACHTYPE)))
252 ifneq (,$(findstring i486, $(MACHTYPE)))
254 POSSIBLE_CPUTYPE := i486
257 ifneq (,$(findstring i586, $(MACHTYPE)))
259 POSSIBLE_CPUTYPE := i586
262 ifneq (,$(findstring i686, $(MACHTYPE)))
264 POSSIBLE_CPUTYPE := i686
267 #make sure x86 does not match x86_64 by mistake
268 ifneq (,$(findstring x86, $(MACHTYPE)))
269 ifneq (,$(findstring x86_64, $(MACHTYPE)))
276 ifneq (,$(findstring powerpc, $(MACHTYPE)))
280 ifneq (,$(findstring ppc, $(MACHTYPE)))
281 ifneq (,$(findstring ppc64, $(MACHTYPE)))
288 ifneq (,$(findstring Power, $(MACHTYPE)))
292 ifneq (,$(findstring mips, $(MACHTYPE)))
296 ifneq (,$(findstring alpha, $(MACHTYPE)))
300 ifneq (,$(findstring sparc, $(MACHTYPE)))
304 ifneq (,$(findstring ia64, $(MACHTYPE)))
308 ifneq (,$(findsting hppa64, $(MACHTYPE)))
312 ifneq (,$(findstring s390, $(MACHTYPE)))
313 ifneq (,$(findstring s390x, $(MACHTYPE)))
320 ifneq (,$(findstring armv4l, $(MACHTYPE)))
324 CPUTYPE := $(POSSIBLE_CPUTYPE)
329 endif # USE_OLD_MACHINE_CHECKING
333 optdepend debugdepend bothdepend \
334 optshared debugshared bothshared \
335 optnoshared debugnoshared bothnoshared \
336 optclean debugclean clean \
339 .PHONY: all $(STANDARD_TARGETS)
342 ifeq (,$(findstring $(OSTYPE),linux FreeBSD OpenBSD NetBSD solaris beos Darwin Carbon AIX Nucleus VxWorks rtems QNX cygwin mingw))
346 @echo ######################################################################
347 @echo "Warning: OSTYPE=$(OSTYPE) support has not been confirmed. This may"
348 @echo " be a new operating system not yet encountered, or more"
349 @echo " likely, the OSTYPE and MACHTYPE environment variables are"
350 @echo " set to unusual values. You may need to explicitly set these"
351 @echo " variables for the correct operation of this system."
353 @echo " Currently supported OSTYPE names are:"
354 @echo " linux Linux linux-gnu mklinux"
355 @echo " solaris Solaris SunOS"
356 @echo " FreeBSD OpenBSD NetBSD beos Darwin Carbon"
357 @echo " VxWorks rtems mingw"
359 @echo " **********************************"
360 @echo " *** DO NOT IGNORE THIS MESSAGE ***"
361 @echo " **********************************"
363 @echo " The system almost certainly will not compile! When you get"
364 @echo " it working please send patches to support@equival.com.au"
365 @echo ######################################################################
368 $(STANDARD_TARGETS) :: default_target
372 default_target : help
376 ####################################################
378 # Set default for shared library usage
386 # -Wall must be at the start of the options otherwise
387 # any -W overrides won't have any effect
388 ifeq ($(USE_GCC),yes)
393 STDCCFLAGS += $(RPM_OPT_FLAGS)
396 ifneq ($(OSTYPE),rtems)
398 SYSINCDIR := /usr/include
402 ####################################################
404 ifeq ($(OSTYPE),linux)
406 ifeq ($(MACHTYPE),x86)
408 ifeq ($(CPUTYPE),crusoe)
409 STDCCFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=0
410 STDCCFLAGS += -malign-jumps=0 -malign-loops=0
412 STDCCFLAGS += -mcpu=$(CPUTYPE)
417 ifeq ($(MACHTYPE),ia64)
418 STDCCFLAGS += -DP_64BIT
421 ifeq ($(MACHTYPE),hppa64)
422 STDCCFLAGS += -DP_64BIT
425 ifeq ($(MACHTYPE),s390x)
426 STDCCFLAGS += -DP_64BIT
429 ifeq ($(MACHTYPE),x86_64)
430 STDCCFLAGS += -DP_64BIT
434 ifeq ($(MACHTYPE),ppc64)
435 STDCCFLAGS += -DP_64BIT
438 ifeq ($(P_SHAREDLIB),1)
440 STDCCFLAGS += -fPIC -DPIC
444 ENDLDLIBS += -lstdc++ -lsupc++
446 STATIC_LIBS := libstdc++.a libg++.a libm.a libc.a
447 SYSLIBDIR := $(shell $(PWLIBDIR)/make/ptlib-config --libdir)
452 ####################################################
454 ifeq ($(OSTYPE),FreeBSD)
456 ifeq ($(MACHTYPE),x86)
458 STDCCFLAGS += -mcpu=$(CPUTYPE)
463 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
469 ####################################################
471 ifeq ($(OSTYPE),OpenBSD)
473 ifeq ($(MACHTYPE),x86)
480 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
486 ####################################################
488 ifeq ($(OSTYPE),NetBSD)
490 ifeq ($(MACHTYPE),x86)
496 STDCCFLAGS += -I$(UNIX_INC_DIR) -I$(PWLIBDIR)/include
498 # enable the USE_PTH line to compile using pth
499 # enable the USE_NATIVE_THREADS line to compile using native threads
500 # enable the USE_UNPROVEN_THREADS line to compile using unproven threads
501 #USE_PTH_THREADS := 1
502 #USE_UNPROVEN_THREADS := 1
503 USE_NATIVE_THREADS := 1
506 ifdef USE_NATIVE_THREADS
509 ifdef USE_PTH_THREADS
510 STDCCFLAGS += -DP_GNU_PTH
511 STDCCFLAGS += -I/usr/pkg/include
512 LDFLAGS += -L/usr/pkg/lib
515 STDCCFLAGS += -DP_NO_CANCEL
516 STDCCFLAGS += -I/usr/pkg/pthreads/include
517 LDFLAGS += -L/usr/pkg/pthreads/lib
519 CC := /usr/pkg/pthreads/bin/pgcc
520 CPLUS := /usr/pkg/pthreads/bin/pg++
526 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
532 ####################################################
536 STDCCFLAGS += -DP_AIX
538 # LDLIBS += -lossaudio
540 STDCCFLAGS += -mminimal-toc
543 STDCCFLAGS += -DP_USE_PRAGMA
549 ####################################################
551 ifeq ($(OSTYPE),sunos)
553 # Sparc Sun 4x, using gcc 2.7.2
556 REQUIRES_SEPARATE_SWITCH = 1
557 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
562 ####################################################
564 ifeq ($(OSTYPE),solaris)
566 # Solaris (Sunos 5.x)
571 ifeq ($(MACHTYPE),x86)
572 ifeq ($(USE_GCC),yes)
573 DEBUG_FLAG := -gstabs+
575 CXXFLAGS += -DUSE_GCC
579 ENDLDLIBS += -lsocket -lnsl -ldl -lposix4
581 # Sparc Solaris 2.x, using gcc 2.x
586 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure
588 STATIC_LIBS := libstdc++.a libg++.a
589 SYSLIBDIR := /opt/openh323/lib
591 # Rest added by jpd@louisiana.edu, to get .so libs created!
596 STDCCFLAGS += -fPIC -DPIC
603 ####################################################
605 ifeq ($(OSTYPE),irix)
607 # should work whith Irix 6.5
611 STDCCFLAGS += -DP_IRIX
612 LDLIBS += -lsocket -lnsl
614 STDCCFLAGS += -DP_USE_PRAGMA
619 ####################################################
621 ifeq ($(OSTYPE),beos)
623 SYSLIBS += -lbe -lmedia -lgame -lroot -lsocket -lbind -ldl
624 STDCCFLAGS += -DBE_THREADS -DP_USE_PRAGMA -Wno-multichar -Wno-format
631 ####################################################
633 ifeq ($(OSTYPE),ultrix)
635 # R2000 Ultrix 4.2, using gcc 2.7.x
636 STDCCFLAGS += -DP_ULTRIX
637 STDCCFLAGS += -DP_USE_PRAGMA
641 ####################################################
643 ifeq ($(OSTYPE),hpux)
644 STDCCFLAGS += -DP_USE_PRAGMA
645 # HP/UX 9.x, using gcc 2.6.C3 (Cygnus version)
646 STDCCFLAGS += -DP_HPUX9
651 ####################################################
653 ifeq ($(OSTYPE),Darwin)
655 # MacOS X or later / Darwin
657 CFLAGS += -fno-common -dynamic
658 LDFLAGS += -multiply_defined suppress
659 ENDLDLIBS += -lresolv -framework AudioToolbox -framework CoreAudio
660 ENDLDLIBS += -framework AudioUnit -framework CoreServices
661 STDCCFLAGS += -D__MACOSX__
663 # Quicktime support is still a long way off. But for development purposes,
664 # I am inluding the flags to allow QuickTime to be linked.
665 # Uncomment them if you wish, but it will do nothing for the time being.
668 #STDCCFLAGS += -DHAS_QUICKTIMEX
669 #ENDLDLIBS += -framework QuickTime
671 ifeq ($(MACHTYPE),x86)
675 ARCHIVE := libtool -static -o
683 ifeq ($(OSTYPE),Carbon)
685 # MacOS 9 or X using Carbonlib calls
687 STDCCFLAGS += -DP_MACOS
689 # I'm having no end of trouble with the debug memory allocator.
692 # Carbon is only available for full Mac OS X, not pure Darwin, so the only
693 # currently available architecture is PPC.
695 STDCCFLAGS += -DP_MAC_MPTHREADS
696 LDLIBS += -prebind -framework CoreServices -framework QuickTime -framework Carbon
706 ####################################################
708 ifeq ($(OSTYPE),VxWorks)
710 ifeq ($(MACHTYPE),ARM)
711 STDCCFLAGS += -mcpu=arm8 -DCPU=ARMARCH4
714 STDCCFLAGS += -DP_VXWORKS -DPHAS_TEMPLATES -DVX_TASKS
715 STDCCFLAGS += -DNO_LONG_DOUBLE
717 STDCCFLAGS += -Wno-multichar -Wno-format
721 STDCCFLAGS += -DP_USE_PRAGMA
726 ####################################################
728 ifeq ($(OSTYPE),rtems)
730 CC := $(MACHTYPE)-rtems-gcc --pipe
731 CPLUS := $(MACHTYPE)-rtems-g++
732 #LD := $(MACHTYPE)-rtems-ld
733 #AR := $(MACHTYPE)-rtems-ar
734 #RUNLIB := $(MACHTYPE)-rtems-runlib
736 SYSLIBDIR := $(RTEMS_MAKEFILE_PATH)/lib
737 SYSINCDIR := $(RTEMS_MAKEFILE_PATH)/lib/include
739 LDFLAGS += -B$(SYSLIBDIR)/ -specs=bsp_specs -qrtems
740 STDCCFLAGS += -B$(SYSLIBDIR)/ -specs=bsp_specs -ansi -fasm -qrtems
742 ifeq ($(CPUTYPE),mcpu32)
743 STDCCFLAGS += -mcpu32
747 ifeq ($(CPUTYPE),mpc860)
748 STDCCFLAGS += -mcpu=860
752 STDCCFLAGS += -DP_RTEMS -DP_HAS_SEMAPHORES
758 ####################################################
762 ifeq ($(MACHTYPE),x86)
763 STDCCFLAGS += -Wc,-m486
766 STDCCFLAGS += -DP_QNX -DP_HAS_RECURSIVE_MUTEX=1 -DFD_SETSIZE=1024
768 ENDLDLIBS += -lsocket -lstdc++
770 CC := qcc -Vgcc_ntox86
771 CPLUS := qcc -Vgcc_ntox86_gpp
774 STDCCFLAGS += -DP_USE_PRAGMA
776 ifeq ($(P_SHAREDLIB),1)
777 ifeq ($(USE_GCC),yes)
778 STDCCFLAGS += -shared
780 ifeq ($(OSTYPE),solaris)
789 ####################################################
791 ifeq ($(OSTYPE),Nucleus)
794 STDCCFLAGS += -msoft-float -nostdinc -g
795 STDCCFLAGS += -D__NUCLEUS_PLUS__ -D__ppc -DWOT_NO_FILESYSTEM -DPLUS \
796 -D__HAS_NO_FLOAT -D__USE_STL__ \
798 -D__NUCLEUS_NET__ -D__NEWLIB__ \
804 NUCLEUSDIR = ${WORK}/embedded/os/Nucleus
807 STLDIR = ${WORK}/embedded/packages/stl-3.2-stream
809 STDCCFLAGS += -I$(NUCLEUSDIR)/plus \
810 -I$(NUCLEUSDIR)/plusplus \
811 -I$(NUCLEUSDIR)/net \
813 -I$(PWLIBDIR)/include/ptlib/Nucleus++ \
814 -I$(WORK)/embedded/libraries/socketshim/BerkleySockets \
816 -I/usr/local/powerpc-motorola-eabi/include \
817 -I${WORK}/embedded/libraries/configuration
819 UNIX_SRC_DIR = $(PWLIBDIR)/src/ptlib/Nucleus++
823 ####################################################
825 ifeq ($(OSTYPE),mingw)
826 LDFLAGS += -enable-auto-import -enable-runtime-pseudo-reloc
827 LDFLAGS += -enable-stdcall-fixup -fatal-warning
830 ###############################################################################
832 # Make sure some things are defined
868 # Further configuration
875 PLATFORM_TYPE = $(OSTYPE)_$(MACHTYPE)
877 PLATFORM_TYPE = $(OSTYPE)_$(PTLIB_ALT)_$(MACHTYPE)
889 OBJDIR_SUFFIX = $(OBJ_SUFFIX)
896 ifeq ($(P_SHAREDLIB),1)
897 LIB_SUFFIX = $(SHAREDLIBEXT)
905 INSTALL_DIR = /usr/local
908 ifndef INSTALLBIN_DIR
909 INSTALLBIN_DIR = $(INSTALL_DIR)/bin
912 ifndef INSTALLLIB_DIR
913 INSTALLLIB_DIR = $(INSTALL_DIR)/lib
917 ###############################################################################
919 # define some common stuff
926 # Required macro symbols
931 UNIX_INC_DIR = $(PREFIX)/include/ptlib/unix
933 UNIX_INC_DIR = $(PWLIBDIR)/include/ptlib/unix
937 UNIX_SRC_DIR = $(PWLIBDIR)/src/ptlib/unix
940 PW_LIBDIR = $(PWLIBDIR)/lib
942 # set name of the PT library
943 PTLIB_BASE = pt_$(PLATFORM_TYPE)_$(OBJ_SUFFIX)
944 PTLIB_FILE = lib$(PTLIB_BASE)$(LIB_TYPE).$(LIB_SUFFIX)
945 PT_OBJBASE = obj_$(PLATFORM_TYPE)_$(OBJDIR_SUFFIX)
946 PT_OBJDIR = $(PW_LIBDIR)/$(PT_OBJBASE)
948 # set name of the PW library (may not be used)
949 PWLIB_BASE = pw_$(GUI_TYPE)_$(PLATFORM_TYPE)_$(OBJ_SUFFIX)
950 PWLIB_FILE = lib$(PWLIB_BASE)$(LIB_TYPE).$(LIB_SUFFIX)
951 PW_OBJBASE = obj_$(GUI_TYPE)_$(PLATFORM_TYPE)_$(OBJDIR_SUFFIX)
952 PW_OBJDIR = $(PW_LIBDIR)/$(PW_OBJBASE)
954 ###############################################################################
956 # Set up compiler flags and macros for debug/release versions
965 STDCCFLAGS += $(DEBUG_FLAG) -D_DEBUG -DNDEBUG
966 LDFLAGS += $(DEBLDFLAGS)
970 ifneq ($(OSTYPE),Darwin)
971 ifeq ($(OSTYPE),solaris)
982 # define ESDDIR variables if installed
984 STDCCFLAGS += -I$(ESDDIR)/include -DUSE_ESD=1
985 ENDLDLIBS += $(ESDDIR)/lib/libesd.a # to avoid name conflicts
989 # feature migrated to configure.in
990 # #define templates if available
991 # ifndef NO_PWLIB_TEMPLATES
992 # STDCCFLAGS += -DPHAS_TEMPLATES
995 # compiler flags for all modes
996 #STDCCFLAGS += -fomit-frame-pointer
997 #STDCCFLAGS += -fno-default-inline
998 #STDCCFLAGS += -Woverloaded-virtual
999 #STDCCFLAGS += -fno-implement-inlines
1001 # add OS directory to include path
1002 # STDCCFLAGS += -I$(UNIX_INC_DIR) # removed CRS
1005 # add library directory to library path and include the library
1006 LDFLAGS += -L$(PW_LIBDIR)
1008 LDLIBS += -l$(PTLIB_BASE)$(LIB_TYPE)