|
|
|
|
File: [XFree86 CVS] / xc / config / cf / lynx.cf
(download)
Revision: 3.8, Sat Sep 14 12:05:03 1996 UTC (16 years, 8 months ago) by dawes Branch: MAIN CVS Tags: xf-3_1_2Gg, xf-3_1_2Gf, xf-3_1_2Ge, xf-3_1_2Gd, xf-3_1_2Gc, xf-3_1_2Gb, xf-3_1_2Ga Changes since 3.7: +7 -5 lines updates |
XCOMM platform: $XFree86: xc/config/cf/lynx.cf,v 3.7 1996/08/16 12:25:00 dawes Exp $
#ifdef i386Architecture
# define OSName LynxOS AT
#endif
#ifdef ppcArchitecture
# define OSName LynxOS PowerPC
#endif
#ifdef SparcArchitecture
# define OSName LynxOS microSPARC
#endif
#define OSVendor (LYNX Real-Time Systems, Inc)
#define OSMajorVersion 2
#define OSMinorVersion 4
#define OSTeenyVersion 0
#define HasGcc YES
#if OSMajorVersion == 2 && OSMinorVersion > 2
# define HasGcc2 YES
# ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus YES
# endif
#else
# define HasGcc2 NO
#endif
#ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus YES
#endif
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasShadowPasswd NO
#ifndef HasLibCrypt
# define HasLibCrypt NO
#endif
#define HasPutenv YES
#define HasShm YES
#define HasSockets YES
#define HasVFork NO
#define HasPosixThreads YES
#define ThreadedX YES
#define HasThreadSafeAPI NO
#if HasGcc2
# if OSMajorVersion == 2 && OSMinorVersion == 3
# define ThreadsCompileFlags -mposix -mthreads
# define ThreadsCplusplusCompileFlags -mposix -mthreads
# else
# define ThreadsCompileFlags -mthreads
# define ThreadsCplusplusCompileFlags -mthreads
# endif
#else
# define ThreadsCompileFlags -m
# define ThreadsCplusplusCompileFlags -m
#endif
#if OSMajorVersion == 2 && OSMinorVersion < 3
# define ThreadsLibraries /lib/thread/libc.a /lib/thread/libc_p.a
#endif
#if OSMinorVersion <= 4
# define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
#endif
#define AvoidNullMakeCommand YES
#if OSMajorVersion == 2 && OSMinorVersion > 2
#define StripInstalledPrograms YES
#else
/* under LynxOS AT V2.x /bin/strip will leave file.unstripped around
* and fail if installing across different file systems
*/
#define StripInstalledPrograms NO
#endif
#define CompressAllFonts YES
#define Malloc0ReturnsNull NO
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#if HasGcc2
# if OSMajorVersion == 2 && OSMinorVersion == 3
# define CplusplusCmd g++ -mposix
# define CcCmd gcc -mposix
# else
# define CplusplusCmd g++
# define CcCmd gcc
# endif
#else
# define CplusplusCmd g++
# define CcCmd gcc
# define DefaultCCOptions -ansi
# define GccGasOption -DGCCUSESGAS /* For SuperProbe */
#endif
#define AsCmd as
#define LdCmd ld
#define AsmDefines -DUSE_GAS
#define CppCmd /lib/cpp
#define YaccCmd bison -y
#define LexCmd /bin/flex
#if 0
#if OSMinorVersion > 2
# define LexLib -lfl
#else
# define LexLib /**/
#endif
#else
# define LexLib /**/
#endif
/* On LynxOS AT 2.3.0 /lib/libm.a is a symbolic link to /lib/libc.a, so we
* screw up some POSIX functionality when -lm comes* before -lc_p in our
* ld argument list. For LynxOS-AT we don't need -lm but for others we
* do (e.g. SPARC)
*/
#if OSMajorVersion == 2 && OSMinorVersion == 3
# define MathLibrary -lc_p -lm
# define TermcapLibrary -lc_p -ltermcap
#else
# define MathLibrary -lm
# define TermcapLibrary -ltermcap
#endif
#define PreProcessCmd CcCmd -E
#if HasGcc2
# define PostIncDir `CcCmd --print-libgcc-file-name | sed 's/libgcc.a/include/'`
#endif
#define LdCombineFlags -r
#if HasGcc2
# ifdef i386Architecture
# define OptimizedCDebugFlags -m486 DefaultGcc2i386Opt
# else
# define OptimizedCDebugFlags -O2
# endif
#else
# define OptimizedCDebugFlags -O
#endif
#if OSMajorVersion == 2 && OSMinorVersion <= 2
#define StandardDefines -DLynx -DLynx_22 -DX_NOT_POSIX
#else
#define StandardDefines -DLynx -DX_LOCALE
#endif
#define StandardCppDefines -traditional StandardDefines
#ifdef i386Architecture
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#else
# if defined(SparcArchitecture)
# define ServerOSDefines -DDDXOSINIT
# else
# define ServerOSDefines /**/
# endif
# define ServerExtraDefines -DGCCUSESGAS
#endif
#define ServerExtraSysLibs $(CBRT) MathLibrary
#define ConnectionFlags -DUNIXCONN -DTCPCONN
#define ExtraLibraries -lbsd
#if !HasGcc2
# define ExtraLoadFlags -k
#endif
#if OSMajorVersion == 2 && OSMinorVersion <= 2
# define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
/* define HasMotif to YES for LynxOS AT 2.3 with Motif
* installed according to the notes in README.LynxOS.
*/
#ifndef HasMotif
# define HasMotif NO
#endif
#if HasMotif
# ifndef UseInstalledMotif
# define UseInstalledMotif YES
# endif
# ifndef SaberProgramTarget
# define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) /**/
# endif
# define LocalTmplFile <Motif.tmpl>
# define LocalRulesFile <Motif.rules>
#endif
#define ManSourcePath $(MANPATH)/cat
#ifndef ManSuffix
# define ManSuffix 1
#endif
#ifndef ManDir
# define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix 3
#endif
#ifndef LibmanDir
# define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix 5
#endif
#ifndef FileManDir
# define FileManDir $(MANSOURCEPATH)5
#endif
/* groff 1.09 compiles right out of the box with LynxOS 2.3,
* so if you want to have manual pages you should install groff 1.09
* before you run 'make install.man'
*/
#ifndef InstallManPageLong
#define InstallManPageLong(file,destdir,dest) @@\
install.man:: file.man @@\
MakeDir($(DESTDIR)destdir) @@\
$(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)* @@\
groff -e -t -man -Tascii file.man >/tmp/file.man @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
echo dest dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX) @@\
gawk ' \ @@\
/^\.SH[ ]*NAME/ { \ @@\
getline; sub("\\\\", "(" p ") "); print; exit \ @@\
}' p=$(MANSUFFIX) file.man >> $(DESTDIR)destdir/../whatis @@\
$(RM) /tmp/file.man
#endif
#ifndef InstallManPageAliases
#define InstallManPageAliases(file,destdir,aliases) @@\
install.man:: @@\
@(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \ @@\
for i in aliases; do (set -x; \ @@\
$(RM) $(DESTDIR)destdir/$$i.*; \ @@\
(cd $(DESTDIR)destdir; $(LN) -s file.$${SUFFIX} \ @@\
$$i.$${SUFFIX})); \ @@\
echo $$i dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX); \ @@\
done)
#endif
#ifndef InstallGenManPageLong
#define InstallGenManPageLong(file,destdir,dest,suffix) @@\
install.man:: file.man @@\
MakeDir($(DESTDIR)destdir) @@\
$(RM) $(DESTDIR)destdir/dest.suffix* @@\
groff -e -t -man -Tascii file.man >/tmp/file.man @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
echo dest dest suffix >> $(DESTDIR)destdir/Concat(LIST,suffix) @@\
gawk ' \ @@\
/^\.SH[ ]*NAME/ { \ @@\
getline; sub("\\\\", "(" p ") "); print; exit \ @@\
}' p=suffix file.man >> $(DESTDIR)destdir/../whatis @@\
$(RM) /tmp/file.man)
#endif
#ifndef InstallMultipleMan
#define InstallMultipleMan(list,dest) @@\
install.man:: list @@\
MakeDir($(DESTDIR)dest) @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in list; do \ @@\
(set -x; \ @@\
MNAME=`echo $$i | cut -f1 -d.`; \ @@\
$(RM) $(DESTDIR)dest/$${MNAME}*; \ @@\
groff -e -t -man -Tascii $$i >/tmp/$$i; \ @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \ @@\
echo $${MNAME} $${MNAME} $(MANSUFFIX) >> $(DESTDIR)dest/LIST$(MANSUFFIX)\ @@\
gawk ' \ @@\
/^\.SH[ ]*NAME/ { \ @@\
getline; sub("\\\\", "(" p ") "); print; exit \ @@\
}' p=$(MANSUFFIX) $$i >> $(DESTDIR)dest/../whatis \ @@\
$(RM) /tmp/$$i); \ @@\
done
#endif
#ifdef not_yet
/*
* Definitions for the SUN server on LynxOS SPARC
*/
#ifdef SparcArchitecture
# define XsunLynxServer YES
# define XsunLynxMonoServer NO
# ifndef BuildScreenSaverLibrary
# define BuildScreenSaverLibrary YES
# endif
/*
* XFree86 uses its own (more portable) database routines to speed up
* the RGB database lookups
* However, if you want to use ndbm anyway, you can set that to NO in
* site.def
*/
# ifndef UseRgbTxt
# define UseRgbTxt YES
# endif
#endif
#endif
#ifndef i386Architecture
# define BuildXF86DGA NO
#endif
#include <xfree86.cf>
|
Powered by ViewCVS 0.9.2 |