home *** CD-ROM | disk | FTP | other *** search
- XCOMM platform: $XConsortium: osf1.cf /main/68 1996/01/22 17:37:35 gildea $
- /* only tested with Digital OSF/1 */
-
- #ifdef AlphaArchitecture
- #ifndef OSName
- #define OSName OSF/1 3.2
- #endif
- XCOMM operating system: OSName
- #ifndef OSMajorVersion
- #define OSMajorVersion 3
- #endif
- #ifndef OSMinorVersion
- #define OSMinorVersion 2
- #endif
- #else
- #ifndef OSName
- #define OSName OSF/1 1.0
- #endif
- XCOMM operating system: OSName
- #ifndef OSMajorVersion
- #define OSMajorVersion 1
- #endif
- #ifndef OSMinorVersion
- #define OSMinorVersion 0
- #endif
- #endif
-
- #define HasPutenv YES
- #define Malloc0ReturnsNull YES
- #define HasNdbm YES
- #define HasShm YES
- #define AvoidNullMakeCommand YES
- #define NullMakeCommand @ echo
- #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
- #if OSMajorVersion < 4
- #define ThreadsLibraries -lpthreads -lmach -lc_r
- #define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
- #else
- #define ThreadsLibraries -lpthread -lmach -lexc -lc
- #define LibraryMTDefines -DUSE_TIS_SUPPORT
- #endif
- #endif
-
- #if ModernOSF1
- #define OptimizedCDebugFlags -O2
- #ifndef ExtraLoadFlags
- /*
- * In OSF/1 3.0 Digital has shared libXdmcp and libXau. What's more,
- * the link editor has different search semantics, i.e. it will search
- * for shared libraries first, then, if it can't find a shared lib, it
- * will use a static lib. By using -oldstyle_liblookup the linker will
- * follow "normal" semantics for linking libraries and will get the
- * static libraries we really want. By 3.2 they no longer have libXdmcp
- * and libXau as shared libraries and we can omit -oldstyle_liblookup.
- * (What did they have in 3.1?)
- */
- #if OSMajorVersion == 3 && OSMinorVersion == 0
- #define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIR),-oldstyle_liblookup
- #else
- #define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIR)
- #endif
- #endif
- #if OSMajorVersion > 3
- #define TermcapLibrary -lcurses
- #endif
- #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 g++ 2.6.x, define HasGcc2ForCplusplus 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++, the -call_shared option really only needs to
- * appear when linking C++ executables, not when actually compiling
- * the C++ sources. But since there's no imake variable that lets
- * us insert flags only into the C++ link stage, we use -call_shared
- * on all compilations when building executables. This could be
- * considered a deficiency in the current imake configuration
- */
-
- #if HasDECCplusplus
- #ifndef HasCplusplus
- #define HasCplusplus YES
- #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 CplusplusOptions
- #define CplusplusOptions -call_shared
- #endif
- #endif /* HasDECCplusplus */
-
-
- #if HasGcc2ForCplusplus
- #ifndef CplusplusLibC
- #define CplusplusLibC `$(CXX) -print-libgcc-file-name`
- #endif
- #endif /* HasGcc2ForCplusplus */
-
- #include <osfLib.rules>
- #define NoRConst YES
-
- #ifdef AlphaArchitecture
- #ifndef HasWChar32
- #define HasWChar32 YES
- #endif
- #define ServerExtraDefines -D_XSERVER64
- #define ServerOSDefines -DDDXTIME
- #ifndef DefaultCCOptions
- #define DefaultCCOptions -std1
- #endif
- #ifndef XawI18nDefines
- #define XawI18nDefines -DHAS_WCHAR_H
- #endif
- #ifndef BuildServer
- #define BuildServer NO
- #endif
- #endif
-
- #ifdef MipsArchitecture
- #define DefaultCCOptions -Xa
- #define XdecServer YES
- #define ServerOSDefines -DDDXTIME
- #define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
- #define NormalLibObjCompile(options) ClearmakeOSName \
- $(RM) $@ $*.os \ @@\
- && $(CC) -c options $(CFLAGS) $*.c \ @@\
- && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
- && $(MV) $*.os $@
- #endif
-
- #if !HasClearmake
- #ifndef HasMakefileSafeInclude
- #define HasMakefileSafeInclude YES
- #endif
- #ifndef IncludeMakefile
- #define IncludeMakefile(file) @@-include file
- #endif
- #endif
-
- #ifndef ManKeywordsTarget
- #define ManKeywordsTarget(manpath) @@\
- man_keywords:: @@\
- catman -M $(DESTDIR)manpath -w
- #endif
-