home *** CD-ROM | disk | FTP | other *** search
- XCOMM platform: $XConsortium: osf1.cf,v 1.42.1.1 94/09/15 20:41:35 kaleb Exp $
- /* only tested with Digital OSF/1 */
-
- #ifdef AlphaArchitecture
- #define OSName OSF/1 1.3
- XCOMM operating system: OSName
- #define OSMajorVersion 1
- #define OSMinorVersion 3
- #else
- #define OSName OSF/1 1.0
- XCOMM operating system: OSName
- #define OSMajorVersion 1
- #define OSMinorVersion 0
- #endif
-
- /* Fresco configuration */
- #ifdef AlphaArchitecture
- #ifndef DefsImplNeedLibs
- #define DefsImplNeedLibs $(THREADS_LIBS) -lm
- #endif
- #ifndef DefsX11NeedLibs
- #define DefsX11NeedLibs $(LDPRELIB) -lFresco $(X11PRELIB) $(XONLYLIB) -lm
- #endif
- #ifndef FiguresNeedLibs
- #define FiguresNeedLibs $(LDPRELIB) -lFresco
- #endif
- #ifndef LayoutsNeedLibs
- #define LayoutsNeedLibs $(LDPRELIB) -lFresco
- #endif
- #ifndef WidgetsNeedLibs
- #define WidgetsNeedLibs $(LDPRELIB) -lFresco
- #endif
- #ifndef FiguresImplNeedLibs
- #define FiguresImplNeedLibs $(LDPRELIB) -lfigures -lFresco
- #endif
- #ifndef LayoutsImplNeedLibs
- #define LayoutsImplNeedLibs $(LDPRELIB) -llayouts -lFresco
- #endif
- #ifndef WidgetsImplNeedLibs
- #define WidgetsImplNeedLibs $(LDPRELIB) -lwidgets -llayouts -lfigures -lFresco -lm
- #endif
- #ifndef DishLibraries
- #define DishLibraries -u main $(TCLPRELIB) -ltcl -lFresco -lm
- #endif
- #ifndef FdrawLibraries
- #define FdrawLibraries -lwidgets -lfigures -llayouts -lFresco -lm
- #endif
- #endif
-
- #define OSF1ShLib
- #define HasCplusplusMinusCMinusO YES
-
- #define HasPutenv YES
- #define Malloc0ReturnsNull YES
- #define HasNdbm YES
- #define HasShm YES
- #define AvoidNullMakeCommand YES
- #define HasPosixThreads YES
- #define SystemMTDefines -D_REENTRANT
- #define HasPoll YES
- #define HasVFork NO
- #define InstallCmd installbsd
- #define RanlibCmd ranlib -t
- #if OSMajorVersion > 1 || OSMinorVersion > 0
- #define ModernOSF1 YES
- #else
- #define ModernOSF1 NO
- #define ShLibDir /usr/shlib
- #define SharedLibPex NO /* losing, no shared -lm */
- #endif
- #define ThreadedX ModernOSF1
-
- #if ThreadedX
- #define ThreadsLibraries -lpthreads -lmach -lc_r
- #endif
-
- /*
- * C++ compiler setup. This file knows what options to use with the
- * DEC C++ compiler, and may learn about other compilers in the future.
- *
- * For DEC C++, define HasDECCplusplus to YES in site.def.
- * For other compilers, define HasCplusplus to YES in site.def, and
- * check to see if you need to provide values for CplusplusOptions
- * and/or DefaultCplusplusOptions.
- *
- * In any case, you may also need to set CplusplusDependIncludes.
- *
- * NOTE: For DEC C++ version 1.3, we want to set ForceNormalLib
- * to YES because no one has managed to get the C++ compiler
- * to either build or link with shared libraries, and DEC has
- * not been able to tell us how to do it.
- */
-
- #if HasDECCplusplus
- #ifndef HasCplusplus
- #define HasCplusplus YES
- #endif
- #ifndef SharedLibFresco
- #define SharedLibFresco NO
- #endif
- #ifndef SharedLibXtf
- #define SharedLibXtf NO
- #endif
- #ifndef CplusplusCmd
- #define CplusplusCmd /usr/bin/cxx
- #endif
- #ifndef CplusplusDependIncludes
- #define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
- #endif
- #ifndef CplusplusLibC
- #define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
- #endif
- #ifndef ForceNormalLib
- #define ForceNormalLib YES
- #endif
- #endif /* HasDECCplusplus */
-
- #include <osfLib.rules>
- #define NoRConst YES
-
- #ifdef HasGcc
- #define HasWChar32 YES
- #define DefaultCCOptions /* nothing */
- #define XawI18nDefines -DHAS_WCHAR_H
- #define BuildServer NO
- #else
- #ifdef AlphaArchitecture
- #define HasWChar32 YES
- #define DefaultCCOptions -std1
- #define XawI18nDefines -DHAS_WCHAR_H
- #define BuildServer NO
- #endif
- #endif
- #ifdef MipsArchitecture
- #define DefaultCCOptions -Xc
- #define XdecServer YES
- #define ServerOSDefines -DDDXTIME
- #define PexCCOptions -Xc -Wf,-XNp15000,-XNd15000
- #define NormalLibObjCompile(options) $(RM) $@ $*.os \ @@\
- && $(CC) -c options $(CFLAGS) $*.c \ @@\
- && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
- && $(MV) $*.os $@
- #endif
-