1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtinfo subtree tools

This commit is contained in:
Ulrich Wilkens 2012-10-14 17:24:56 +02:00 committed by Jon Trulson
parent 07e886ba7c
commit 5cdb889f7b
85 changed files with 41 additions and 19018 deletions

View file

@ -24,9 +24,16 @@ INDEPENDENT_SUBDIRS = clients
SUBDIRS = $(PRE_REQ_SUBDIRS) $(BROWSER_SUBDIRS) $(TOOLKIT_SUBDIRS) $(INDEPENDENT_SUBDIRS)
XCOMM WARNING!!!
XCOMM from here use the local config dir in addition to the standard one.
IRULESRC = $(TOP)/$(CURRENT_DIR)/tools/config
XCOMM redefine TopLevelProject to build DtInfo with standard CDE config dir
#undef TopLevelProject
#define TopLevelProject DtInfo
IMAKE_DEFINES = -DTopLevelProject=TopLevelProject \
-DProjectTmplFile='<DtInfo.tmpl>' \
-DProjectRulesFile='<DtInfo.rules>'
XCOMM Variables to switch on debug mode temporarily
XCOMM CDEBUGFLAGS = -g -DDEBUG
XCOMM CXXDEBUGFLAGS = -g -DDEBUG
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

View file

@ -6,5 +6,12 @@ XCOMM $TOG: Imakefile /main/9 1998/08/10 15:50:47 mgreess $
/* SUBDIRS=misc src byacc flex */
SUBDIRS=misc
XCOMM redefine TopLevelProject to build DtInfo with standard CDE config dir
#undef TopLevelProject
#define TopLevelProject DtInfo
IMAKE_DEFINES = -DTopLevelProject=TopLevelProject \
-DProjectTmplFile='<DtInfo.tmpl>' \
-DProjectRulesFile='<DtInfo.rules>'
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

View file

@ -1,4 +1,4 @@
#!/usr/tools/bin/perl
#!/usr/bin/perl
# Script to convert and compare datestrings in the form of dd-Mmm-yy.hh.mm.ss
%monthnum = (

View file

@ -1,430 +0,0 @@
XCOMM platform: $XConsortium: Amoeba.cf /main/12 1996/09/28 16:04:48 rws $
XCOMM platform: $XFree86: xc/config/cf/Amoeba.cf,v 3.6 1995/01/28 15:40:08 dawes Exp $
/* The presence of this configuration file in the X distribution
* does not imply full support for the system it describes.
* Additional patches from The XFree86 Project, Inc. will be required to
* compile the X distribution on Amoeba. According to them, these patches
* will also be made available at the regular Amoeba ftp site
* ftp.am.cs.vu.nl.
*/
/*
* Configuration file for Amoeba 5.2
*/
#ifndef OSName
#define OSName Amoeba 5.2
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 2
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 0
#endif
#ifndef OSVendor
#define OSVendor Vrije Universiteit
#endif
#define AmoebaArchitecture YES
/* Configuration defaults */
#ifndef AmoebaTop
#define AmoebaTop __AM_TOP__
#endif
#ifndef AmoebaBin
#define AmoebaBin $(ATOP)/bin.sun4
#endif
#ifndef AmoebaConf
#define AmoebaConf __AM_CONF__
#endif
#define HasNdbm YES
#define NeedSdbm YES
#define HasShm NO
#define HasSecureRPC NO
#define SetTtyGroup NO
#define HasPutenv YES
#define HasSockets NO
#define HasStreams NO
#if defined(Sun3Architecture) || defined(SparcArchitecture)
#define XsunAmoebaServer YES
#define XsunAmoebaMonoServer YES
#endif
#define BuildFonts NO
#define BuildFontServer NO
#define BuildPexExt NO
#define BuildXIE NO
#define YaccCmd byacc
#define TermcapLibrary /* in libajax */
#define LexLib /* not needed */
#define PexCCOptions DefaultCCOptions
#define ServerOSDefines XFree86ServerOSDefines
#define UsrLibDir $(DESTDIR)/profile/module/x11/lib
#define LibDir $(DESTDIR)/profile/module/x11/lib
#define ManDirectoryRoot $(DESTDIR)/profile/module/x11/man
#define BinDir $(DESTDIR)/profile/module/x11/bin
#define IncRoot $(DESTDIR)/profile/module/x11/include
#define FontDir $(DESTDIR)/profile/module/x11/fonts/$(ARCH)
#define DefaultRGBDatabase $(DESTDIR)/profile/module/x11/lib/rgb/$(ARCH)/rgb
#define ManSuffix 1
#define ManPath ManDirectoryRoot
#define XmanLocalSearchPath ManDirectoryRoot
#define DefaultUserPath :/bin:$(BINDIR)
#define DefaultSystemPath /bin:$(BINDIR):
#define StandardIncludes -I$(ATOP)/src/h \
-I$(ATOP)/src/h/posix \
-I$(ATOP)/src/h/posix/machdep/$(ARCH) \
-I$(ATOP)/src/h/machdep/arch/$(ARCH) \
-I$(ATOP)/src/h/toolset/$(TOOLSET)
#define Malloc0ReturnsNull YES
#define ServerInstallFlags -s 32
#define FontDefines -DFONT_SNF
#define ConnectionFlags -DAMTCPCONN -DAMRPCCONN
#define ServerXdmcpDefines /* no -DXDMCP */
#define UseRgbTxt YES
#define NdbmDefines -DSDBM -DNDBM -I$(XINCLUDESRC)
#define DBMLibrary /* $(LIBSRC)/sdbm/libsdbm.a */
#if defined(i386Architecture)
#ifndef AckToolset
#define AckToolset YES
#define ExtraFPLoadFlags -fp
#endif
#define XF86MonoServer YES
#endif
#if defined(Sun3Architecture)
#ifndef AckToolset
#define AckToolset YES
#endif
#endif
#if AckToolset
#define CcCmd ack
#define ServerCcCmd ack
#define LdCmd ack
#define AckArchOption -mam_$(ARCH)
#define DefaultCCOptions AckArchOption
#define LibraryCCOptions AckArchOption
#define LdCombineFlags -Rled-r -c.out
#define ArCmd aal clrv
#define RanlibCmd /bin/true
#define AsCmd AmoebaConf/$(ARCH).$(TOOLSET)/toolset/do_as AckArchOption
#define AsIncl -I$(ATOP)/src/h/machdep/arch/$(ARCH)
#define AsmDefines -DACK_ASSEMBLER
#define LdPreLib /**/
#define LdPostLib /**/
#endif
#if defined(SparcArchitecture)
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#define CcCmd cc
#define ServerCcCmd cc
#define LdCmd AmoebaConf/$(ARCH).$(TOOLSET)/toolset/do_gld
#define DefaultCCOptions -sun4
#define LibraryCCOptions -sun4
#define AmoebaCompilerDefs -Usun
#define ServerExtraDefines AllocateLocalDefines
#define LdPostLib /**/
#endif
#ifndef AmoebaCompilerDefs
#define AmoebaCompilerDefs /**/
#endif
#define CommonAmoebaDefines -DAMOEBA -D$(ARCH) AmoebaCompilerDefs
#define StandardDefines CommonAmoebaDefines
#define StandardCppDefines StandardDefines
#ifndef ExtraFPLoadFlags
#define ExtraFPLoadFlags
#endif
#define MathLibrary $(ALIB)/math/libmath.a
#define OSLibraries $(ALIB)/ajax/libajax.a \
$(ALIB)/amoeba/libamoeba.a \
MathLibrary \
ExtraFPLoadFlags
#define ServerExtraSysLibs $(CBRT) OSLibraries
#define ExtraLoadFlags OSLibraries
ATOP = AmoebaTop
ALIB = AmoebaConf/$(ARCH).$(TOOLSET)/lib
#if AckToolset
/* The ACK toolset already links in the appropriate head.o by default */
HEAD =
#else
HEAD = $(ALIB)/head/head.o
#endif
ABIN = AmoebaBin
AINSTALL = /bin/sh $(CONFIGSRC)/util/aminstall.sh $(ABIN)
AINSTALLFLAGS =
TOB = /bin/sh $(CONFIGSRC)/util/aminstall.sh $(ABIN)
MKXDIRHIER = /bin/sh $(CONFIGSRC)/util/ammkdirhier.sh $(ABIN)
/* Make wizardy: */
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c
LINK.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
#if defined(i386Architecture)
ARCH = i80386
TOOLSET = ack
ALDFLAGS = /* -mam_i80386 now in CCopts */ -.c -Rcv-s32
#include <xfree86.cf>
#endif
#if defined(Sun3Architecture)
ARCH = mc68000
TOOLSET = ack
ALDFLAGS = -.c -Rcv-s32
#endif
#if defined(SparcArchitecture)
ARCH = sparc
TOOLSET = sun
SPARCLIBDIR = AmoebaBin/gnu/sparc
ALDFLAGS = -mam_sparc -n -Ttext 40000 -Bstatic -e start -L$(SPARCLIBDIR)
#endif
#define BootstrapCFlags -DAMOEBA -DCROSS_$(ARCH) -DCROSS_COMPILE
/*
* The rest of this files consists of rules to allow cross-compilation
* and installation of binaries and data files from the Unix host to
* the Amoeba file system.
*/
/* #ifdef CROSS_COMPILING */
#define CrossCompiling YES
#define HostLinkRule(target, flags, src, libs) cc -o target src
#define LinkRule(program,options,objects,libraries) \
$(LD) $(ALDFLAGS) $(HEAD) -o program options objects libraries $(EXTRA_LOAD_FLAGS)
/* ComplexHostProgramTarget - Compile a program such that we can run
* it on this host, i.e., don't use the default cross compiler.
*/
#ifndef ComplexHostProgramTarget
#define ComplexHostProgramTarget(program) @@\
CC=cc @@\
STD_INCLUDES= @@\
CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) @@\
EXTRA_LOAD_FLAGS= @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
HostLinkRule($@,$(_NOOP_),$(OBJS),$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
@@\
DependTarget() @@\
@@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* ComplexHostProgramTarget */
#ifndef SimpleHostProgramTarget
#define SimpleHostProgramTarget(program) @@\
OBJS = program.o @@\
SRCS = program.c @@\
@@\
ComplexHostProgramTarget(program)
#endif /* SimpleHostProgramTarget */
#ifndef Concat
#if (__STDC__ && !defined(UnixCpp)) || defined(AnsiCpp)
#define Concat(a,b)a##b
#else
#define Concat(a,b)a/**/b
#endif
#endif
/*
* LintLibReferences - variables for lint libraries
*/
#ifndef LintLibReferences
#define LintLibReferences(varname,libname,libsource) @@\
Concat(LINT,varname) = Concat(libsource/llib-,libname.ln)
#endif
/*
* UnsharedLibReferences - variables for unshared libraries
*/
#ifndef UnsharedLibReferences
#define UnsharedLibReferences(varname,libname,libsource) @@\
Concat3(DEP,varname,LIB) = Concat($(BUILDLIBDIR)/lib,libname.a) @@\
Concat(varname,LIB) = Concat($(BUILDLIBDIR)/lib,libname.a) @@\
LintLibReferences(varname,libname,libsource)
#endif
#ifndef InstallLibrary
#define InstallLibrary(libname,dest) @@\
install:: Concat(lib,libname.a) @@\
@echo '** TODO: Install Library ' Concat(lib,libname.a)
#endif /* InstallLibrary */
#ifndef MergeIntoInstalledLibrary
#define MergeIntoInstalledLibrary(tolib,fromlib) @@\
install:: fromlib @@\
@echo '** TODO: merge ' fromlib into tolib
#endif /* MergeIntoInstalledLibrary */
#ifndef InstallLibraryAlias
#define InstallLibraryAlias(libname,alias,dest) @@\
install:: @@\
@echo '** TODO: Install lib alias ' libname alias dest
#endif /* InstallLibraryAlias */
#ifndef InstallLintLibrary
#define InstallLintLibrary(libname,dest) @@\
install.ln:: Concat(llib-l,libname.ln) @@\
@echo '** TODO: Install lintlib ' Concat(llib-l,libname.ln)
#endif /* InstallLintLibrary */
#ifndef InstallManPageLong
#define InstallManPageLong(file,destdir,dest) @@\
install.man:: file.man @@\
@echo '** TODO: Install man page ' file.man
#endif /* InstallManPageLong */
#ifndef InstallGenManPageLong
#define InstallGenManPageLong(file,destdir,dest,suffix) @@\
install.man:: file.man @@\
@echo '** TODO: Install man page ' file.man
#endif /* InstallGenManPageLong */
#ifndef InstallManPageAliases
#define InstallManPageAliases(file,destdir,aliases) @@\
install.man:: @@\
@(TMP=/tmp/tmp.$$$$; \ @@\
$(RM) $${TMP}; \ @@\
echo .so `basename destdir`/file.$(MANSUFFIX) > $${TMP}; \ @@\
for i in aliases; do (set -x; \ @@\
$(TOB) $${TMP} $(DESTDIR)destdir/$$i.$(MANSUFFIX)); \ @@\
done; \ @@\
$(RM) $${TMP})
#endif /* InstallManPageAliases */
#ifndef InstallGenManPageAliases
#define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
install.man:: @@\
@(TMP=/tmp/tmp.$$$$; \ @@\
$(RM) $${TMP}; \ @@\
echo .so `basename destdir`/file.suffix > $${TMP}; \ @@\
for i in aliases; do (set -x; \ @@\
$(TOB) $${TMP} $(DESTDIR)destdir/$$i.suffix); \ @@\
done; \ @@\
$(RM) $${TMP})
#endif /* InstallGenManPageAliases */
#ifndef InstallNamedNonExec
#define InstallNamedNonExec(srcname,dstname,dest) @@\
install:: srcname @@\
$(MKXDIRHIER) $(DESTDIR)dest @@\
$(TOB) srcname $(DESTDIR)dest/dstname
#endif /* InstallNamedNonExec */
#ifndef InstallNonExecFile
#define InstallNonExecFile(file,dest) @@\
install:: file @@\
$(MKXDIRHIER) dest @@\
$(TOB) file dest/file
#endif /* InstallNonExecFile */
#ifndef InstallNonExec
#define InstallNonExec(file,dest) @@\
install:: file @@\
$(TOB) file dest/file
#endif /* InstallNonExec */
#ifndef InstallProgramWithFlags
#define InstallProgramWithFlags(program,dest,flags) @@\
install:: program @@\
$(MKXDIRHIER) dest/program @@\
$(AINSTALL) $(AINSTALLFLAGS) program dest/program/pd.$(ARCH)
#endif /* InstallProgramWithFlags */
#ifndef InstallScript
#define InstallScript(program,dest) @@\
install:: program.script @@\
$(TOB) program.script dest/program
#endif /* InstallScript */
#ifndef InstallNamedScript
#define InstallNamedScript(srcname,dstname,dest) @@\
install:: srcname @@\
$(TOB) srcname dest/dstname
#endif /* InstallNamedScript */
#ifndef InstallNamedProg
#define InstallNamedProg(srcname,dstname,dest) @@\
install:: srcname @@\
$(MKXDIRHIER) $(DESTDIR)dest/dstname @@\
$(AINSTALL) $(AINSTALLFLAGS) srcname $(DESTDIR)dest/dstname/pd.$(ARCH)
#endif /* InstallNamedProg */
#ifndef InstallMultipleDestFlags
#define InstallMultipleDestFlags(step,list,dest,flags) @@\
step:: list @@\
$(MKXDIRHIER) $(DESTDIR)dest @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in list; do \ @@\
(set -x; $(TOB) $$i dest/$$i); \ @@\
done
#endif /* InstallMultipleDestFlags */
#ifndef InstallMultipleProg
#define InstallMultipleProg(list,dest) @@\
install:: list @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in list; do \ @@\
(set -x; \ @@\
$(MKXDIRHIER) $(DESTDIR)dest/$$i; \ @@\
$(AINSTALL) $(AINSTALLFLAGS) $$i dest/$$i/pd.$(ARCH));\ @@\
done
#endif /* InstallMultipleProg */
#ifndef InstallAppDefaults
#if InstallAppDefFiles
#define InstallAppDefaults(class) @@\
install:: class.ad @@\
$(MKXDIRHIER) $(XAPPLOADDIR) @@\
$(TOB) class.ad $(DESTDIR)$(XAPPLOADDIR)/class
#else
#define InstallAppDefaults(class)
#endif /* InstallAppDefFiles */
#endif /* InstallAppDefaults */
#ifndef InstallAppDefaultsLong
#if InstallAppDefFiles
#define InstallAppDefaultsLong(file,class) @@\
install:: file.ad @@\
$(MKXDIRHIER) $(DESTDIR)$(XAPPLOADDIR) @@\
$(TOB) file.ad $(DESTDIR)$(XAPPLOADDIR)/class
#else
#define InstallAppDefaultsLong(file,class)
#endif /* InstallAppDefFiles */
#endif /* InstallAppDefaultsLong */
/* #endif CROSS_COMPILE */

View file

@ -1,22 +0,0 @@
XCOMM platform: $XConsortium: DGUX.cf /main/5 1996/09/28 16:04:56 rws $
#ifndef OSName
#define OSName DG/UX 4.32
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 32
#endif
#define BootstrapCFlags -DDGUX
#define StandardDefines -DDGUX -DSYSV
#define SystemV YES
#define HasPutenv YES
#define HasGcc YES
#define BuildServer NO
#define UNCOMPRESSPATH /usr/bin/X11/uncompress
#define ExtraFilesToClean *.lg

View file

@ -1,416 +0,0 @@
XCOMM $TOG: DtInfo.rules /main/21 1997/09/05 11:31:01 samborn $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define DtInfoIsTopLevelProject YES
#else
# define DtInfoIsTopLevelProject NO
#endif
/* Chain project rules files. */
#include <cde.rules>
/* Include our favorites in PROJECT_DEFINES. */
#ifndef DtInfoProjectDefines
# define DtInfoProjectDefines $(DTINFO_DEFINES) $(WIDEC_DEFINES) $(I18N_DEFINES) $(SEARCH_DEFINES) $(DLOPEN_DEFINES) $(LM_DEFINES) $(BYTE_ORDER_DEFINES)
#endif
#ifdef ProjectDefines
# undef ProjectDefines
#endif
#define ProjectDefines \
X11ProjectDefines MotifProjectDefines CdeProjectDefines DtInfoProjectDefines
/* Ditto for CXXPROJECT_DEFINES. */
#ifndef DtInfoCplusplusProjectDefines
# define DtInfoCplusplusProjectDefines DtInfoProjectDefines
#endif
#ifdef CplusplusProjectDefines
# undef CplusplusProjectDefines
#endif
#define CplusplusProjectDefines \
X11CplusplusProjectDefines MotifCplusplusProjectDefines CdeCplusplusProjectDefines DtInfoCplusplusProjectDefines
/*
* library building stuff
*/
#if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
# define makelibT(libname) @@\
makelib(libname) @@\
@@\
libname/lib/**/libname/**/T.a: FRC @@\
@(cd libname ; \ @@\
echo "### Making lib libname Templates ###" ; \ @@\
$(MAKE) lib/**/libname/**/T.a ; \ @@\
)
# define makelibsubsubdir(subdir,libname) @@\
@@\
subdir/libname/lib/**/libname.a: FRC @@\
@(cd subdir ; \ @@\
echo "### Making lib libname ###" ; \ @@\
$(MAKE) libname/lib/**/libname.a ; \ @@\
)
# define makelibTsubsubdir(subdir,libname) @@\
@@\
subdir/libname/lib/**/libname/**/T.a: FRC @@\
@(cd subdir ; \ @@\
echo "### Making lib libname Templates ###" ; \ @@\
$(MAKE) libname/lib/**/libname/**/T.a ; \ @@\
)
#else /* not defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3 */
# define makelibT(libname) @@\
makelib(libname)
#endif
#define makelib(libname) @@\
makelibd(libname,)
#define makelibd(libname, deps) @@\
libname/lib/**/libname.a: deps FRC @@\
@(cd libname; \ @@\
echo "### Making lib libname ###" ; \ @@\
$(MAKE) lib/**/libname.a ; \ @@\
if [ -d "$(TEMPLATE_DB)" ]; then \ @@\
$(MAKE) lib/**/libname/**/T.a ; \ @@\
fi \ @@\
) @@\
libname/libname.d: libname/Classlist.mk @@\
@(cd libname; \ @@\
echo "### Making dfiles in libname ###" ; \ @@\
$(MAKE) libname.d ;\ @@\
) @@\
libname/libname.h: libname/Classlist.mk @@\
@(cd libname; \ @@\
echo "### Making dfiles in libname ###" ; \ @@\
$(MAKE) libname.h ;\ @@\
) @@\
libname/libname.msg: libname/Classlist.mk @@\
@(cd libname; \ @@\
echo "### Making msgs in libname ###" ; \ @@\
$(MAKE) libname.msg ;\ @@\
) @@\
@@\
FRC: @@\
XCOMM
XCOMM makes toplevel Prelude.h
XCOMM
#define make_prelude(libraries, deps) @@\
Prelude.h: deps @@\
@$(RM) $@ @@\
$(OLIAS)/tools/misc/pmaker libraries
XCOMM
XCOMM build .d and .h files within a library
XCOMM
#define make_libfiles(library,classes) @@\
dfiles:: Concat(library,.d) Concat(library,.h) @@\
Concat(library,.d) : Classlist.mk @@\
$(RM) $@ @@\
$(OLIAS)/tools/misc/dfiles d library classes @@\
Concat(library,.h) : Classlist.mk @@\
$(RM) $@ @@\
$(OLIAS)/tools/misc/dfiles h library classes @@\
clean:: @@\
$(RM) Concat(library,.d) Concat(library,.h)
#define make_msgs(library, msgs) @@\
messages:: Concat(library,.msg) @@\
Concat(library,.msg) : Classlist.mk msgs @@\
$(RM) $@ @@\
cat msgs > Concat(library,.msg) @@\
clean:: @@\
$(RM) Concat(library,.msg)
XCOMM Build a library
XCOMM *NOTE* SimpleLibrary does *not* build a real ar-style
XCOMM library; it merely uses ld -r -o to concatenate a set
XCOMM of .o's together. Use RealLibrary to build an honest-
XCOMM -to-gosh ranlib'd library. Unless you really need true
XCOMM library behavior (partial selection of contents, etc.),
XCOMM SimpleLibrary is the better choice.
#define SimpleLibraryWithAddedObjs(libname,objlist,libdir,objlist1) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): objlist @@\
$(RM) $@ @@\
@echo "### Making SimpleLibraryWithAddedObjs libname.a" @@\
$(LD) -r -o $@ objlist objlist1
#define SimpleLibrary(libname,objlist,libdir) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): objlist @@\
$(RM) $@ @@\
@echo "### Making SimpleLibrary libname.a" @@\
$(LD) -r -o $@ objlist
#if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
#define SimpleLibraryT(libname,objlist,libdir) @@\
SimpleLibrary(libname,objlist,libdir) @@\
@@\
AllTarget(Concat(lib,libname/**/T.a)) @@\
@@\
Concat(lib,libname/**/T.a): @@\
$(RM) $@ @@\
@echo "### Making SimpleLibraryT libname Templates" @@\
find ./Templates.DB -name '*.o' -type f -print | xargs -n4 ar cq $@ @@\
@@\
clean:: @@\
ptclean
#else
#define SimpleLibraryT(libname,objlist,libdir) @@\
SimpleLibrary(libname,objlist,libdir) @@\
@@\
AllTarget(Concat(lib,libname/**/T.a)) @@\
@@\
Concat(lib,libname/**/T.a): TemplateObjs @@\
$(RM) $@ @@\
@echo "### Making SimpleLibraryT libname Templates" @@\
$(AR) $@ TemplateObjs @@\
@@\
clean:: @@\
$(RM) -r $(TEMPLATE_DB)
#endif
#define RealLibrary(libname,objlist,libdir) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): objlist @@\
$(RM) $@ @@\
@echo "### Making RealLibrary libname.a" @@\
ar cq $@ objlist @@\
RanLibrary($@)
#define NotSoSimpleLibrary(libname,objlist,libdir,otherdeps) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): objlist otherdeps @@\
$(RM) $@ @@\
@echo "### Making NotSoSimpleLibrary libname.a" @@\
$(LD) -r -o $@ objlist
#if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
#define NotSoSimpleLibraryT(libname,objlist,libdir,otherdeps) @@\
NotSoSimpleLibrary(libname,objlist,libdir,otherdeps) @@\
@@\
AllTarget(Concat(lib,libname/**/T.a)) @@\
@@\
Concat(lib,libname/**/T.a): @@\
$(RM) $@ @@\
@echo "### Making NotSoSimpleLibraryT libname Templates"@@\
find ./Templates.DB -name '*.o' -type f -print | xargs -n4 ar cq $@ @@\
@@\
clean:: @@\
ptclean
#else
#define NotSoSimpleLibraryT(libname,objlist,libdir,otherdeps) @@\
NotSoSimpleLibrary(libname,objlist,libdir,otherdeps) @@\
@@\
AllTarget(Concat(lib,libname/**/T.a)) @@\
@@\
Concat(lib,libname/**/T.a): @@\
$(RM) $@ @@\
@echo "### Making NotSoSimpleLibraryT libname Templates"@@\
$(AR) $@ TemplateObjs @@\
@@\
clean:: @@\
$(RM) -r $(TEMPLATE_DB)
#endif
#define do_subdirs_imakefile(subdirs) /* nothing */
#define do_subdirs(subdirs) /* nothing */
#define foreach_subdirs(name, subdirs) @@\
NamedTargetSubdirs(name,subdirs,name,NullParameter,name)
/* Yacc and Lex Support */
#define SimpleCPlusPlusLexTarget(lexname) @@\
lexname.o : lexname.l @@\
$(RM) lexname.C @@\
$(FLEX) $(LFLAGS) -t lexname.l > lexname.C @@\
$(CXX) -c $(CXXFLAGS) lexname.C
#define LexTarget(lexname, parsename) @@\
lexname.o : lexname.l @@\
$(RM) lexname.C lex.yy.c lexname.o @@\
$(FLEX) $(LFLAGS) lexname.l @@\
sed 's/yy/parsename/g' lex.yy.c | sed 's/YY/parsename/g' > lexname.C @@\
$(CXX) -c $(CXXFLAGS) lexname.C @@\
$(RM) lexname.C lex.yy.c
#define YaccTarget(file, parser) @@\
file.o: file.y @@\
$(RM) file.tab.h file.C y.tab.h y.tab.c file.o @@\
$(BYACC) $(YFLAGS) file.y @@\
sed 's/yy/parser/g' y.tab.h > file.tab.h @@\
sed 's/yy/parser/g' y.tab.c | sed 's/YY/parser/g' > file.C @@\
$(CXX) $(CXXFLAGS) -c file.C @@\
$(RM) file.C y.tab.h y.tab.c
/*
* C++ Support (from here down...)
*/
/*
* On hp, *..c files need to be removed
*/
#ifdef HPArchitecture
# define CplusObjectCompile(options) $(RM) $*..c $*.o $*.prep @@\
ObjectCplusplusCompile(options)
#else /* not defined(HPArchitecture) */
# define CplusObjectCompile(options) ObjectCplusplusCompile(options)
#endif
#define CplusIntermediateCompile(options) $(RM) $@ @@\
$(CXX) +i -c $(CXXFLAGS) options `basename $@ .c`CCsuf
/* need to remove this and "C++*", and use default from r6, with "CXX*": */
#ifdef NormalCplusplusObjectRule
# undef NormalCplusplusObjectRule
#endif
#define NormalCplusplusObjectRule() @@\
.SUFFIXES: .C .o @@\
@@\
.C.o: @@\
CplusObjectCompile($(_NOOP_))
#define HPchatr(program) @@\
install:: @@\
chatr +s enable program
/*
* Total bogosity with error codes:
* if [ `chatr $@ | grep 'libftft'` -gt 0 ] ; then \ @@\
* chatr -l `chatr $@ | grep 'libftft' | \ @@\
* sed -e 's|[^/]*\(/VOB/.*\)|\1|'` +s enable $@;\ @@\
* fi @@\
* echo "chatr checked" @@\
*/
#define ComplexCPlusPlusProgram(program) @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CXXLINK) -o $@ $(OBJS) $(CXXLDOPTIONS) $(STATIC) $(LOCAL_LIBRARIES) $(EXTRA_LOAD_FLAGS) $(EXTRA_LIBRARIES) $(SYS_LIBRARIES) @@\
@@\
clean:: @@\
$(RM) $(PROGRAM) @@\
#define CPlusPlusProgram(program,objects,libs) @@\
program: objects @@\
RemoveTargetProgram($@) @@\
$(CXXLINK) -o $@ objects $(CXXLDOPTIONS) $(STATIC) libs $(LDLIBS) $(EXTRA_LOAD_FLAGS) $(EXTRA_LIBRARIES) @@\
@@\
clean:: @@\
$(RM) program
#define SimpleCPlusPlusProgram(program,objects,libs) @@\
AllTarget(program) @@\
CPlusPlusProgram(program,objects,libs)
#define SpecialCPlusPlusObjectRule(objs,depends,options) @@\
objs: depends @@\
CplusObjectCompile(options) @@\
@@\
clean:: @@\
$(RM) *..c
#define SpecialCPlusPlusExpandRule(expn,depends,options) @@\
expn: depends @@\
CplusIntermediateCompile(options)
XCOMM
XCOMM CProgram is required by C modules in build-tools
XCOMM
#define CProgram(program,objects,libs) @@\
program: objects @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ objects $(LDOPTIONS) $(STATIC) libs $(LDLIBS) $(EXTRA_LOAD_FLAGS) $(EXTRA_LIBRARIES) @@\
@@\
clean:: @@\
$(RM) program
XCOMM
XCOMM SimpleCProgram is required by the C modules in buildtools to build
XCOMM statically
XCOMM
#define SimpleCProgram(program,objects,libs) @@\
AllTarget(program) @@\
CProgram(program,objects,libs)
XCOMM
XCOMM platform dependent executables, shell scripts
XCOMM
#define InstallLibFile(filename) @@\
InstallNonExecFile(filename,$(INSTALL_LIB_DIR))
XCOMM The following macros are used by the build tools
/*
* InstallBuildToolsBinary - generate rules to install an executable
* program in build tools.
*/
#ifndef InstallBuildToolsBinary
# define InstallBuildToolsBinary(program) @@\
install_buildtools:: @@\
MakeDir($(INSTALL_PLATFORM_ETC_DIR)) @@\
$(INSTALL) -c $(INSTPGMFLAGS) program $(INSTALL_PLATFORM_ETC_DIR)
#endif /* InstallBuildToolsBinary */
/*
* InstallBuildToolsScript - generate rules for installing scripts
*/
#ifndef InstallBuildToolsScript
# define InstallBuildToolsScript(program) @@\
install_buildtools:: program @@\
MakeDir($(INSTALL_BIN_DIR)) @@\
$(INSTALL) -c $(INSTBINFLAGS) program $(INSTALL_BIN_DIR)
#endif /* InstallBuildToolsScript */
/*
* InstallPlatformBuildToolsScript - generate rules for installing
* scripts in platform specific directory.
*/
#ifndef InstallPlatformBuildToolsScript
# define InstallPlatformBuildToolsScript(program) @@\
install_buildtools:: program @@\
MakeDir($(INSTALL_PLATFORM_ETC_DIR)) @@\
$(INSTALL) -c $(INSTBINFLAGS) program $(INSTALL_PLATFORM_ETC_DIR)
#endif /* InstallPlatformBuildToolsScript */
XCOMM
XCOMM only use this for files that are platform independent
XCOMM /* this is based upon InstallScript in Imake.rules */
XCOMM
#define InstallShellProg(progname) @@\
install:: progname @@\
MakeDir($(DESTDIR)$(INSTALL_BIN_DIR)) @@\
$(INSTALL) -c $(INSTBINFLAGS) progname $(DESTDIR)$(INSTALL_BIN_DIR)/progname
XCOMM
XCOMM don't depend on built-in .C.o rules
XCOMM
NormalCplusplusObjectRule()
XCOMM
XCOMM forcing old C to be used
XCOMM

View file

@ -1,449 +0,0 @@
XCOMM $TOG: DtInfo.tmpl /main/37 1997/09/05 11:31:26 samborn $
XCOMM OLIAS project common makefile
/* Chain project template files. */
#include <cde.tmpl>
#define CdeDesktop
XCOMM #define BuildOutsideCde
#ifdef BuildOutsideCde
XCOMM These are set by default when building outside of the CDE source
XCOMM tree. Some use-installed support needs to be implemented for all
XCOMM cases, however, once CDE build integration and revamped CDE Imake
XCOMM config based on X11R6 is complete.
# ifndef UseInstalledCde
XCOMM build using installed Motif and CDE libs and headers
# define UseInstalledCde
# endif
# ifndef UseInstalled
XCOMM build using installed X11 libs and headers
# define UseInstalled
# endif
# ifndef BuildLocalInfolibs
XCOMM infolib(s) built from local subtree
# define BuildLocalInfolibs
# endif
# ifndef BuildStandalonePackaging
XCOMM provide for independent (non-cde) packaging
# define BuildStandalonePackaging
# endif
# ifndef InstallMultiPlatform
XCOMM have multiple platforms run out of the same install tree,
XCOMM sharing everything except binary parts
# define InstallMultiPlatform
# endif
#endif
#ifdef CdeDesktop
XCOMM Provide flags for CDE desktop facilities explicitly if CDE context.
XCOMM (Note, these will assume a post-CDE 1.0 functional revision level.)
# define DtinfoClient
# define UseMotifXpm
# define UseTooltalk
XCOMM X11 R6 session management
# define UseSessionMgmt
#endif
#ifdef DtinfoClient
XCOMM Turn off all flags not applicable to CDE dtinfo client,
XCOMM and turn on those that are:
XCOMM -- search engine
# define UseDtSearch
# ifdef UseQSearch
# undef UseQSearch
# endif
# ifdef UseFulcrum
# undef UseFulcrum
# endif
XCOMM -- canvas and/or rendering engine
# define UseDtCanvas
# ifdef UseTmlRenderer
# undef UseTmlRenderer
# endif
XCOMM -- remote connections
# ifdef UsePython
# undef UsePython
# endif
XCOMM -- specific license managers
# ifdef DoLicenseManagement
# undef DoLicenseManagement
# endif
XCOMM -- special libraries
# ifdef UseRWClasses
# undef UseRWClasses
# endif
#endif
#define WideCharSupport
#define UseWideChars
#define Internationalize
#define JapaneseLocal
#ifdef DtinfoClient
DTINFO_DEFINES=-DDtinfoClient -DUseMotifXpm -DUseTooltalk -DUseSessionMgmt
#elif defined(CdeDesktop)
DTINFO_DEFINES=-DUseMotifXpm -DUseTooltalk -DUseSessionMgmt
#else
DTINFO_DEFINES=
#endif
#ifdef UseWideChars
WIDEC_DEFINES=-DUseWideChars
#else
WIDEC_DEFINES=
#endif
#ifdef Internationalize
I18N_DEFINES=-DInternationalize
#else
I18N_DEFINES=
#endif
#ifdef UseQSearch
XCOMM The QSearch Japanese-language search engine is available only on
XCOMM Solaris, so only enable it there.
SEARCH_DEFINES=-DUseQSearch
#elif defined(UseDtSearch)
SEARCH_DEFINES=-DDTSEARCH
#else
SEARCH_DEFINES=-DFULCRUM
#endif
#ifdef UseDlOpen
DLOPEN_DEFINES=-DUseDlOpen
#else
DLOPEN_DEFINES=
#endif
#ifdef DoLicenseManagement
LM_DEFINES=
LM_INCLUDES=
#else
LM_DEFINES=
LM_INCLUDES=
#endif
#ifdef Purify
XCOMM if Purify is defined then set the variable PURIFY - cso 941215
PURIFY=PurifyCmd
#endif
#ifdef SunArchitecture
STATIC=-Bstatic
DYNAMIC=-Bdynamic
# if (OSMajorVersion == 5)
EXTRA_LIBRARIES=$(DYNAMIC) ExtraLibraries -lresolv
# endif
# if (OSMajorVersion == 4)
# define BuildPython
# endif
#endif
#ifdef UXPArchitecture
STATIC=-Bstatic
DYNAMIC=-Bdynamic
EXTRA_LIBRARIES=$(DYNAMIC) ExtraLibraries -lgen
#endif
#ifdef HPArchitecture
STATIC=-Wl,-a,archive
DYNAMIC=-Wl,-a,shared
# define NeedLocalAlloca
#endif
XCOMM set platform subdir finder
#ifdef HAL32V7Architecture
PLATFORM=halos
# define DoLicenseManagement
#elif defined(HPArchitecture)
PLATFORM=hpux
#elif defined(AIXArchitecture)
PLATFORM=aix
#elif defined(UXPArchitecture)
PLATFORM=uxpds
#elif defined(AlphaArchitecture)
PLATFORM=digital
#elif defined(USLArchitecture)
PLATFORM=usl
#elif defined(SVR4Architecture) && defined(i386Architecture)
PLATFORM=usl
#elif defined(SystemV4) && defined(i386)
PLATFORM=solaris-386
#elif defined(SystemV4)
PLATFORM=solaris
#else
PLATFORM=sunos
#endif
XCOMM end set platform subdir finder
OLIAS = $(PROGRAMSRC)/dtinfo
CONTROL=$(OLIAS)/control
LIBRARY = $(OLIAS)/library
#ifdef UseTmlRenderer
TML = $(OLIAS)/tml
#endif
WWL = $(OLIAS)/dtinfo/wwl
MMDB = $(CDELIBSRC)/DtMmdb
EXCEPTIONS = $(MMDB)/dti_excs
TOOLS = $(OLIAS)/tools
UAS = $(OLIAS)/dtinfo/src/UAS
LIBCHECK = $(SHELL) $(CURRENT_DIR)/libcheck $(PLATFORM)
#ifdef UsePython
XCOMM
XCOMM Python-related definitions
XCOMM
PYTHON_ROOT = $(LIBRARY)/python/unix
PYTHON = $(PYTHON_ROOT)/python
PYTHON_INCLUDES = -I$(PYTHON_ROOT) -I$(PYTHON_ROOT)/Include
PYTHON_LIB_PATH = -L$(PYTHON_ROOT)/Modules -L$(PYTHON_ROOT)/Python -L$(PYTHON_ROOT)/Objects \
-L$(PYTHON_ROOT)/Parser -L$(PYTHON_ROOT)/readline
PYTHON_LIBS = $(PYTHON_ROOT)/Modules/config.nomain.o -lModules -lPython -lObjects -lParser -lreadline
PYTHON_SYS_LIBS =$(DYNAMIC) -ltermcap -lm
#endif
#ifdef UseTmlRenderer
TML_INCLUDES = -I$(TML)/include
TML_LIBS=-L$(TML)/src -ltml
#endif
WWL_INCLUDES = -I$(WWL)/include
WWL_LIBS=$(STATIC) -L$(WWL)/src -lWWL
EXCEPTIONS_INCLUDES = -I$(EXCEPTIONS)
MMDB_INCLUDES = -I$(MMDB)
UAS_INCLUDES = -I$(UAS)/Base
#ifdef UseFulcrum
FULCRUM_INCLUDES = FulcrumIncludes
FULCRUM_DEFINES = FulcrumDefines
FULCRUM_LIBDIR = FulcrumLibDir
#endif
#ifdef UseQSearch
QSEARCH_LIBDIR = QSearchLibDir
#endif
#ifdef UseDtSearch
# ifdef UseInstalledCde
DTSEARCH_INCLUDES = $(CDEINCLUDES)
DTSEARCH_LIBDIR = /usr/dt/lib
# elif defined(BuildOutsideCde)
DTSEARCH_INCLUDES = -I$(OLIAS)/../../lib/DtSearch
DTSEARCH_LIBDIR = $(OLIAS)/../../lib/DtSearch
# else
DTSEARCH_INCLUDES = -I$(TOP)/exports/include/Dt
DTSEARCH_LIBDIR = $(TOP)/exports/lib
# endif
#endif
XCOMM BuildTools Include macros
GLOBAL_INCLUDES=-I$(OLIAS)/dtinfogen/global/
#ifdef UseFulcrum
# if defined(AIXArchitecture) || defined(RsArchitecture)
XCOMM -- Need to add something here to circumvent lack of
XCOMM -- LD_LIBRARY_PATH on aix - SWM
FULCRUMLIBS=$(LIBRARY)/fulcrum/aix/lib/libftft.010.1.o
# else
FULCRUMLIBS=$(DYNAMIC) -L$(FULCRUM_LIBDIR) -lftfT
# endif
#else
# ifdef UseQSearch
QSEARCHLIBS=$(DYNAMIC) -L$(QSEARCH_LIBDIR) -lftxcall
# elif defined(UseDtSearch)
DTSEARCHLIBS=$(DYNAMIC) -L$(DTSEARCH_LIBDIR) -lDtSearch
# endif
#endif
MISC_INCLUDES = -I$(MMDB)/misc
DTSVC_LIBRARY=$(DYNAMIC) $(CDE_LIBS) -lDtSvc
DTSVCLIB=$(DYNAMIC) $(CDE_LIBS) -lDtSvc
#ifdef BuildOutsideCde
DTHELP_LIBRARY=$(DYNAMIC) -L$(OLIAS)/../../exports/lib -lDtHelp
DTHELP_INCLUDES=$(OLIAS)/../../exports/include
TREE_INCLUDES=-I$(OLIAS)/../../exports/include -I$(OLIAS)/../../exports/include/Misc
#else
DTHELP_LIBRARY=$(DYNAMIC) $(CDE_LIBS) -lDtHelp
DTHELP_INCLUDES=$(TOP)/exports/include
DTPRINTLIB=$(DYNAMIC) $(CDE_LIBS) -lDtPrint
TREE_INCLUDES=$(CDEINCLUDES) $(CDEINCLUDES)/Misc
#endif
#ifdef UseInstalledCde
CDEINCLUDES = -I/usr/dt/include
CDE_LIBS = -L/usr/dt/lib
#else
CDEINCLUDES = -I$(TOP)/exports/include
CDE_LIBS = -L$(TOP)/exports/lib
#endif
MTFLIBDIR = $(TOP)/imports/motif/lib
BROWSER_INCLUDES=-I.. $(UAS_INCLUDES) $(EXCEPTIONS_INCLUDES) $(WWL_INCLUDES) $(TREE_INCLUDES) $(CDEINCLUDES)
#ifdef UseRWClasses
RW_LIBDIR=-L$(LIBRARY)/rogue/$(PLATFORM)
RW_LIB=-lrwtool
RW_INCLUDES=-I$(LIBRARY)/rogue/$(PLATFORM)
#endif
COMMON_CLASS_LIBDIR=$(STATIC) -L$(MMDB)/dti_cc
COMMON_CLASS_LIB=-lcommon_class
COMMON_CLASS_INCLUDES=-I$(MMDB)/dti_cc -I$(MMDB)
DBUG_INCLUDES=
DBUG_LIBS=
STYLE_SHEET_INCLUDES=-I$(MMDB)/StyleSheet $(COMMON_CLASS_INCLUDES)
TREERES=$(TOOLS)/misc/treeres
XCOMM exceptions library
EXCLIB =$(STATIC) -L$(EXCEPTIONS) -lexc
EXCLIB_C_API =$(STATIC) -L$(EXCEPTIONS) -lC_APIexc
MMDB_LIBS=$(STATIC) -L$(OLIAS)/mmdb -lMMDB
MMDB_LIBS_C_API=$(DYNAMIC) -L$(MMDB)/lib -lDtMmdb
#ifdef UseFulcrum
UAS_LIBS = \
$(UAS)/Base/libBase.a \
$(UAS)/MMDB/libMMDB.a \
$(UAS)/Fulcrum/libFulcrum.a
#endif
MATH_LIB=$(DYNAMIC) -lm
MISC_LIB=$(STATIC) -L$(TOOLS)/src -lmisc
#ifdef DoLicenseManagement
XCOMM Licensing libraries and Include macros
XCOMM LICENSE_LROOT is the root of local libraries
XCOMM LICENSE_FROOT is the root of the FlexLM (foreign) libraries
LICENSE_LROOT=LicenseLocalLibDir
LICENSE_FROOT=LicenseForeignLibDir
XCOMM Force-load the Mech*.o files so their static initializers get called,
XCOMM tying the mechanisms into the licensing system
LICENSE_Mechanisms=$(LICENSE_LROOT)/cryptlib/MechFLEXlm.o
LICENSE_L_LIBS=$(LICENSE_Mechanisms) -L$(LICENSE_LROOT)/cryptlib -loliascrypt \
-L$(LICENSE_LROOT)/libdes -loliasdes
LICENSE_L_INCLUDES=-I$(LICENSE_LROOT)
LICENSE_F_INCLUDES=-I$(LICENSE_FROOT)/h
#endif
XCOMM
XCOMM project specific includes go into EXTRA_INCLUDES
XCOMM
CEXT = c
XCOMM Alway search our special config directory.
CONFIGDIR = $(OLIAS)/tools/config
IRULESRC = $(OLIAS)/tools/config
XCOMM
XCOMM Installation stuff
XCOMM
XCOMM
PLATFORM_BIN_DIR=$(PLATFORM)
PLATFORM_TOOLS_DIR=$(TOOLS)/$(PLATFORM_BIN_DIR)
INSTALL_BIN_DIR=$(INSTALL_ROOT)/bin
XCOMM the browser binary uses the following, and must not install to
XCOMM same place as script by same name, which goes to INSTALL_BIN_DIR.
INSTALL_PLATFORM_BIN_DIR=$(INSTALL_BIN_DIR)/$(PLATFORM_BIN_DIR)
INSTALL_LIB_DIR=$(INSTALL_ROOT)/lib
INSTALL_APPCONFIG_DIR=$(INSTALL_ROOT)/appconfig
INSTALL_ETC_DIR=$(INSTALL_INFOLIB_DIR)/etc
INSTALL_GPL_LIB_DIR=$(INSTALL_ETC_DIR)/gpl/$(GPL_PRODUCT)/lib
#ifdef InstallMultiPlatform
INSTALL_PLATFORM_ETC_DIR=$(INSTALL_ETC_DIR)/$(PLATFORM)
INSTALL_PLATFORM_LIB_DIR=$(INSTALL_LIB_DIR)/$(PLATFORM)
INSTALL_GPL_PLATFORM_BIN_DIR=$(INSTALL_ETC_DIR)/gpl/$(GPL_PRODUCT)/bin/$(PLATFORM)
#else
INSTALL_PLATFORM_ETC_DIR=$(INSTALL_INFOLIB_DIR)/etc
INSTALL_PLATFORM_LIB_DIR=$(INSTALL_LIB_DIR)
INSTALL_GPL_PLATFORM_BIN_DIR=$(INSTALL_ETC_DIR)/gpl/$(GPL_PRODUCT)/bin
#endif
INSTALL_FONTS_DIR=$(INSTALL_ETC_DIR)/fonts
INSTALL_STYLES_DIR=$(INSTALL_LIB_DIR)/Styles.
XCOMM When installing into the following, the lang value must be inserted
XCOMM as the next directory level, due to language-specific content.
INSTALL_INFOLIB_DIR=$(INSTALL_ROOT)/infolib
INSTALL_BITMAPS_DIR=$(INSTALL_APPCONFIG_DIR)/icons
INSTALL_HELP_DIR=$(INSTALL_APPCONFIG_DIR)/help
INSTALL_XRESOURCES_DIR=$(INSTALL_ROOT)/app-defaults
#ifdef InstallMultiPlatform
XCOMM message catalogs as binaries
INSTALL_MSG_CAT_DIR=$(INSTALL_LIB_DIR)/nls/msg/$(PLATFORM)
#else
INSTALL_MSG_CAT_DIR=$(INSTALL_LIB_DIR)/nls/msg
#endif
#define BigEndianDefines -DOLIAS_BIG_ENDIAN
#define LittleEndianDefines -DOLIAS_LITTLE_ENDIAN
#define DefaultEndianDefines -DOLIAS_DEFAULT_ENDIAN
#ifndef TemplateDB
#define TemplateDB Templates.DB
#endif
XCOMM Following X11 and Mtf defines should be replaced w/ std config
#ifndef X11Includes
# define X11Includes -I$(TOP)/imports/x11/include
#endif
#ifndef MtfIncludes
# define MtfIncludes -I$(TOP)/imports/motif/include
#endif
#ifndef MtfLibraries
# define MtfLibraries $(DYNAMIC) $(XMLIB)
#endif
#ifndef X11Libraries
# define X11Libraries $(DYNAMIC) $(XTOOLLIB) $(XPLIB) $(XMULIB) $(XLIB)
#endif
X11_INCLUDES=X11Includes
X11_LIBRARIES=X11Libraries
MTF_INCLUDES=MtfIncludes
MTF_LIBRARIES=MtfLibraries
XMLIB = -L$(MTFLIBDIR) -lXm
XTOOLLIB = -L$(TOP)/imports/x11/lib $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
#if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
NO_EXC=-noex
TEMPLATE_OBJS=*.o.ptrep/TemplateDB//**/*.o
TEMPLATE_DB=*.o.ptrep
#elif defined(SunArchitecture) && CplusplusCompilerMajorVersion > 2
NO_EXC=-noex
TEMPLATE_DB=TemplateDB
TEMPLATE_OBJS=TemplateDB//**/*.o
#endif
#define TemplateObjs $(TEMPLATE_OBJS)
#if defined(i386Architecture) || defined(AlphaArchitecture)
# define ByteOrderDefines LittleEndianDefines
#elif defined(HAL32V7Architecture) || defined(SunArchitecture) || defined(AIXArchitecture) || defined(HPArchitecture) || defined(UXPArchitecture)
# define ByteOrderDefines BigEndianDefines
#else
# define ByteOrderDefines DefaultEndianDefines
#endif
BYTE_ORDER_DEFINES=ByteOrderDefines
/*
* The following stuffs are default rules required by build_tools
*
*/
install_buildtools::

View file

@ -1,148 +0,0 @@
XCOMM platform: $TOG: FreeBSD.cf /main/21 1997/10/05 20:42:34 kaleb $
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSVendor
#define OSVendor Walnut Creek CD-ROM
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
#define HasPutenv YES
#define HasBSD44Sockets YES
#define HasZlib YES
#define CppCmd /usr/libexec/cpp -traditional
#define PreProcessCmd /usr/libexec/cpp -traditional
#undef InstallCmd
#define InstallCmd /usr/bin/install
#define UseGas YES
#ifndef GccUsesGas
# define GccUsesGas YES
#endif
#ifndef AsmDefines
# define AsmDefines -DUSE_GAS
#endif
#if GccUsesGas
# define GccGasOption -DGCCUSESGAS
#else
# define GccGasOption /**/
#endif
#ifndef HasGcc2
# define HasGcc2 YES
#endif
#define MkdirHierCmd mkdir -p
#define CcCmd gcc
#ifndef DefaultCCOptions
#define DefaultCCOptions -pipe
#endif
#if OSMajorVersion > 1
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define XawI18nDefines -DUSE_XWCHAR_STRING
#define HasMakefileSafeInclude YES
#define IncludeMakefile(file) @@# dependencies are in .depend
#define DependFileName .depend
#if OSMinorVersion < 2
#ifndef ExtraLibraries
#define ExtraLibraries -lgnumalloc
#endif
#else
#if OSTeenyVersion == 2
#define HasSetUserContext YES
#endif
#ifndef ExtraLoadFlags
/*
* This doesn't work the way it does on every other system. On FreeBSD it's
* only a "hint, not a demand", whatever that means. Note that this is not
* what it says in the ld and ld.so man pages, which are rather vague on the
* matter.
*
* But we do know that if a) you do what the X Project team does and set your
* ProjectRoot to something like "/X11", and b) you have other X libraries,
* e.g. in /usr/X11R6/lib, and you have added /usr/X11R6/lib to your
* ld.so.cache with ldconfig, then any programs linked with this "hint" will
* find that ld.so ignores the "hint" at runtime and loads the libraries in
* the ld.so.cache, i.e.the wrong ones, instead! Empirically we find that
* the run-path is only used as a last resort to find the libraries, after
* the LD_LIBRARY_PATH and ld.so.cache.
*
* N. B. to FreeBSD users who are not familiar with the semantics of the run-
* path on other systems. The run-path is akin to a per-program ld.so.cache.
* If a program is linked with a run-path, that run-path should take
* precedence over _everything_ else! In my opinion ldconfig and the
* ld.so.cache should be deprecated immediately now that FreeBSD has run-
* paths. Any program that needs libraries that are outside the "well known"
* locations should be linked with a run-path.
*
* All of which begs the question: If this option doesn't work in any useful
* way, why did they (FreeBSD) bother to add it? It would be nice if FreeBSD
* would fix ld.so so that run-paths are truly useful.
*
* Using run-paths is added with the intent that vendors who ship X for
* FreeBSD should use it too. Once everyone uses it then there will be no
* reason for FreeBSD to assume that it knows where X libraries are installed
* and they can remove it from the list of directories they add to ld.so.cache
* in their /etc/rc file.
*/
#define ExtraLoadFlags -Wl,-R,$(USRLIBDIRPATH)
#endif
#endif
#else
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#ifndef ExtraLibraries
#define ExtraLibraries /* -lmalloc */
#endif
#endif
/* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
#ifndef DefaultGcc2i386Opt
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
#define DefaultGcc2i386Opt -O2
#endif
#endif
#ifdef i386Architecture
# define OptimizedCDebugFlags DefaultGcc2i386Opt
#else
# define OptimizedCDebugFlags -O2
#endif
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#define StandardDefines -DCSRG_BASED
#define TroffCmd groff -Tps
#define SetTtyGroup YES
#define HasNdbm YES
#define HasShm YES
#define HasWChar32 YES
#define HasLibCrypt YES
#define AvoidNullMakeCommand YES
#define HasPlugin YES
#define VendorHasX11R6_3libXext YES /* XC or XFree86 3.3.1 */
#include <bsdLib.rules>
#ifdef i386Architecture
#include <xfree86.cf>
#endif

View file

@ -1,588 +0,0 @@
XCOMM $TOG: Imake.cf /main/30 1998/04/28 13:55:25 barstow $
/*
* To add support for another platform:
*
* 1. Identify a machine-specific cpp symbol. If your preprocessor
* does not have any built in, you will need to add the symbol to the
* cpp_argv table in config/imake/imakemdep.h and rebuild imake with
* the BOOTSTRAPCFLAGS variable set (see the macII for an example).
*
* 2. Add all machine-specific cpp symbols (either defined by you or by
* the preprocessor or compiler) to the predefs table in
* config/imake/imakemdep.h.
*
* 3. But a new #ifdef block below that defines MacroIncludeFile and
* MacroFile for your new platform and then #undefs the machine-
* specific preprocessor symbols (to avoid problems with file names).
*
* 4. Create a .cf file with the name given by MacroFile.
*/
#ifdef ultrix
# define MacroIncludeFile <ultrix.cf>
# define MacroFile ultrix.cf
# ifdef vax
# undef vax
# define VaxArchitecture
# endif
# ifdef mips
# undef mips
# define MipsArchitecture
# endif
# undef ultrix
# define UltrixArchitecture
#endif /* ultrix */
#if defined(vax) && !defined(UltrixArchitecture)
# define MacroIncludeFile <bsd.cf>
# define MacroFile bsd.cf
# undef vax
# define BSDArchitecture
# define VaxArchitecture
#endif /* vax */
#ifdef bsdi
# define MacroIncludeFile <bsdi.cf>
# define MacroFile bsdi.cf
# undef bsdi
# define BSD386Architecture
# define i386BsdArchitecture
# define i386Architecture
# undef i386
#endif /* bsdi */
#ifdef __OpenBSD__
# undef __OpenBSD__
# undef __NetBSD__
# define OpenBSDArchitecture
# define KOpenBSDArchitecture
# define MacroIncludeFile <OpenBSD.cf>
# define MacroFile OpenBSD.cf
# ifdef __i386__
# define i386BsdArchitecture
# define i386Architecture
# undef i386
# endif
# if defined(__sparc__) || defined(sparc)
# if !defined(__arch64__)
# define SparcArchitecture
# else
# define Sparc64Architecture
# endif
# undef sparc
# undef sparc64
# endif
# if defined(__mips__) || defined(mips)
# define MipsArchitecture
# ifdef __LP64__
# define Mips64Architecture
# endif
# ifdef arc
# define ArcArchitecture
# undef arc
# endif
# ifdef sgi
# define SGIArchitecture
# undef sgi
# endif
# ifdef pmax
# define PmaxArchitecture
# undef pmax
# endif
# undef mips
# undef __mips__
# endif
# if defined(__alpha__) || defined(alpha)
# define AlphaArchitecture
# undef __alpha__
# undef alpha
# endif
# if defined(__amd64__) || defined(__x86_64__)
# define AMD64Architecture
# undef __amd64__
# undef __x86_64__
# undef amd64
# endif
# if defined(__arm__)
# define Arm32Architecture
# undef __arm__
# if defined(zaurus)
# undef zaurus
# define ZaurusArchitecture
# endif
# endif
# if defined(__mc68020__) || defined(mc68020)
# define Mc68020Architecture
# if defined(amiga)
# define AmigaArchitecture
# undef amiga
# endif
# if defined(hp300)
# define Hp300Architecture
# undef hp300
# endif
# if defined(mac68k)
# define Mac68kArchitecture
# undef mac68k
# endif
# if defined(mvme68k)
# define Mvme68kArchitecture
# undef mvme68k
# endif
# if defined(sun3)
# define Sun3Architecture
# undef sun3
# endif
# undef mc68000
# endif
# if defined(__m88k__) || defined(m88k)
# define Mc88000Architecture
# undef m88k
# endif
# ifdef __powerpc__
# define PpcArchitecture
# undef __powerpc__
# undef __macppc__
# undef macppc
# endif
# ifdef __sh__
# undef __sh__
# define SuperHArchitecture
# endif
# ifdef __vax__
# undef vax
# undef __vax__
# define VaxArchitecture
# endif
# ifdef __hppa__
# ifndef HPArchitecture
# define HPArchitecture
# endif
# undef __hppa__
# endif /* __hppa__ */
#endif /* OpenBSD */
/* Systems based on kernel of OpenBSD */
#if defined(__OpenBSD_kernel__)
#define KOpenBSDArchitecture
#endif
#ifdef __NetBSD__
# define MacroIncludeFile <NetBSD.cf>
# define MacroFile NetBSD.cf
# undef __NetBSD__
# define NetBSDArchitecture
# ifdef __i386__
# define i386BsdArchitecture
# define i386Architecture
# undef i386
# endif
# if defined(__sparc__) || defined(sparc)
# define SparcArchitecture
# undef sparc
# endif
#endif /* NetBSD */
#ifdef __FreeBSD__
# define MacroIncludeFile <FreeBSD.cf>
# define MacroFile FreeBSD.cf
# undef __FreeBSD__
# define FreeBSDArchitecture
# ifdef __i386__
# define i386BsdArchitecture
# define i386Architecture
# undef i386
# endif
#endif /* __FreeBSD__ */
#ifdef AMOEBA
/* Should be before the 'sun' entry because we may be cross-compiling */
# define MacroIncludeFile <Amoeba.cf>
# define MacroFile Amoeba.cf
# if defined(i80386) || defined(__i80386__)
# undef i80386
# define i386Architecture
# else
# if defined(mc68000) || defined(__mc68000__)
# undef mc68000
# define Sun3Architecture
# define SunArchitecture
# else
# if defined(sparc) || defined(__sparc__)
# undef sparc
# define SparcArchitecture
# define SunArchitecture
# endif
# endif
# undef sun
# endif
#endif /* AMOEBA */
#ifdef sun
# define MacroIncludeFile <sun.cf>
# define MacroFile sun.cf
# ifdef SVR4
# undef SVR4
# define SVR4Architecture
# endif
# ifdef sparc
# undef sparc
# define SparcArchitecture
# endif
# ifdef mc68000
# undef mc68000
# define Sun3Architecture
# endif
# ifdef i386
# undef i386
# define i386Architecture
# endif
# undef sun
# define SunArchitecture
#endif /* sun */
#ifdef hpux
# define MacroIncludeFile <hp.cf>
# define MacroFile hp.cf
# undef hpux
# define HPArchitecture
#endif /* hpux */
#ifdef sco
# define MacroIncludeFile <sco.cf>
# define MacroFile sco.cf
# undef sco
# undef USL
# undef SYSV
# undef i386
/* # define i386Architecture */
# define SCOArchitecture
#endif /* sco */
#ifdef USL
# define MacroIncludeFile <usl.cf>
# define MacroFile usl.cf
# undef USL
# undef SVR4
# undef i386
# define SVR4Architecture
# define i386Architecture
# define USLArchitecture
#endif /* USL */
#ifdef NCR
# define MacroIncludeFile <ncr.cf>
# define MacroFile ncr.cf
# undef NCR
# undef SVR4
# undef i386
# define SVR4Architecture
# define i386Architecture
# define NCRArchitecture
#endif /* NCR */
#ifdef apollo
# define MacroIncludeFile <apollo.cf>
# define MacroFile apollo.cf
# undef apollo
# define ApolloArchitecture
#endif /* apollo */
#ifdef sony
# define MacroIncludeFile <sony.cf>
# define MacroFile sony.cf
# undef sony
# undef sony_news
# define SonyArchitecture
# ifdef mc68020
# undef mc68020
# undef mc68030
# define Mc68020Architecture
# endif
# ifdef mips
# undef mips
# define MipsArchitecture
# endif
# ifdef __svr4
# define SVR4Architecture
# else
# if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
# define SonySysvArchitecture
# else
# define SonyBsdArchitecture
# endif
# endif
#endif /* sony */
#ifdef M4310
# define MacroIncludeFile <pegasus.cf>
# define MacroFile pegasus.cf
# undef M4310
# define PegasusArchitecture
#endif /* M4310 */
#ifdef M4330
# define MacroIncludeFile <m4330.cf>
# define MacroFile m4330.cf
# undef M4330
# define M4330Architecture
#endif /* M4330 */
#ifdef macII
# define MacroIncludeFile <macII.cf>
# define MacroFile macII.cf
# undef macII
# define MacIIArchitecture
#endif /* macII */
#ifdef _CRAY
# define MacroIncludeFile <cray.cf>
# define MacroFile cray.cf
# undef cray
# undef CRAY
# undef CRAY1
# undef CRAY2
# undef YMP
# define CrayArchitecture
#endif /* _CRAY */
#ifdef sgi
# define MacroIncludeFile <sgi.cf>
# define MacroFile sgi.cf
# undef sgi
# define SGIArchitecture
# undef mips
# define MipsArchitecture
# ifdef _SVR4
# undef _SVR4
# define SVR4Architecture
# endif
# ifdef _SYSTYPE_SVR4
# undef _SYSTYPE_SVR4
# define SVR4Architecture
# endif
#endif /* sgi */
#ifdef stellar
# define MacroIncludeFile <stellar.cf>
# define MacroFile stellar.cf
# undef stellar
# define StellarArchitecture
#endif /* stellar */
#if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
# define MacroIncludeFile <ibm.cf>
# define MacroFile ibm.cf
# ifdef ibm
# undef ibm
# endif
# define IBMArchitecture
# ifdef i386
# undef i386
# define PS2Architecture
# endif
# ifdef ibm032
# undef ibm032
# define RtArchitecture
# endif
# ifdef aix
# undef aix
# define AIXArchitecture
# endif
# ifdef _IBMR2
# undef _IBMR2
# define RsArchitecture
# endif
#endif /* ibm */
#ifdef luna
# undef luna
# define MacroIncludeFile <luna.cf>
# define MacroFile luna.cf
# define LunaArchitecture
# ifdef mc68000
# undef mc68000
# define Mc68000Architecture
# else
# undef mc88000
# define Mc88000Architecture
# endif
#endif /* luna */
#ifdef Mips
# define MacroIncludeFile <Mips.cf>
# define MacroFile Mips.cf
# undef Mips
# undef mips
# if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
# define MipsBsdArchitecture
# else /* BSD */
# define MipsSysvArchitecture
# endif /* BSD */
#endif /* Mips */
#ifdef MOTOROLA
# define MacroIncludeFile <moto.cf>
# define MacroFile moto.cf
# undef MOTOROLA
# ifdef SYSV
# define MotoR3Architecture
# endif
# ifdef SVR4
# define MotoR4Architecture
# endif
#endif /* MOTOROLA */
#ifdef SVR4
# ifdef i386
# define i386Architecture
# undef i386
# endif
# define SVR4Architecture
# define MacroIncludeFile <svr4.cf>
# define MacroFile svr4.cf
# undef SVR4
#endif /* SVR4 */
#ifdef SYSV
# ifdef i386
# define MacroIncludeFile <x386.cf>
# define MacroFile x386.cf
# define i386SVR3Architecture
# undef i386
# endif
#endif /* SYSV */
#ifdef SYSV386
# undef i386
# ifdef SVR4
# define i386Architecture
# define SVR4Architecture
# define i386SVR4Architecture
# define MacroIncludeFile <svr4.cf>
# define MacroFile svr4.cf
# undef SVR4
# else
# define MacroIncludeFile <x386.cf>
# define MacroFile x386.cf
# define i386SVR3Architecture
# endif
#endif /* SYSV386 */
#ifdef DGUX
# define MacroIncludeFile <DGUX.cf>
# define MacroFile DGUX.cf
# undef DGUX
# define DguxArchitecture
#endif /* DGUX */
#ifdef __convex__
# define MacroIncludeFile <convex.cf>
# define MacroFile convex.cf
# ifdef convex
# undef convex
# endif
# define ConvexArchitecture
#endif /* _convex_ */
#ifdef __osf__
# define MacroIncludeFile <osf1.cf>
# define MacroFile osf1.cf
# define OSF1Architecture
# undef __osf__
# ifdef __mips__
# undef __mips__
# define MipsArchitecture
# endif
# ifdef __alpha
# undef __alpha
# define AlphaArchitecture
# endif
#endif /* __osf__ */
#ifdef Oki
# define MacroIncludeFile <Oki.cf>
# define MacroFile Oki.cf
# undef Oki
# define i860SVR4Architecture
# define SVR4Architecture
# undef SVR4
#endif /* Oki */
#ifdef WIN32
# define MacroIncludeFile <Win32.cf>
# define MacroFile Win32.cf
# define Win32Architecture
#endif /* WIN32 */
#ifdef linux
# define MacroIncludeFile <linux.cf>
# define MacroFile linux.cf
# undef linux
# define LinuxArchitecture
# ifdef i386
# define i386Architecture
# undef i386
# ifdef __i386__
# ifndef i386Architecture
# define i386Architecture
# endif
# undef __i386__
# endif /* i386 */
# ifdef __alpha
# define AlphaArchitecture
# undef __alpha
# endif /* __alpha */
#endif
#endif /* linux */
#ifdef __uxp__
# define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf
# define FujitsuArchitecture
# undef __uxp__
# define UXPArchitecture
# define SVR4Architecture
# ifdef sparc
# undef sparc
# define SparcArchitecture
# endif
#endif /* __uxp__ */
#ifdef __sxg__
# define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf
# define FujitsuArchitecture
# undef __sxg__
# define mc68000Architecture
#endif /* __sxg__ */
#if defined(sequent) || defined(_SEQUENT_)
# define MacroIncludeFile <sequent.cf>
# define MacroFile sequent.cf
# ifdef sequent
# undef sequent
# define Dynix3Architecture
# endif
# ifdef _SEQUENT_
# undef _SEQUENT_
# define DynixPtxArchitecture
# endif
# define SequentArchitecture
#endif
#if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
# ifdef nec
# undef nec
# endif
# define MacroIncludeFile <nec.cf>
# define MacroFile nec.cf
# define NecArchitecture
#endif
#ifndef MacroIncludeFile
XCOMM WARNING: Imake.cf not configured; guessing at definitions!!!
XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
#define MacroIncludeFile <generic.cf>
#define MacroFile generic.cf
#endif

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,105 +0,0 @@
XCOMM $XConsortium: Imakefile /main/38 1996/11/07 14:43:46 kaleb $
XCOMM Some compilers generate fatal errors if an -L directory does
XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its use.
LDPRELIB =
LDPRELIBS =
#ifdef LocalConfigFiles
LOCALFILES = LocalConfigFiles
#endif
DEFFILES = \
site.def
RULEFILES = \
Imake.rules \
Motif.rules \
Win32.rules \
X11.rules \
bsdLib.rules \
cde.rules \
hpLib.rules \
ibmLib.rules \
lnxLib.rules \
necLib.rules \
noop.rules \
oldlib.rules \
os2Lib.rules \
osfLib.rules \
scoLib.rules \
sgiLib.rules \
sunLib.rules \
sv3Lib.rules \
sv4Lib.rules \
xf86.rules
TMPLFILES = \
Imake.tmpl \
Library.tmpl \
Motif.tmpl \
Server.tmpl \
Threads.tmpl \
WinLib.tmpl \
X11.tmpl \
bsdLib.tmpl \
cde.tmpl \
hpLib.tmpl \
ibmLib.tmpl \
lnxLib.tmpl \
necLib.tmpl \
os2Lib.tmpl \
osfLib.tmpl \
sgiLib.tmpl \
sunLib.tmpl \
sv3Lib.tmpl \
sv4Lib.tmpl \
xf86.tmpl
CFFILES = \
Imake.cf \
Amoeba.cf \
DGUX.cf \
FreeBSD.cf \
Mips.cf \
NetBSD.cf \
Oki.cf \
Win32.cf \
apollo.cf \
bsd.cf \
bsdi.cf \
convex.cf \
cray.cf \
fujitsu.cf \
generic.cf \
hp.cf \
ibm.cf \
isc.cf \
linux.cf \
luna.cf \
macII.cf \
mach.cf \
minix.cf \
moto.cf \
ncr.cf \
nec.cf \
os2.cf \
osf1.cf \
pegasus.cf \
sco.cf \
sequent.cf \
sgi.cf \
sony.cf \
sun.cf \
svr3.cf \
svr4.cf \
ultrix.cf \
usl.cf \
x386.cf \
xfree86.cf
INSTFILES = $(RULEFILES) $(TMPLFILES) $(DEFFILES) $(CFFILES) $(LOCALFILES)
all::
InstallMultipleDestFlags(install,$(INSTFILES),$(CONFIGDIR),$(INSTDATFLAGS))

View file

@ -1,407 +0,0 @@
/*
* Library imakefile info - this contains any special redefinitions, etc.
* that Imakefiles in the various library subtrees will need.
*
* Before including this, you must set the following boolean variables:
* DoNormalLib, DoSharedLib, DoDebugLib, DoProfileLib
*
* To get automatic generation of standard rules, also set the variables:
* LibName, SoRev, HasSharedData, and optionally HugeLibrary and IncSubdir.
*
* To suppress installation of the library define LibInstall NO.
* To suppress creating (and installing) the library define LibCreate NO.
* To suppress installing headers define LibHeaders NO.
* Define LargePICTable YES if large (32-bit) PIC tables are needed.
*/
XCOMM $TOG: Library.tmpl /main/44 1997/04/28 11:47:53 kaleb $
#ifndef LibraryCplusplusOptions
# if DoSharedLib && defined(SharedLibraryCplusplusOptions)
# define LibraryCplusplusOptions SharedLibraryCplusplusOptions
# else
# define LibraryCplusplusOptions DefaultCplusplusOptions
# endif
#endif
#ifndef LibraryDefines
# define LibraryDefines StandardDefines
#endif
#ifndef LibraryCDebugFlags
# define LibraryCDebugFlags DefaultCDebugFlags
#endif
#ifndef LibraryCplusplusDebugFlags
# define LibraryCplusplusDebugFlags DefaultCplusplusDebugFlags
#endif
#ifndef SeparateSharedCompile
# define SeparateSharedCompile YES
#endif
#ifndef CplusplusSource
# ifndef LibraryCcCmd
# if DoSharedLib && defined(SharedLibraryCcCmd)
# define LibraryCcCmd SharedLibraryCcCmd
# else
# define LibraryCcCmd CcCmd
# endif
# endif
# ifndef LibraryCCOptions
# if DoSharedLib && defined(SharedLibraryCCOptions)
# define LibraryCCOptions SharedLibraryCCOptions
# else
# define LibraryCCOptions DefaultCCOptions
# endif
# endif
CC = LibraryCcCmd
CCOPTIONS = LibraryCCOptions
STD_DEFINES = LibraryDefines $(PROJECT_DEFINES)
CDEBUGFLAGS = LibraryCDebugFlags
# if defined(LargePICTable) && LargePICTable && defined(LargePositionIndependentCFlags)
PICFLAGS = LargePositionIndependentCFlags
# endif
#else
# ifndef LibraryCplusplusCmd
# if DoSharedLib && defined(SharedLibraryCplusplusCmd)
# define LibraryCplusplusCmd SharedLibraryCplusplusCmd
# else
# define LibraryCplusplusCmd CplusplusCmd
# endif
# endif
# ifndef LibraryCplusplusOptions
# if DoSharedLib && defined(SharedLibraryCplusplusOptions)
# define LibraryCplusplusOptions SharedLibraryCplusplusOptions
# else
# define LibraryCplusplusOptions DefaultCplusplusOptions
# endif
# endif
CXX = LibraryCplusplusCmd
CXXOPTIONS = LibraryCplusplusOptions
STD_DEFINES = LibraryDefines $(PROJECT_DEFINES)
CXXDEBUGFLAGS = LibraryCplusplusDebugFlags
# if defined(LargePICTable) && LargePICTable
# ifdef LargePositionIndependentCplusplusFlags
CXXPICFLAGS = LargePositionIndependentCplusplusFlags
# elif defined(LargePositionIndependentCFlags)
CXXPICFLAGS = LargePositionIndependentCFlags
# endif
# endif
#endif
LIB_MT_DEFINES = LibraryMTDefines
#if defined(IHaveSubdirs) && HasSymLinks
#define _LibMkdir LibMkdirLinkSubdirs
#else
#define _LibMkdir LibMkdir
#endif
#if DoDebugLib
# define _DebuggedLibMkdir() _LibMkdir(debugger)
# define _DebuggedObjCompile(options) DebuggedLibObjCompile(options)
# define _DebuggedObjCplusplusCompile(options) DebuggedLibObjCplusplusCompile(options)
# define _DebuggedCleanDir() LibCleanDir(debugger)
#else
# define _DebuggedLibMkdir() $(_NULLCMD_)
# define _DebuggedObjCompile(options) $(_NULLCMD_)
# define _DebuggedObjCplusplusCompile(options) $(_NULLCMD_)
# define _DebuggedCleanDir() $(_NULLCMD_)
#endif
#if DoProfileLib
# define _ProfiledLibMkdir() _LibMkdir(profiled)
# define _ProfiledObjCompile(options) ProfiledLibObjCompile(options)
# define _ProfiledObjCplusplusCompile(options) ProfiledLibObjCplusplusCompile(options)
# define _ProfiledCleanDir() LibCleanDir(profiled)
#else
# define _ProfiledLibMkdir() $(_NULLCMD_)
# define _ProfiledObjCompile(options) $(_NULLCMD_)
# define _ProfiledObjCplusplusCompile(options) $(_NULLCMD_)
# define _ProfiledCleanDir() $(_NULLCMD_)
#endif
#if !DoNormalLib
# define _NormalLibMkdir() $(_NULLCMD_)
# define _NormalObjCompile(options) $(_NULLCMD_)
# define _NormalObjCplusplusCompile(options) $(_NULLCMD_)
# define _NormalCleanDir() $(_NULLCMD_)
#else
# if DoSharedLib && SeparateSharedCompile
# define _NormalLibMkdir() _LibMkdir(unshared)
# define _NormalObjCompile(options) UnsharedLibObjCompile(options)
# define _NormalObjCplusplusCompile(options) UnsharedLibObjCplusplusCompile(options)
# define _NormalCleanDir() LibCleanDir(unshared)
# else
# define _NormalLibMkdir() $(_NULLCMD_)
# define _NormalObjCompile(options) NormalLibObjCompile(options)
# define _NormalObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
# define _NormalCleanDir() $(_NULLCMD_)
# endif
#endif
#if !DoSharedLib || (DoNormalLib && !SeparateSharedCompile)
# define _SharedObjCompile(options) $(_NULLCMD_)
# define _SharedObjCplusplusCompile(options) $(_NULLCMD_)
#else
# if SeparateSharedCompile
# define _SharedObjCompile(options) NormalSharedLibObjCompile(options)
# define _SharedObjCplusplusCompile(options) NormalSharedLibObjCplusplusCompile(options)
#else
# define _SharedObjCompile(options) NormalLibObjCompile(options)
# define _SharedObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
#endif
#endif
#ifndef CplusplusSource
# define SRCsuf c
#else
# define SRCsuf CCsuf
# ifdef SunArchitecture
.SUFFIXES: .CCsuf
# endif
#endif
#define _CompileObj(target, options) @@\
target @@\
_DebuggedObjCompile(options) @@\
_ProfiledObjCompile(options) @@\
_NormalObjCompile(options) @@\
_SharedObjCompile(options)
#ifdef CplusplusSource
# define _CompileObjCplusplus(target, options) @@\
target @@\
_DebuggedObjCplusplusCompile(options) @@\
_ProfiledObjCplusplusCompile(options) @@\
_NormalObjCplusplusCompile(options) @@\
_SharedObjCplusplusCompile(options)
#else
# define _CompileObjCplusplus(target, options)
#endif
#ifndef LibraryObjectRule
# define LibraryObjectRule() @@\
all:: @@\
_DebuggedLibMkdir() @@\
_ProfiledLibMkdir() @@\
_NormalLibMkdir() @@\
@@\
includes:: @@\
_DebuggedLibMkdir() @@\
_ProfiledLibMkdir() @@\
_NormalLibMkdir() @@\
@@\
_CompileObj(.c.Osuf:,$(_NOOP_)) @@\
_CompileObjCplusplus(.SRCsuf.Osuf:,$(_NOOP_)) @@\
@@\
clean:: @@\
_DebuggedCleanDir() @@\
_ProfiledCleanDir() @@\
_NormalCleanDir() @@\
#endif /* LibraryObjectRule */
#ifndef SpecialLibObjectRule
# define SpecialLibObjectRule(objs,depends,options) @@\
_CompileObj(objs: depends,options)
#endif /* SpecialLibObjectRule */
#ifndef SpecialCLibObjectRule
# define SpecialCLibObjectRule(basename,depends,options) @@\
_CompileObj(basename.Osuf: basename.SRCsuf depends,options) @@\
@@\
basename.i: basename.SRCsuf depends @@\
CPPOnlyCompile(basename.SRCsuf,options) @@\
@@\
CenterLoadTarget(debug_src,basename.SRCsuf,NullParameter,$(ALLDEFINES) options)
#endif /* SpecialCLibObjectRule */
#ifndef SpecialCplusplusLibObjectRule
# define SpecialCplusplusLibObjectRule(basename,depends,options) @@\
_CompileObjCplusplus(basename.Osuf: basename.SRCsuf depends,options) @@\
@@\
CenterLoadTarget(debug_src,basename.SRCsuf,NullParameter,$(ALLDEFINES) options)
#endif /* SpecialCplusplusLibObjectRule */
/*
* ToolkitMakeStrings generates a string-table, i.e., a C source
* file and the matching header(s), e.g., Xt's StringDefs.c, StringDefs.h,
* and Shell.h files; or Motif's XmStrDefs.c and XmStrDefs.h files.
*
* The 'files' argument is the list of files that will be produced by
* this rule, e.g., for Xt they would be "Shell.h StringDefs.c StringDefs.h"
* and for Motif they would be "XmStrDefs.c XmStrDefs.h".
*
* The 'source' argument is the string-list file to be parsed, e.g., in
* Xt that would be "util/string.list". For Motif 2.0 it would be
* "../../tools/makestr/xmstring.list", and for Motif-CDE1 it would be
* "util/xmstring.list".
*
* The 'options' argument is passed by the library's Imakefile, see the
* Xt Imakefile for an example. Typically this would be nothing, -intelabi,
* or -sparcabi; there are other choices, but these are typical.
*
* The 'depends' argument names additional files the target files
* depend on. It should name the #ctmpl and #htmpl files from the
* 'source' file.
*
* The 'dest' argument is the C source output file. For Xt this should
* be "StringDefs.c", and for all versions of Motif it would be "XmStrDefs.c"
*
* Headers are generated and named according to data in the 'source'
* file.
*/
/*
* The NoCmpScript
* prevents clearmake from trying to remake makestrs if it exists.
* Including both $(MAKESTRS) and $(MAKESTRS).o as primary targets
* prevents clearmake from trying to recompile makestrs from here.
* We have includes, not files, depend on makestrs to try to get
* clearmake to wink in the files. Bug in clearmake 2.0.2?
*/
#ifndef MakeStringsDependency
# define MakeStringsDependency @@\
MAKESTRS = $(CONFIGSRC)/util/makestrs @@\
NoCmpScript(ProgramTargetName($(MAKESTRS)) $(MAKESTRS).Osuf) @@\
@@\
ProgramTargetName($(MAKESTRS)) $(MAKESTRS).Osuf: @@\
cd $(CONFIGSRC)/util && $(MAKE) ProgramTargetName(makestrs) @@\
@@\
includes:: ProgramTargetName($(MAKESTRS))
#endif
#ifndef ToolkitMakeStrings
# if defined(LibTookitMakeStringsDependency) && LibTookitMakeStringsDependency
# define ToolkitMakeStrings(files,source,options,depends,dest) @@\
files: source depends @@\
RemoveFiles(files) @@\
RunProgram(MAKESTRS,options < source > dest) @@\
@@\
AllTarget(files) @@\
@@\
includes:: files @@\
@@\
depend:: files @@\
@@\
clean:: @@\
RemoveFiles(files)
# else
# define ToolkitMakeStrings(files,source,options,depends,dest) @@\
MakeStringsDependency @@\
@@\
files: source depends @@\
RemoveFiles(files) @@\
RunProgram(MAKESTRS,options < source > dest) @@\
@@\
AllTarget(files) @@\
@@\
includes:: files @@\
@@\
depend:: files @@\
@@\
clean:: @@\
RemoveFiles(files)
# endif
#endif /* ToolkitMakeStrings */
#ifdef LibName
LIBNAME = LibName
# if defined(LibTookitMakeStringsDependency) && LibTookitMakeStringsDependency
/*
* Do ToolkitMakeStrings() before BuildIncludes so makestrs is still
* built first, even if the generated header will be installed.
*/
MakeStringsDependency
# endif
LibraryObjectRule()
# undef _LinkBuildLibrary
# if !defined(LibInstall) || LibInstall
# define _LinkBuildLibrary(lib) LinkBuildLibrary(lib)
# else
# define _LinkBuildLibrary(lib) $(_NULLCMD_)
# endif
# if !defined(LibCreate) || LibCreate
# if DoSharedLib
# if HugeLibrary && defined(SharedLibraryTarget3)
SharedLibraryTarget3($(LIBNAME),$(SoRev),$(OBJS1),$(OBJS2),$(OBJS3),.,.)
# else
SharedLibraryTarget($(LIBNAME),$(SoRev),$(OBJS),.,.)
# endif
# if !defined(LibInstall) || LibInstall
InstallSharedLibrary($(LIBNAME),$(SoRev),$(SHLIBDIR))
# endif
# if HasSharedData
SharedLibraryDataTarget($(LIBNAME),$(SoRev),$(UNSHAREDOBJS))
# if !defined(LibInstall) || LibInstall
InstallSharedLibraryData($(LIBNAME),$(SoRev),$(SHLIBDIR))
# endif
# endif
# endif
# if DoNormalLib
# if HugeLibrary
# if DoSharedLib && SeparateSharedCompile
UnsharedLibraryTarget3($(LIBNAME),$(OBJS1),$(OBJS2),$(OBJS3),unshared,..)
# else
NormalLibraryTarget3($(LIBNAME),$(OBJS1),$(OBJS2),$(OBJS3))
# endif
# else
# if DoSharedLib && SeparateSharedCompile
UnsharedLibraryTarget($(LIBNAME),$(OBJS),unshared,..)
# else
NormalLibraryTarget($(LIBNAME),$(OBJS))
# endif
# endif
# if !defined(LibInstall) || LibInstall
InstallLibrary($(LIBNAME),$(USRLIBDIR))
# endif
# endif
# if DoProfileLib
ProfiledLibraryTarget($(LIBNAME),$(OBJS))
# if !defined(LibInstall) || LibInstall
InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
# endif
# endif
# if DoDebugLib
DebuggedLibraryTarget($(LIBNAME),$(OBJS))
# if !defined(LibInstall) || LibInstall
InstallLibrary($(LIBNAME)_d,$(USRLIBDIR))
# endif
# endif
LintLibraryTarget($(LIBNAME),$(SRCS))
# if !defined(LibInstall) || LibInstall
InstallLintLibrary($(LIBNAME),$(LINTLIBDIR))
# endif
# else /* not LibCreate */
# if HugeLibrary
AllTarget($(OBJS1))
AllTarget($(OBJS2))
AllTarget($(OBJS3))
# else
AllTarget($(OBJS))
# endif
# endif /* LibCreate */
# ifdef IncSubdir
# ifdef IncSubSubdir
BuildIncludes($(HEADERS),IncSubdir/IncSubSubdir,../..)
InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir/IncSubSubdir,$(INSTINCFLAGS))
# else
BuildIncludes($(HEADERS),IncSubdir,..)
InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir,$(INSTINCFLAGS))
# endif
# else
# ifndef CplusplusSource
# if !defined(LibHeaders) || LibHeaders
BuildIncludesTop($(HEADERS))
InstallMultipleFlags($(HEADERS),$(INCDIR),$(INSTINCFLAGS))
# endif
# endif
# endif
NormalLintTarget($(SRCS))
#endif /* defined(LibName) */

View file

@ -1,72 +0,0 @@
/*
* Set version numbers before making makefiles.
*
* X11r5 only builds using the berkeley libraries and compiler. Make
* sure your path includes /bsd43/bin before /bin/ or /usr/bin.
*/
#ifndef OSName
#define OSName RISCOS
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 50
#endif
XCOMM platform: $XConsortium: Mips.cf /main/17 1996/09/28 16:06:25 rws $
XCOMM operating system: OSName
/***************************************************************************
* Platform-specific parameters *
***************************************************************************/
#define HasVoidSignalReturn NO
#define SetTtyGroup YES
#define UnalignedReferencesAllowed NO /* if arbitrary deref okay */
#define HasBsearch NO
#define MipsArchitecture
#define MakeEnv -e
#define DefaultCCOptions -signed -systype bsd43 -Olimit 2000 -Wf,-XNd8400,-XNp12000
#define StandardDefines -DMips -DBSD43
#define PostIncDir /usr/include/bsd43
#define ExtraLibraries -lmld
#define ArCmd ar clr
#define BootstrapCFlags -DMips
#define InstallCmd /etc/mipsinstall -f
#define MakeCmd make MakeEnv
#define DoRanlibCmd NO
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
/***************************************************************************
* *
* DEFINE PARAMETERS FOR BUILDING *
* *
***************************************************************************/
#define XmipsServer YES
/***************************************************************************
* *
* OVERRIDE ANY CONFIGURATION PARAMETERS FROM Imake.tmpl *
* *
***************************************************************************/
#define SpecialMalloc NO
#define PrimaryScreenResolution 110
#define ConstructMFLAGS NO /* build MFLAGS from MAKEFLAGS */
#define DefaultUserPath /usr/net:/bin:/usr/bin:$(BINDIR):/usr/ucb
#define DefaultSystemPath /usr/net:/bin:/usr/bin:/etc:$(BINDIR):/usr/ucb
/* mips manuals are really complicated. This certainly won't work. */
#define ManDirectoryRoot /man/cat
#define ManSourcePath $(MANPATH)/man
#define InstKmemFlags -g sys -m 2711

View file

@ -1,725 +0,0 @@
/*
* @OSF_COPYRIGHT@
* COPYRIGHT NOTICE
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group, Inc.
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
* the full copyright text.
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
XCOMM $TOG: Motif.rules /main/8 1999/03/22 15:12:48 mgreess $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define MotifIsTopLevelProject YES
#else
# define MotifIsTopLevelProject NO
#endif
/* Include the X11 project rules file. */
#include <X11.rules>
/* Use the in-tree Motif by default. */
#ifndef UseInstalledMotif
# define UseInstalledMotif NO
#endif
#ifdef UseInstalled
# undef UseInstalledMotif
# define UseInstalledMotif YES
#endif
#ifndef ImportMotif
# ifdef UseImports
# define ImportMotif YES
# else
# define ImportMotif NO
# endif
#endif
#if UseInstalledMotif
# undef ImportMotif
# define ImportMotif NO
#endif
#ifndef MSimpleProgramTarget
#define MSimpleProgramTarget(program) @@\
AllTarget(program) @@\
@@\
program: program.o $(DEPS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ program.o $(LDOPTIONS) $(DEPS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
@@\
clean:: @@\
$(RM) program
#endif
#ifndef MSimpleUilTarget
#define MSimpleUilTarget(program) @@\
MSimpleProgramTarget(program) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
@@\
MSimpleUidTarget(program)
#endif
/*
* UILFLAGS contains site/vendor-specific flags
* defined by UilFlags, which supposed to be set in *.cf or
* site.def files.
* LOCAL_UILFLAGS(_n) contains client-specific uil flags set in Imakefile
*/
#ifndef MSimpleUidTarget
#define MSimpleUidTarget(program) @@\
AllTarget(program.uid) @@\
@@\
program.uid: program.uil $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MSimpleUidSubdirTarget
#define MSimpleUidSubdirTarget(program,subdir) @@\
AllTarget(subdir/program.uid) @@\
@@\
subdir/program.uid: subdir/program.uil $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS) -o $@ subdir/program.uil $(UIL_INCLUDES) @@\
@@\
InstallNamedTarget(install,subdir/program.uid,$(INSTDATFLAGS),$(UIDDIR)/subdir,program.uid) @@\
@@\
clean:: @@\
$(RM) subdir/program.uid
#endif
#ifndef MSimpleUidLocaleTarget
#define MSimpleUidLocaleTarget(program,locale) @@\
AllTarget(program.uid) @@\
@@\
program.uid: program.uil $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(LIBDIR)/locale/uid) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_1
#define MComplexUidTarget_1(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS1) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_1) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_2
#define MComplexUidTarget_2(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS2) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_2) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_3
#define MComplexUidTarget_3(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS3) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_3) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_4
#define MComplexUidTarget_4(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS4) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_4) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_5
#define MComplexUidTarget_5(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS5) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_5) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_6
#define MComplexUidTarget_6(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS6) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_6) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_7
#define MComplexUidTarget_7(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS7) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_7) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_8
#define MComplexUidTarget_8(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS8) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_8) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_9
#define MComplexUidTarget_9(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS9) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_9) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexUidTarget_10
#define MComplexUidTarget_10(program) @@\
@@\
AllTarget(program.uid) @@\
@@\
program.uid: $(UILS10) $(DEPUIL) @@\
RemoveTargetProgram($@) @@\
$(CLIENTENVSETUP) $(UIL) $(UILFLAGS) $(LOCAL_UILFLAGS_10) -o $@ program.uil $(UIL_INCLUDES) @@\
@@\
InstallNonExecFile(program.uid,$(UIDDIR)) @@\
@@\
clean:: @@\
$(RM) program.uid
#endif
#ifndef MComplexProgramTarget
#define MComplexProgramTarget(program,locallib,syslib) @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS),$(OBJS),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
@@\
install.man:: @@\
@echo To install documentation for $(PROGRAM), consult the Release Notes @@\
@echo and/or README file in the current directory. @@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAM)
#endif
#ifndef MComplexProgramTarget_1
#define MComplexProgramTarget_1(program,locallib,syslib) @@\
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) @@\
SRCS = $(SRCS1) $(SRCS2) $(SRCS3) @@\
@@\
AllTarget($(PROGRAMS)) @@\
@@\
program: $(OBJS1) $(DEPLIBS1) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS1) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS1),$(OBJS1),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
@@\
install.man:: @@\
@echo To install documentation for $(PROGRAMS), consult the Release Notes @@\
@echo and/or README file in the current directory. @@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAMS)
#endif
#ifndef MComplexProgramTarget_2
#define MComplexProgramTarget_2(program,locallib,syslib) @@\
program: $(OBJS2) $(DEPLIBS2) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS2) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS2),$(OBJS2),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_3
#define MComplexProgramTarget_3(program,locallib,syslib) @@\
PROGRAM_3 = program @@\
program: $(OBJS3) $(DEPLIBS3) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS3) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS3),$(OBJS3),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_4
#define MComplexProgramTarget_4(program,locallib,syslib) @@\
PROGRAM_4 = program @@\
program: $(OBJS4) $(DEPLIBS4) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS4) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS4),$(OBJS4),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_5
#define MComplexProgramTarget_5(program,locallib,syslib) @@\
PROGRAM_5 = program @@\
program: $(OBJS5) $(DEPLIBS5) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS5) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS5),$(OBJS5),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_6
#define MComplexProgramTarget_6(program,locallib,syslib) @@\
PROGRAM_6 = program @@\
program: $(OBJS6) $(DEPLIBS6) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS6) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS6),$(OBJS6),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_7
#define MComplexProgramTarget_7(program,locallib,syslib) @@\
PROGRAM_7 = program @@\
program: $(OBJS7) $(DEPLIBS7) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS7) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS7),$(OBJS7),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_8
#define MComplexProgramTarget_8(program,locallib,syslib) @@\
PROGRAM_8 = program @@\
program: $(OBJS8) $(DEPLIBS8) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS8) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS8),$(OBJS8),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifndef MComplexProgramTarget_9
#define MComplexProgramTarget_9(program,locallib,syslib) @@\
PROGRAM_9 = program @@\
program: $(OBJS9) $(DEPLIBS9) @@\
RemoveTargetProgram($@) @@\
$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS9) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS9),$(OBJS9),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR))
#endif
#ifdef AUTOMATION
#ifndef TestPPTarget
#define TestPPTarget(root) @@\
all:: root.Scr root.Dat @@\
@@\
root.Dat: root.dat @@\
$(RM) root.Dat @@\
$(COMMONPP) $(DEFINES) root.dat @@\
root.Scr: root.scr @@\
$(RM) root.Scr @@\
$(COMMONPP) $(DEFINES) root.scr
#endif
#else
#ifndef TestPPTarget
#define TestPPTarget(root) @@\
all:: root.Dat @@\
@@\
root.Dat: root.dat @@\
$(RM) root.Dat @@\
$(COMMONPP) $(DEFINES) root.dat
#endif
#endif
#ifdef AUTOMATION
#ifndef TestPPTargetScr
#define TestPPTargetScr(root) @@\
all:: root.Scr @@\
@@\
root.Scr: root.scr @@\
$(RM) root.Scr @@\
$(COMMONPP) $(DEFINES) root.scr
#endif
#else
#ifndef TestPPTargetScr
#define TestPPTargetScr(root) /**/
#endif
#endif
#ifdef AUTOMATION
#ifndef TestPPTargetDat
#define TestPPTargetDat(root) @@\
all:: root.Dat @@\
@@\
root.Dat: root.dat @@\
$(RM) root.Dat @@\
$(COMMONPP) $(DEFINES) root.dat
#endif
#endif
#ifndef AUTOMATION
#ifndef TestPPTargetDat
#define TestPPTargetDat(root) @@\
all:: root.Dat @@\
@@\
root.Dat: root.dat @@\
$(RM) root.Dat @@\
$(COMMONPP) $(DEFINES) root.dat
#endif
#endif
#ifndef NO_AUTOMATION
#ifndef RunTarget
#define RunTarget() @@\
all:: RUN @@\
@@\
RUN: always @@\
$(GENRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\
@@\
always: @@\
$(RM) RUN
#endif
#else
#ifdef UseVista
#ifndef RunTarget
#define RunTarget() @@\
all:: RUN @@\
@@\
RUN: always @@\
$(MANRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\
@@\
always: @@\
$(RM) RUN
#endif
#else
#ifdef UsePurify
#ifndef RunTarget
#define RunTarget() @@\
all:: RUN @@\
@@\
RUN: always @@\
$(MANRUN) $(CURRENT_DIR) $(MTOP) $(DEFINES) @@\
@@\
always: @@\
$(RM) RUN
#endif
#else
#ifndef RunTarget
#define RunTarget() @@\
all:: RUN @@\
@@\
RUN: always @@\
@@\
always: @@\
#endif
#endif
#endif
#endif
#ifdef UseVista
#ifndef VistaMapRule
#define VistaMapRule(targetmap,depend) @@\
all:: targetmap @@\
@@\
targetmap: depend @@\
$(RM) $(MTOP)/tests/Vista/targetmap @@\
CATCMD *.M > $(MTOP)/tests/Vista/targetmap
#endif
#ifndef ComplexVistaMapRule
#define ComplexVistaMapRule(program,filelist) @@\
all:: program.M @@\
@@\
program.M: filelist @@\
$(RM) program.vista.tmpfile @@\
touch program.vista.tmpfile @@\
@case '${MFLAGS}' in *[ik]*) set +e;; esac; @@\
@for i in filelist; do \ @@\
cat `basename $$i .o`.M >> program.vista.tmpfile ; done @@\
$(RM) program.M @@\
$(MV) program.vista.tmpfile program.M @@\
@@\
clean:: @@\
$(RM) *.M
#endif
#endif
/* Rule for making shadow trees. */
#ifndef MakeShadowTree
#define MakeShadowTree(name,dirs) @@\
all:: @@\
@case '${MFLAGS}' in *[ik]*) set +e;; esac; @@\
MakeDir(name) @@\
@for i in dirs; \ @@\
do if [ -d $$i/name ]; then \ @@\
exit 0; else set -x; mkdir $$i/name; fi \ @@\
done @@\
@for i in dirs; \ @@\
do if [ -r name/$$i ]; then \ @@\
set +x; \ @@\
else (set -x; $(LN) ../$$i/name name/$$i); fi \@@\
done
#endif
#ifdef BuildPlusPlus
/* Rules for C++ */
/*
* "CPlusPlusObjectCompile" - compile fragment for a normal C++ object file
*/
#ifndef CPlusPlusObjectCompile
#define CPlusPlusObjectCompile(options) $(RM) $@ @@\
$(CXX) -c $(CXXFLAGS) options $*.cxx
#endif
#ifndef CPlusPlusObjectRule
#define CPlusPlusObjectRule() @@\
.SUFFIXES: .cxx @@\
@@\
.cxx.o: @@\
CPlusPlusObjectCompile($(_NOOP_))
#endif /* CPlusPlusObjectRule */
#ifndef MCPlusPlusSimpleProgramTarget
#define MCPlusPlusSimpleProgramTarget(program) @@\
AllTarget(program) @@\
@@\
program: program.o $(DEPS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CXXLINK) -o $@ program.o $(CXXLDOPTIONS) $(DEPS) $(LOCAL_LIBRARIES) $(CXXLIBS) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
@@\
clean:: @@\
$(RM) program
#endif
#ifndef MCPlusPlusComplexProgramTarget
#define MCPlusPlusComplexProgramTarget(program,locallib,syslib) @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
$(CXXLINK) -o $@ $(CXXLDOPTIONS) $(OBJS) locallib $(CXXLIBS) $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
@@\
CenterProgramTarget(program,$(SRCS),$(OBJS),locallib,syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
@@\
install.man:: @@\
@echo To install documentation for $(PROGRAM), consult the Release Notes @@\
@echo and/or README file in the current directory. @@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAM)
#endif
#endif /* BuildPlusPlus */
/* Rules for message catalog building */
#ifndef Real_MessageCatalogRule
#define Real_MessageCatalogRule(prefix) @@\
prefix.cat Concat(prefix,MsgCatI.h): @@\
$(RM) Concat(prefix,MsgCatI.h) prefix.cat $(MLOCSRC)/C/msg/prefix.msg @@\
$(MKCATTOOL) Concat(prefix,MsgCatI.h) prefix.msg > $(MLOCSRC)/C/msg/prefix.msg @@\
$(GENCAT) prefix.cat $(MLOCSRC)/C/msg/prefix.msg @@\
@@\
includes:: prefix.cat Concat(prefix,MsgCatI.h) @@\
@@\
depend:: prefix.cat Concat(prefix,MsgCatI.h) @@\
@@\
all:: prefix.cat @@\
@@\
clean:: @@\
$(RM) prefix.cat Concat(prefix,MsgCatI.h)
#endif
#define Stub_MessageCatalogRule(prefix) /**/
/* The X BuildLibDir is now an import, not an export. */
#if UseImports || ImportX11
# ifndef XBuildLibDir
# define XBuildLibDir $(TOP)/imports/x11/lib
# endif
#endif
/* Search the Motif ProjectRoot too if it is different. */
#ifdef MotifProjectRoot
# define MUsrLibDirPath Concat(XUsrLibDirPath,:$(MPROJECTROOT)/lib)
#else
# define MUsrLibDirPath XUsrLibDirPath
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
#endif
#define UsrLibDirPath MUsrLibDirPath
#if ImportMotif
# define MLdPreLibs -L$(MLIBSRC)
#elif defined(UseInstalledMotif) && defined(MotifProjectRoot)
# define MLdPreLibs -L$(MPROJECTROOT)/lib
#else
# define MLdPreLibs /**/
#endif
#ifdef LdPreLibs
# undef LdPreLibs
#endif
#define LdPreLibs LdPreLib MLdPreLibs XLdPreLibs
#ifdef LdPostLibs
# undef LdPostLibs
#endif
#ifdef MotifProjectRoot
# define MLdPostLibs -L$(MPROJECTROOT)/lib
#else
# define MLdPostLibs /**/
#endif
#define LdPostLibs LdPostLib MLdPostLibs XLdPostLibs
#ifdef TopIncludes
# undef TopIncludes
#endif
#define TopIncludes TopInclude $(TOP_MOTIF_INCLUDES) $(TOP_X_INCLUDES)
#if UseInstalledMotif && defined(MotifProjectRoot)
# define MotifBuildLibPath $(MPROJECTROOT)/lib
#elif UseInstalledMotif
# define MotifBuildLibPath $(USRLIBDIR)
#elif ImportMotif
# define MotifBuildLibPath $(MLIBSRC)
#else
# define MotifBuildLibPath $(TOP)/exports/lib
#endif
#ifdef BuildLibPath
# undef BuildLibPath
#endif
#ifdef SystemBuildLibPath
# define BuildLibPath $(MOTIFENVLIBDIR):$(XENVLIBDIR):$(SYSTEMENVLIBDIR)
#else
# define BuildLibPath $(MOTIFENVLIBDIR):$(XENVLIBDIR)
#endif
#ifndef MotifProjectDefines
# define MotifProjectDefines MotifDefines MessageCatalogDefines
#endif
#ifdef ProjectDefines
# undef ProjectDefines
#endif
#define ProjectDefines X11ProjectDefines MotifProjectDefines
#ifndef MotifCplusplusProjectDefines
# define MotifCplusplusProjectDefines MotifProjectDefines
#endif
#ifdef CplusplusProjectDefines
# undef CplusplusProjectDefines
#endif
#define CplusplusProjectDefines \
X11CplusplusProjectDefines MotifCplusplusProjectDefines

View file

@ -1,583 +0,0 @@
/*
* @OSF_COPYRIGHT@
* COPYRIGHT NOTICE
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group, Inc.
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
* the full copyright text.
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
XCOMM $TOG: Motif.tmpl /main/6 1999/05/19 17:00:05 mgreess $
/* Include the X11 project template file. */
#include <X11.tmpl>
#ifdef AUTOMATION
# ifndef Automation
# define Automation YES
# endif
#else
# define NO_AUTOMATION
#endif
#ifdef USE_VISTACC
# ifndef UseVista
# define UseVista
# endif
# ifndef CATCMD
# define CATCMD cat
# endif
#endif
#ifdef USE_PURIFY
# ifndef UsePurify
# define UsePurify
# endif
#endif
#ifdef DEBUG_GEOMETRY
# ifndef DebugGeometry
# define DebugGeometry YES
# endif
#endif
#ifndef _MUse
# if UseInstalledMotif
# define _MUse(a,b) a
# else
# define _MUse(a,b) b
# endif
#endif
#ifndef _MUseCat
# if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
# if UseInstalledMotif
# define _MUseCat(a,b,c) a##c
# else
# define _MUseCat(a,b,c) b##c
# endif
# else
# if UseInstalledMotif
# define _MUseCat(a,b,c) a/**/c
# else
# define _MUseCat(a,b,c) b/**/c
# endif
# endif
#endif
#ifndef MTop
# if ImportMotif
# define MTop $(TOP)/imports/motif
# else
# define MTop $(TOP)
# endif
#endif
#ifndef BuildDocDir
# define BuildDocDir $(BUILDINCROOT)/doc
#endif
#ifndef BuildLocDir
# define BuildLocDir $(BUILDINCROOT)/localized
#endif
#ifndef MotifDefines
# define MotifDefines /**/
#endif
#ifndef XmDefines
# define XmDefines /**/
#endif
/* To compile without SHAPE extension, set this to -DNO_SHAPE */
#ifndef MwmDefines
# define MwmDefines /**/
#endif
#ifndef UilFlags
# define UilFlags /**/
#endif
#ifndef TestDefines
# define TestDefines /**/
#endif
#ifndef AutoDefines
# if Automation
# define AutoDefines -DAUTOMATION
# else
# define AutoDefines /**/
# endif
#endif
#ifndef AutoIncludes
# if Automation
# define AutoIncludes -I$(AUTOSCRIPTSRC)
# else
# define AutoIncludes /**/
# endif
#endif
#ifdef UsePurify
# define PurifyFilesToClean *.pure_linkinfo *.pure_hardlink
#else
# define PurifyFilesToClean
#endif
#if Automation
# define TestExtraFilesToClean *.Dat *.Scr PurifyFilesToClean
#else
# define TestExtraFilesToClean *.Dat PurifyFilesToClean
#endif
#ifndef UsrIncDir
# define UsrIncDir IncRoot
#endif
/* Place to install .uid files */
#ifndef UidDir
# define UidDir $(LIBDIR)/uid
#endif
#ifndef XmExtraLibraries
# define XmExtraLibraries /**/
#endif
#ifndef YaccFlags
# define YaccFlags /**/
#endif
#define MotifSharedRev 2.1
#ifndef BuildMotifConfig
# define BuildMotifConfig YES
#endif
#ifndef BuildMotifDemos
# define BuildMotifDemos YES
#endif
#ifndef BuildWMLTable
# define BuildWMLTable YES
#endif
#ifndef SharedLibXm
# define SharedLibXm HasSharedLibraries
#endif
#ifndef NormalLibXm
# define NormalLibXm (!SharedLibXm | ForceNormalLib)
#endif
#ifndef DebugLibXm
# define DebugLibXm NO
#endif
#ifndef ProfileLibXm
# define ProfileLibXm NO
#endif
#ifndef SharedXmRev
# define SharedXmRev MotifSharedRev
#endif
#ifndef SharedLibMrm
# define SharedLibMrm HasSharedLibraries
#endif
#ifndef NormalLibMrm
# define NormalLibMrm (!SharedLibMrm | ForceNormalLib)
#endif
#ifndef DebugLibMrm
# define DebugLibMrm NO
#endif
#ifndef ProfileLibMrm
# define ProfileLibMrm NO
#endif
#ifndef SharedMrmRev
# define SharedMrmRev MotifSharedRev
#endif
#ifndef SharedLibUil
# define SharedLibUil HasSharedLibraries
#endif
#ifndef NormalLibUil
# define NormalLibUil (!SharedLibUil | ForceNormalLib)
#endif
#ifndef DebugLibUil
# define DebugLibUil NO
#endif
#ifndef ProfileLibUil
# define ProfileLibUil NO
#endif
#ifndef SharedUilRev
# define SharedUilRev MotifSharedRev
#endif
#ifndef SharedLibACommon
# define SharedLibACommon HasSharedLibraries
#endif
#ifndef NormalLibACommon
# define NormalLibACommon (!SharedLibACommon | ForceNormalLib)
#endif
#ifndef DebugLibACommon
# define DebugLibACommon NO
#endif
#ifndef ProfileLibACommon
# define ProfileLibACommon NO
#endif
#ifndef SharedACommonRev
# define SharedACommonRev MotifSharedRev
#endif
#ifndef SharedLibScript
# define SharedLibScript HasSharedLibraries
#endif
#ifndef NormalLibScript
# define NormalLibScript (!SharedLibScript | ForceNormalLib)
#endif
#ifndef DebugLibScript
# define DebugLibScript NO
#endif
#ifndef ProfileLibScript
# define ProfileLibScript NO
#endif
#ifndef SharedScriptRev
# define SharedScriptRev MotifSharedRev
#endif
#ifndef SharedLibUtil
# define SharedLibUtil HasSharedLibraries
#endif
#ifndef NormalLibUtil
# define NormalLibUtil (!SharedLibUtil | ForceNormalLib)
#endif
#ifndef DebugLibUtil
# define DebugLibUtil NO
#endif
#ifndef ProfileLibUtil
# define ProfileLibUtil NO
#endif
#ifndef SharedUtilRev
# define SharedUtilRev MotifSharedRev
#endif
#ifndef SharedLibCreate
# define SharedLibCreate HasSharedLibraries
#endif
#ifndef NormalLibCreate
# define NormalLibCreate (!SharedLibCreate | ForceNormalLib)
#endif
#ifndef DebugLibCreate
# define DebugLibCreate NO
#endif
#ifndef ProfileLibCreate
# define ProfileLibCreate NO
#endif
#ifndef SharedCreateRev
# define SharedCreateRev MotifSharedRev
#endif
#ifndef SharedLibVisual
# define SharedLibVisual HasSharedLibraries
#endif
#ifndef NormalLibVisual
# define NormalLibVisual (!SharedLibVisual | ForceNormalLib)
#endif
#ifndef DebugLibVisual
# define DebugLibVisual NO
#endif
#ifndef ProfileLibVisual
# define ProfileLibVisual NO
#endif
#ifndef SharedVisualRev
# define SharedVisualRev MotifSharedRev
#endif
#ifndef SharedLibSynth
# define SharedLibSynth HasSharedLibraries
#endif
#ifndef NormalLibSynth
# define NormalLibSynth (!SharedLibSynth | ForceNormalLib)
#endif
#ifndef DebugLibSynth
# define DebugLibSynth NO
#endif
#ifndef ProfileLibSynth
# define ProfileLibSynth NO
#endif
#ifndef SharedSynthRev
# define SharedSynthRev MotifSharedRev
#endif
#ifndef SharedLibMCommon
# define SharedLibMCommon HasSharedLibraries
#endif
#ifndef NormalLibMCommon
# define NormalLibMCommon (!SharedLibMCommon | ForceNormalLib)
#endif
#ifndef DebugLibMCommon
# define DebugLibMCommon NO
#endif
#ifndef ProfileLibMCommon
# define ProfileLibMCommon NO
#endif
#ifndef SharedMCommonRev
# define SharedMCommonRev MotifSharedRev
#endif
#ifndef XmClientLibs
# define XmClientLibs $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef XmClientDepLibs
# define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef MrmClientLibs
# define MrmClientLibs $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef MrmClientDepLibs
# define MrmClientDepLibs $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef UilClientLibs
# define UilClientLibs $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef UilClientDepLibs
# define UilClientDepLibs $(DEPUILLIB) $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef TestClientLibs
# define TestClientLibs $(PURIFYLIBS) $(TESTCOMLIB) \
$(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
$(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
$(XMLIB) $(TESTGEOLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) \
$(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
#endif
#ifndef TestUilClientLibs
# define TestUilClientLibs $(PURIFYLIBS) $(TESTUILCOMLIB) $(TESTCOMLIB) \
$(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
$(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
$(UILLIB) $(MRESOURCELIB) $(XMLIB) $(TESTGEOLIB) \
$(XTOOLLIB) $(XPLIB) $(XLIB) $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
#endif
#ifndef TestClientDepLibs
# define TestClientDepLibs XmClientDepLibs
#endif
#ifndef TestUilClientDepLibs
# define TestUilClientDepLibs UilClientDepLibs
#endif
/* hardcoded default path. Contrary to the original duplicate of USRLIBDIR
in the Imakefiles. */
#ifndef VirtualBindingsPath
# define VirtualBindingsPath /usr/lib/Xm/bindings
#endif
MTOP = MTop
TOP_MOTIF_INCLUDES = -I$(MINCLUDESRC)
#if defined(UseInstalled) || (UseInstalledMotif && UseInstalledX11)
UIL_INCLUDES = -I$(USRINCDIR)/uil
#else
UIL_INCLUDES = -I$(UILSRC)
#endif
#ifdef BuildLibPathVar
MOTIFENVLIBDIR = MotifBuildLibPath
#endif
/* Message catalog usage */
#ifndef GencatCmd
# define GencatCmd gencat
#endif
#ifndef GencatFlags
# define GencatFlags /**/
#endif
#if defined(NoMessageCatalog)
# define BuildMessageCatalog NO
# define MessageCatalogDefines -DNO_MESSAGE_CATALOG
#else
# define BuildMessageCatalog YES
# define MessageCatalogDefines /**/
#endif
#ifndef MessageCatalogRule
# if BuildMessageCatalog
# define MessageCatalogRule(prefix) Real_MessageCatalogRule(prefix)
# else
# define MessageCatalogRule(prefix) Stub_MessageCatalogRule(prefix)
# endif
#endif
USRINCDIR = UsrIncDir
UIDDIR = UidDir
TESTSRC = $(MTOP)/tests
TESTLIB = $(TESTSRC)/lib
GENERALSRCLIB = $(TESTSRC)/General/lib
GENERALSRCBIN = $(TESTSRC)/General/bin
MANUALSRCLIB = $(TESTSRC)/Manual/lib
MANUALSRCBIN = $(TESTSRC)/Manual/bin
AUTOSRCLIB = $(TESTSRC)/Auto/lib
AUTOSRCBIN = $(TESTSRC)/Auto/bin
COMMONPP = $(GENERALSRCBIN)/Commonpp
GENRUN = $(GENERALSRCBIN)/Genrun
MANRUN = $(GENERALSRCBIN)/Manrun
#ifdef DebugLib
TESTMALLOCSRC = $(GENERALSRCLIB)/Malloc
#endif
#ifdef DebugGeometry
TESTGEOSRC = $(TESTLIB)/Geometry
#endif
#ifdef Automation
TESTCOMSRC = $(AUTOSRCLIB)/Common
AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
AUTOCREATESRC = $(AUTOSRCLIB)/Create
AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
AUTOUTILSRC = $(AUTOSRCLIB)/Util
AUTOEXTRALIBS = -ll -ly -lm
#else
TESTCOMSRC = $(MANUALSRCLIB)/Common
#endif
BUILDDOCDIR = BuildDocDir
BUILDLOCDIR = BuildLocDir
/* MTOOLKITSRC should be removed */
MTOOLKITSRC = $(TOOLKITSRC)
#if ImportMotif || UseInstalledMotif
MINCLUDESRC = $(MTOP)/include
MDOCSRC = $(MTOP)/doc
MLOCSRC = $(MTOP)/localized
#else
MINCLUDESRC = $(MTOP)/exports/include
MLOCSRC = $(MTOP)/exports/localized
#endif
MLIBSRC = $(MTOP)/lib
MCLIENTSRC = $(MTOP)/clients
MDEMOSRC = $(MTOP)/demos
MWIDGETSRC = $(MLIBSRC)/Xm
MRESOURCESRC = $(MLIBSRC)/Mrm
UILSRC = $(MCLIENTSRC)/uil
#ifdef MotifProjectRoot
MPROJECTROOT = MotifProjectRoot
#endif
UIL = _MUse(uil,$(UILSRC)/uil)
DEPUIL = _MUseCat($(BINDIR),$(UILSRC),/uil)
XMEXTRA_LIBS = XmExtraLibraries
/* These libraries use UseInstalledMotif instead of UseInstalled. */
#undef _Use
#undef _UseCat
#define _Use _MUse
#define _UseCat _MUseCat
#ifndef MBuildLibDir
# define MBuildLibDir BuildLibDir
#endif
#if SharedLibXm
SharedLibReferences(XM,Xm,$(MWIDGETSRC),SOXMREV,SharedXmRev)
#else
ProjectUnsharedLibReferences(XM,Xm,$(MWIDGETSRC),MBuildLibDir)
#endif
#if SharedLibMrm
SharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),SOMRMREV,SharedMrmRev)
#else
ProjectUnsharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),MBuildLibDir)
#endif
#if SharedLibUil
SharedLibReferences(UIL,Uil,$(UILSRC),SOUILREV,SharedUilRev)
#else
ProjectUnsharedLibReferences(UIL,Uil,$(UILSRC),MBuildLibDir)
#endif
#ifdef DebugGeometry
ProjectUnsharedLibReferences(TESTGEO,XtGeo,$(TESTGEOSRC),MBuildLibDir)
#endif
#if Automation
# if SharedLibACommon
SharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),SOACOMMONREV,SharedACommonRev)
# else
ProjectUnsharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),MBuildLibDir)
# endif
TESTUILCOMLIB = $(TESTCOMSRC)/libACommonUil.a
# if SharedLibScript
SharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),SOSCRIPTREV,SharedScriptRev)
# else
ProjectUnsharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),MBuildLibDir)
# endif
# if SharedLibSynth
SharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),SOSYNTHREV,SharedSynthRev)
# else
ProjectUnsharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),MBuildLibDir)
# endif
# if SharedLibCreate
SharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),SOCREATEREV,SharedCreateRev)
# else
ProjectUnsharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),MBuildLibDir)
# endif
# if SharedLibVisual
SharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),SOVISUALREV,SharedVisualRev)
# else
ProjectUnsharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),MBuildLibDir)
# endif
# if SharedLibUtil
SharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),SOUTILREV,SharedUtilRev)
# else
ProjectUnsharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),MBuildLibDir)
# endif
#else /* Manual */
# if SharedLibMCommon
SharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),SOMCOMMONREV,SharedMCommonRev)
# else
ProjectUnsharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),MBuildLibDir)
# endif
TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a
#endif /* Automation */
/* Revert to the normal library rules. */
#undef _Use
#undef _UseCat
#define _Use _XUse
#define _UseCat _XUseCat
#ifdef UsePurify
PURIFYLIBS = $(PURIFYHOME)/purify_stubs.a
#endif
LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
LINTUILLIB = $(UILSRC)/llib-lUil.ln
YACCFLAGS = YaccFlags
UILFLAGS = UilFlags
GENCATFLAGS = GencatFlags
GENCAT = GencatCmd $(GENCATFLAGS)
MKCATTOOL = $(MLOCSRC)/util/mkcatdefs
RM_CMD = $(RM) FilesToClean ExtraFilesToClean TestExtraFilesToClean
#if NeedDefaultDepLibs
# if HasSharedLibraries || defined(UseInstalled)
DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
# else
DEPLIBS = $(LOCAL_LIBRARIES)
# endif
DEPLIBS1 = $(DEPLIBS)
DEPLIBS2 = $(DEPLIBS)
DEPLIBS3 = $(DEPLIBS)
#endif /* NeedDefaultDepLibs */

View file

@ -1,328 +0,0 @@
XCOMM platform: $XConsortium: NetBSD.cf /main/16 1996/10/31 14:47:14 kaleb $
XCOMM platform: $XFree86: xc/config/cf/NetBSD.cf,v 3.44 1996/10/23 13:07:55 dawes Exp $
#ifndef OpenBSDArchitecture
#ifndef OSName
#define OSName NetBSD 1.2
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 1
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 2
#endif
/* 1 = A, 2 = B, 3 = C */
#ifndef OSTeenyVersion
#define OSTeenyVersion 0
#endif
#else
#ifndef OSName
#define OSName OpenBSD 2.0
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
/* 1 = A, 2 = B, 3 = C */
#ifndef OSTeenyVersion
#define OSTeenyVersion 0
#endif
#endif
#ifndef OSVendor
#define OSVendor /**/
#endif
XCOMM operating system: OSName
/*
* C library features
*/
#if defined(OpenBSDArchitecture) || \
defined(NetBSDArchitecture) && (OsMajorVersion == 1 && OsMinorVersion >= 2)
# define HasPoll YES
#endif
#define HasNdbm YES
#define HasPutenv YES
#define HasSnprintf YES
#define HasBSD44Sockets YES
#define Malloc0ReturnsNull NO
#define SetTtyGroup YES
#define DBMLibrary /**/
#ifndef HasLibCrypt
# define HasLibCrypt YES
#endif
#ifndef HasShm
# if OSMajorVersion == 0 && OSMinorVersion == 9 && OSTeenyVersion == 2
/*
* Shm memory was removed in 0.9B because it was encumbered.
* A free version was added in 0.9C
*/
# define HasShm NO
# else
# define HasShm YES
# endif
#endif
#define HasWChar32 YES
/*
* There's a bug in NetBSD 1.0, 1.1 and 1.2 dlsym()
*/
#if !defined(OpenBSDArchitecture) && OSMajorVersion == 1 && OSMinorVersion <= 2
# define HasDlsymBug YES
#endif
/*
* Compiler Features
*/
#undef HasGcc
#define HasGcc YES
#define HasGcc2 YES
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus YES
#endif
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
/* OpenBSD has gcc 2.7.2.1 which fixes the strength-reduce bug */
#ifdef OpenBSDArchitecture
#define DefaultGcc2i386Opt -O2
#endif
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define MkdirHierCmd mkdir -p
#define CppCmd /usr/libexec/cpp
#define StandardCppDefines -traditional
#define PreProcessCmd CppCmd
#ifndef OpenBSDArchitecture
#define PreIncDir /usr/include
#else
#define PreIncDir /usr/lib/gcc-lib/i386-unknown-openbsd1.2/2.7.2.1/include
#endif
#undef CcCmd
#define CcCmd gcc
#if UseInstalled
#define DefaultCCOptions /**/
#else
#define DefaultCCOptions -ansi -Dasm=__asm
#endif
#define GccGasOption -DGCCUSESGAS
#define AsmDefines -DUSE_GAS
#ifdef i386Architecture
# define OptimizedCDebugFlags -m486 DefaultGcc2i386Opt
# if OSMajorVersion < 1
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
# else
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
# endif
# if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
# define ServerExtraSysLibs -li386
# endif
#else
# define OptimizedCDebugFlags -O2
# if defined(SparcArchitecture)
# define ServerOSDefines -DDDXOSINIT
# else
# define ServerOSDefines /**/
# endif
#endif
#ifdef i386Architecture
# define ServerExtraDefines GccGasOption XFree86ServerDefines
# ifndef XFree86ConsoleDefines
# define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
# endif
#else
# define ServerExtraDefines GccGasOption
#endif
#define StandardDefines -DCSRG_BASED
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#if OSMajorVersion > 0
# ifndef BuildDynamicLoading
# define BuildDynamicLoading YES
# endif
#endif
#ifndef ExtraLibraries
#define ExtraLibraries /**/
#endif
#ifndef UseGnuMalloc
#ifndef OpenBSDArchitecture
# define UseGnuMalloc YES
#else
# define UseGnuMalloc NO
#endif
#endif
#ifndef GnuMallocLibrary
#define GnuMallocLibrary -lgnumalloc
#endif
/*
* Make & install Features
*/
#define HasMakefileSafeInclude YES
#define IncludeMakefile(file) @@# dependencies are in .depend
#define DependFileName .depend
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
#define DefaultUserPath .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
#define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
#ifdef InstallCmd
# undef InstallCmd
# define InstallCmd /usr/bin/install
#endif
#ifndef ExtraFilesToClean
# define ExtraFilesToClean *.core
#endif
/*
* Documentation formatting
*/
#define NeqnCmd neqn -Tlatin1
#define EqnCmd eqn -Tps
#define TroffCmd groff -Tps
/*
* To use the NetBSD Aperture driver
*/
#if defined(i386Architecture)
#ifndef HasNetBSDApertureDrv
#define HasNetBSDApertureDrv NO
#endif
#endif
#define MakeHasPosixVariableSubstitutions YES
/*
* ForceSubdirs - force make to build subdirectories
*
* For BSD 4.4 make
*/
#define ForceSubdirs(dirs) @@\
dirs: .EXEC @@\
@cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \ @@\
$(MAKE) $(MFLAGS) PassCDebugFlags all @@\
@@\
.EXEC:
XCOMM Man pages need to be formatted when installed, so override the default
XCOMM imake rules.
#define ManSuffix 1
#define FileManSuffix 5
#define ManSourcePath $(MANPATH)/cat
#define InstallManPageLong(file,destdir,dest) @@\
all:: file.0 @@\
@@\
file.0:: file.man @@\
@if [ -f file.man ]; \ @@\
then \ @@\
cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
cp /tmp/$$$$.man file.0; \ @@\
$(RM) /tmp/$$$$.man; \ @@\
fi @@\
@@\
install.man:: @@\
MakeDir($(DESTDIR)destdir) @@\
-@if [ -f file.0 ]; \ @@\
then \ @@\
$(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
fi
#define InstallGenManPageLong(file,destdir,dest,suffix) @@\
InstallManPageLong(file,destdir,dest)
#define InstallMultipleManSuffix(list,dest,suff) @@\
install.man:: @@\
MakeDir($(DESTDIR)dest) @@\
case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in list; do \ @@\
(set -x; \ @@\
cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \ @@\
$(RM) /tmp/$$$$.suff); \ @@\
done
#define InstallMultipleMan(list,dest) @@\
InstallMultipleManSuffix(list,dest,man)
#define InstallManPageAliases(file,destdir,aliases) @@\
install.man:: @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in aliases; do \ @@\
(set -x; \ @@\
$(RM) $(DESTDIR)destdir/$$i.0;\ @@\
(cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\ @@\
); \ @@\
done
#define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
InstallManPageAliases(file,destdir,aliases)
#include <bsdLib.rules>
#ifdef i386Architecture
# include <xfree86.cf>
#endif
/*
* Definitions for the SUN server on NetBSD/sparc
*/
#ifdef SparcArchitecture
#ifndef Xsun24Server
#define Xsun24Server NO
#endif
#ifndef XsunServer
#define XsunServer YES
#endif
#ifndef XsunMonoServer
#define XsunMonoServer YES
#endif
#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
/*
* Definition for compiling on MIPS machines
*/
#ifdef MipsArchitecture
#define PositionIndependentCFlags
#define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ |
sed 's/\.[0-9]*$$//'`
#define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
#endif

View file

@ -1,30 +0,0 @@
XCOMM platform: $XConsortium: Oki.cf /main/16 1996/09/28 16:06:53 rws $
#ifndef OSName
#define OSName Unix System V/860 Release 4.0 Version 3
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 3
#endif
#define BootstrapCFlags -DOki
#define SystemV4 YES
#define HasLdRunPath YES
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DLOCALCONN
#define SetTtyGroup YES
#define HasPutenv YES
#define HasPoll YES
#define PatheticCpp YES
#define CcCmd /usr/bin/cc
#define StandardDefines -DSVR4 -Di860
#define DefaultCCOptions -Xa
#define BuildServer NO
#define ToolkitStringsABIOptions -intelabi
#include <sv4Lib.rules>

File diff suppressed because it is too large Load diff

View file

@ -1,682 +0,0 @@
$TOG: README /main/76 1998/05/11 14:35:10 barstow $
The easiest way to write an Imakefile is to find another one that does
something similar and copy/modify it!
To change any of these variables, edit the site.def file.
Imake.tmpl provides defaults for the following variables:
AlternateIncRoot compiler needs -I to find project includes
AlternateUsrLibDir linker needs -L to find project libraries
ArCmd command used to create libraries
ArCmdBase program name part of ArCmd
ArAddCmd flags to have ArCmdBase add files to a library
ArExtCmd flags to have ArCmdBase extract files
AsCmd command used to run assembler
BootstrapCFlags missing cpp symbols needed to get started
BourneShell command used to run Bourne Shell
CCsuf suffix that C++ source files have
CURDIR current directory relative to top of sources
CcCmd command to run C compiler
CompressCmd command to run compress program
GzipCmd command to run gzip program
ConstructMFLAGS System V option to set MFLAGS make variable
CpCmd command to copy one file to another
CplusplusCmd command to run C++ compiler
CplusplusFilt command to run C++ name demangler
CplusplusYaccCmd command to produce C++ source from yacc source
CppCmd command to run C preprocessor
CrossCompiling cross compiling? (not fully supported)
DebuggableCDebugFlags C compiler -I's and -D's to turn on debug info
DefaultCCOptions default special C compiler options
DefaultCDebugFlags debug/optimize flags for programs
DefaultUsrBin program directory used even if PATH not set
DependFlags extra makedepend flags
DoRanlibCmd boolean for system uses ranlib
EqnCmd command used for eqn
ExecableScripts boolean for systems that can exec() #!/bin/sh
ExpandManNames boolean to expand man pages names to long form
ExtraFilesToClean extra files to remove on make clean
ExtraLibraries system-specific libraries need to link
ExtraLoadFlags system-specific loader flags
FileManSuffix man suffix for file format pages
FilesToClean files to delete in make clean
FortranCmd command to run Fortran compiler
FortranDebugFlags flags for Fortran debug info
FortranFlags Fortran compiler flags
HasBSD44Sockets boolean for system has BSD4.4 sockets
HasBsearch boolean for libc has bsearch()
HasBrokenCCForLink boolean for brain damaged cc driver
HasCenterLineC boolean for system has CenterLine C compiler
HasCenterLineCplusplus boolean for system has CenterLine C++ compiler
HasClearmake use Clearcase's clearmake make program?
HasCodeCenter boolean for system has CodeCenter
HasCplusplus system has a C++ compiler?
HasDECnet system has DECnet?
HasFortran boolean for system has Fortran compiler
HasGcc boolean for system has GNU gcc compiler
HasGcc2 boolean for system has GNU gcc 2.x compiler
HasGcc2ForCplusplus use gcc 2 for C++ programs?
HasKrb5 system has Kerberos version 5 support?
HasLargeTmp boolean for system has /tmp space
HasLatex system has LaTeX document preparation software
HasLibCrypt boolean for system has libcrypt
HasNdbm boolean for system has ndbm routines
HasPoll use poll() syscall?
HasPurify boolean for system has Purify
HasPutenv boolean for libc has putenv()
HasSecureRPC boolean for Sun Secure RPC
HasSetUserContext boolean for setusercontext()
HasSentinel boolean for system has Sentinel available
HasSharedLibraries boolean for system has shared libraries
HasShm boolean for System V shared memory
HasSockets boolean for system has BSD sockets
HasStrcasecmp boolean for system implements str[n]casecmp
HasStreams use STREAMS I/O interface?
HasSymLinks boolean for system has symbolic links
HasTestCenter boolean for system has TestCenter
HasVarDirectory boolean for system has /var
HasVFork boolean for system has vfork()
HasVoidSignalReturn boolean for POSIX signal() procs
HasZlib boolean for system has libz
IncRoot parent of X11 include directory
InstBinFlags install flags for binaries
InstDatFlags install flags for data files
InstIncFlags install flags for header files
InstKmemFlags install flags for xload to get at /dev/kmem
InstLibFlags install flags for libraries
InstManFlags install flags for manual pages
InstPgmFlags install flags for normal programs
InstUidFlags install flags for xterm to chown /dev/ptys
InstallCmd command to install files
Krb5Includes where to include Kerberos header files from
Krb5Libraries where to load Kerberos libraries from
LdCmd command to run loader
LdCombineFlags flags for incremental loading
LexCmd command to run lex
LexLib library for programs using lex output
LintCmd command to run lint
LintLibFlag flags to generate lint libraries
LintOpts lint options to control strictness
LnCmd command to link two files
LoaderLibPrefix loader flags before libraries
LocalRulesFile site-specific file with additional imake rules
LocalTmplFile file with additional imake variables
MacroFile name of machine-dependent config params file
MacroIncludeFile <MacroFile>
MakeCmd command to run make
Malloc0ReturnsNull boolean for malloc(0) == NULL
Malloc0ReturnsNullDefines -D's to build libX11/libXt
MathLibrary library for programs using C math functions
MsMacros macro flag for TroffCmd, normally "-ms"
MvCmd command to rename a file
NdbmDefines -D's to turn on use of ndbm routines
NeedConstPrototoypes whether const is supported
NeedFunctionPrototypes whether or not to force function prototypes
NeedNestedPrototypes whether nested prototypes are supported
NeedVarargsPrototypes whether varargs prototypes are supported
NeedWidePrototypes whether or not to widen function prototypes
NoOpCDebugFlags C compiler flags to not debug or optimize
NoRConst YES if const for structs of funcs is bad
OSMajorVersion major version number of operating system
OSMinorVersion minor version number of operating system
OptimizedCDebugFlags C compiler flags to turn on optimization
XtPopdownConformance XtPopdown conformans to the specification
PreProcessCmd command to run /lib/cpp on scripts
RanlibCmd command to clean up libraries
RanlibInstFlags flags to ranlib after copying
ResourceConfigurationManagement boolean for Xt's Resource Configuration
Management
RmCmd command to delete files
ShLibDir directory in which to install shared libraries
StandardCppDefines -D's for running cpp
StandardDefines -D's for running C compiler
StandardIncludes -I's for running C compiler
StripInstalledPrograms boolean for sites that want to install -s
SystemV boolean for systems that are at least SVR2
SystemV4 boolean for SVR4 systems
TOPDIR relative path to top of sources
TagsCmd command to run tags
TblCmd command to run tbl
TroffCmd command to run troff to get PostScript
UNCOMPRESSPATH command to run uncompress
UnalignedReferencesAllowed boolean for unaligned copies ok
UsrLibDir directory in which to install libraries
YaccCmd command to run yacc
X11.tmpl provides defaults for the following variables:
AdmDir directory containing system log files
AllocateLocalDefines -D's to turn on alloca() (should be in Imake.tmpl)
BDFTOSNFFILT command to run bdftosnf
BaseExtensionDefines universal extensions to use
BinDir directory in which to install programs
BuildAppgroup build AppGroup extension in server
BuildCup build Colormap Utilization extension in server
BuildDBE build DOUBLE-BUFFER extension
BuildDIS build Document Imaging Subset of XIE
BuildDPMS build Display Power Management Signaling extension
BuildFontServer build font server
BuildFonts build pcf fonts
BuildIncRoot relative path to location of headers in build
BuildIncTop path from build includes directory to top
BuildEVI build EVI server extension
BuildLBX build LBX (aka X.fast) server extension
BuildMultibuffer build Multibuffer extension (obsolete)
BuildPlugin build xrx plug-in for web browsers
BuildRECORD Build RECORD extension
BuildPexExt build PEX server extension and fonts
BuildPhigs build Phigs (obsolete)
BuildServer build X server
BuildXAudio build Audio
BuildXAServer build Audio server
BuildXCSecurity Build Security Extension
BuildXIE build X Image Extension
BuildXInputExt build X Input extension (requires ddx support,
which exists only in Xhp and XFree86)
BuildXInputLib build X Input library
BuildXKB build X Keyboard Extension?
BuildXKBlib build X Keyboard Extension into Xlib?
UseXKBInClients Use XKB functions in normal clients?
ConfigDir install directory for config files
ConnectionFlags -D's for supported transports
ContribDir location of user-contributed sources
DebugLibFS build libFS_d.a
DebugLibICE build libICE_d.a
DebugLibPex build libPEX5_d.a
DebugLibSM build libSM_d.a
DebugLibX11 build libX11_d.a
DebugLibXau build libXau_d.a
DebugLibXaw build libXaw_d.a
DebugLibXdmcp build libXdmcp_d.a
DebugLibXext build libXext_d.a
DebugLibXi build libXi_d.a
DebugLibXie build libXie_d.a
DebugLibXmu build libXmu_d.a
DebugLibXt build libXt_d.a
DebugLibXtst build libXtst_d.a
DebugLibXag build libXag_d.a
DebugOldX build liboldX_d.a
DefaultFSConfigFile default font server config file
DefaultFontPath default server font path
DefaultRGBDatabase default server rgb color database
DefaultSystemPath default system xdm PATH environment variable
DefaultSystemShell default /bin/sh
DefaultUserPath default user xdm PATH environment variable
DependCmd command to run makedepend
DependDir build directory containing makedepend program
ExtensionDefines -D's for universal extensions
ExtensionOSDefines -D's for additional extensions
FontCompilerFlags flags for bdftosnf
FontDefines -D's to turn on font options
FontDir directory in which to install fonts
FontFilters -D's to specify font conversion filters
FontOSDefines -D's for which fonts to support
ForceNormalLib force building of .a in addition to shared lib
GzipFontCompression boolean for using gzip instead of compress
HasXdmAuth boolean for using XDM-AUTHORIZATION-1;
needs Wraphelp.c, see Release Notes
InstallAppDefFiles install new app defaults files over old?
InstallFSConfig install fs config file over old?
InstallLibManPages boolean for installing library man pages
InstallSecurityConfig install server security policy file over old?
InstallXdmConfig install xdm config files over old?
InstallXinitConfig install xinit config files over old?
LibDir directory in which to install X11 support files
LibManSuffix man suffix for library pages
LibmanDir directory in which to install library man pages
LintlibDir directory in which to install lint libs
ManDir directory in which to install program man pages
ManDirectoryRoot parent of man directories relative to root
ManPath full path of parent directory
ManSourcePath common prefix of man page directories
ManSuffix man suffix for programs
MiscManSuffix man suffix for miscellaneous pages
NeedDefaultDepLibs boolean for enabling default DEPLIBS
NlsDir directory in which to install nls files
NormalLibFS build libFS.a
NormalLibICE build libICE.a
NormalLibPex build libPEX5.a
NormalLibPhigs build libphigs.a
NormalLibSM build libSM.a
NormalLibX11 build libX11.a
NormalLibXau build libXau.a
NormalLibXaw build libXaw.a
NormalLibXdmcp build libXdmcp.a
NormalLibXext build libXext.a
NormalLibXi build libXi.a
NormalLibXie build libXie.a
NormalLibXmu build libXmu.a
NormalLibXt build libXt.a
NormalLibXtst build libXtst.a
NormalLibXag build libXag.a
NormalOldX build liboldX.a
OsNameDefines beats me
PexApiDir PEX include file location
PexCCOptions special options for building PEX library
PexCDebugFlags special flags for building PEX library
PexClientDefines special -D's for building PEX clients
PexDipexDefines special -D's for building PEX di files
PexPhigsDefines special -D's for building PEX library
PexShmIPC boolean for using shared memory in phigsmon
PhigsInclude include directory for phigs clients
PrimaryScreenResolution resolution of default server screen
ProfileLibFS build libFS_p.a
ProfileLibICE build libICE_p.a
ProfileLibPex build libPEX5_p.a
ProfileLibSM build libSM_p.a
ProfileLibX11 build libX11_p.a
ProfileLibXau build libXau_p.a
ProfileLibXaw build libXaw_p.a
ProfileLibXdmcp build libXdmcp_p.a
ProfileLibXext build libXext_p.a
ProfileLibXi build libXi_p.a
ProfileLibXie build libXie_p.a
ProfileLibXmu build libXmu_p.a
ProfileLibXt build libXt_p.a
ProfileLibXtst build libXtst_p.a
ProfileLibXag build libXag_p.a
ProfileOldX build liboldX_p.a
ProjectX version indicating this is the X Window System
RemoveTargetProgramByMoving boolean for rm -f that doesn't
SHELLPATH -D for /bin/sh
ServerConfigDir directory for server security config files
ServerDefines complete -D's for server
ServerExtraDefines special -D's for server
ServerOSDefines OS -D's for server
ServerAssertDefines -DNDEBUG for no assertions, /**/ for assertions
SharedLibFS boolean for making sharable libFS.so
SharedLibICE boolean for making sharable libICE.so
SharedLibPex boolean for making sharable libPEX5.so
SharedLibPhigs boolean for making sharable libphigs.so
SharedLibSM boolean for making sharable libSM.so
SharedLibX11 boolean for making sharable libX11.so
SharedLibXau boolean for making sharable libXau.so
SharedLibXaw boolean for making sharable libXaw.so
SharedLibXdmcp boolean for making sharable libXdmcp.so
SharedLibXext boolean for making sharable libXext.so
SharedLibXi boolean for making sharable libXi.so
SharedLibXie boolean for making sharable libXie.so
SharedLibXmu boolean for making sharable libXmu.so
SharedLibXt boolean for making sharable libXt.so
SharedLibXtst boolean for making sharable libXtst.so
SharedLibXag boolean for making sharable libXag.so
SharedOldX boolean for making sharable liboldX.so
ShmDefines MIT-SHM define
TwmDir directory in which to install twm config files
UseCCMakeDepend boolean for using alternate makedepend script
UseRgbTxt use rgb.txt file as is instead of DBM-compiled
VarDirectory directory in /var for logs, etc., and config
VendorHasX11R6_3libXext don't need Security & AppGroup in xrx plug-in
XAppLoadDir directory in which to install app defaults
XFileSearchPathBase base file search path
XFileSearchPathDefault default path to search for app defaults files
XInputDefines XINPUT define
XMalloc0ReturnsNullDefines -D's specifically for libX11
XawClientDepLibs DEPLIBS for clients that use Xaw
XawClientLibs LOCAL_LIBRARIES for clients that use Xaw
XdmConfigurationSubdirectory name of default xdm configuration
XdmDir directory in which to install xdm files
XdmServersType type of xdm Xservers file to install
XinitDir directory in which to install xinit files
XPrintDir parent of X Print server config directory
XprtServer build the X Print server
XmanLocalSearchPath non-standard path for man pages
XtErrorPrefix leading text in XtError() msg; eg. 'X Toolkit '
XtWarningPrefix leading text in XtWarning()msg, same as above
XtMalloc0ReturnsNullDefines -D's specifically for libXt
ZBDFTOSNFFILT -D to run uncompress and bdftosnf
Library.tmpl provides defaults for the following variables:
AvoidNullMakeCommand for makes that spout about $(_NULLCMD_)
LibraryCCOptions special C compiler options for libraries
LibraryCDebugFlags library debug/optimize flags to override defs
LibraryCcCmd command to run C compiler in libraries
LibraryCplusplusOptions special C++ options for libraries
LibraryCplusplusDebugFlags library debug/optimize flags for C++
LibraryCplusplusCmd command to run C++ compiler in libraries
LibraryDefines -D's for libraries
SeparateSharedCompile shared and unshared libs use same binaries?
Server.tmpl provides defaults for the following variables:
ServerCCOptions server C compiler options to override defaults
ServerCcCmd command to run C compiler in server
ServerCDebugFlags server debug/opt compiler flags
ServerDefines server standard -D's
InstallServerSetUID does this system need X server suid to root?
Threads.tmpl provides defaults for the following variables:
LocalThreads whether to enable multi-threading support
LocalThreadsDefines -D flags needed in this directory
An <os>Lib.rules file provides defaults for the following variables:
HasSharedLibraries boolean for using shared libraries
SharedDataSeparation boolean indicating separate data/code
SharedCodeDef -D's for compiling shared library files
SharedLibraryDef -D's for defining which kind of shared lib
ShLibIncludeFile location of the <os>Lib.tmpl file
SharedLibraryLoadFlags loader flags when making the library
UseExportLists boolean for using an export list
PositionIndependentCFlags PIC compiler flags for C
PositionIndependentCplusplusFlags PIC compiler flags for C++
Note: PositionIndependentCplusplusFlags is only required if the
C and C++ compilers use different flags to build PIC code. The
default configuration will try to use PositionIndependentCFlags
for both C and C++ compiles.
An <os>Lib.tmpl file provides defaults for the following variables:
SharedFSReqs required libs for libFS.so
SharedFSRev version number for libFS.so
SharedICEReqs required libs for libICE.so
SharedICERev version number for libICE.so
SharedOldXReqs required libs for liboldX.so
SharedOldXRev version number for liboldX.so
SharedPexReqs required libs for libPEX5.so
SharedPexRev version number for libPEX5.so
SharedSMReqs required libs for libSM.so
SharedSMRev version number for libSM.so
SharedX11Reqs required libs for libX11.so
SharedX11Rev version number for libX11.so
SharedXauReqs required libs for libXau.so
SharedXauRev version number for libXau.so
SharedXawReqs required libs for libXaw.so
SharedXawRev version number for libXaw.so
SharedXdmcpReqs required libs for libXdmcp.so
SharedXdmcpRev version number for libXdmcp.so
SharedXextReqs required libs for libXext.so
SharedXextRev version number for libXext.so
SharedXiReqs required libs for libXi.so
SharedXiRev version number for libXi.so
SharedXieReqs required libs for libXie.so
SharedXieRev version number for libXie.so
SharedXmuReqs required libs for libXmu.so
SharedXmuRev version number for libXmu.so
SharedXtReqs required libs for libXt.so
SharedXtRev version number for libXt.so
SharedXtstReqs required libs for libXtst.so
SharedXtstRev version number for libXtst.so
SharedXmReqs required libs for libXm.so
SharedXmRev version number for libXm.so
SharedMrmReqs required libs for libMrm.so
SharedMrmRev version number for libMrm.so
SharedUilReqs required libs for libUil.so
SharedUilRev version number for libUil.so
SharedTtReqs required libs for libtt.so
SharedTtRev version number for libtt.so
SharedPamReqs required libs for libpam.so
SharedPamRev version number for libpam.so
SharedDtSvcReqs required libs for libDtSvc.so
SharedDtSvcRev version number for libDtSvc.so
SharedDtSearchReqs required libs for libDtSearch.so
SharedDtSearchRev version number for libDtSearch.so
SharedDtWidgetReqs required libs for libDtWidget.so
SharedDtWidgetRev version number for libDtWidget.so
SharedDtHelpReqs required libs for libDtHelp.so
SharedDtHelpRev version number for libDtHelp.so
SharedDtPrintReqs required libs for libDtPrint.so
SharedDtPrintRev version number for libDtPrint.so
SharedDtTermReqs required libs for libDtTerm.so
SharedDtTermRev version number for libDtTerm.so
SharedDtMrmReqs required libs for libDtMrm.so
SharedDtMrmRev version number for libDtMrm.so
The following variables are used by some part of the tree:
AckToolset programs/Xserver/hw/xfree86
BuildChooser build the xdm chooser program?
SharedLibXdmGreet use xdm shared dynamic greeter library?
LatexCmd command to run LaTeX on a document
DvipsCmd command to turn .dvi file into PostScript
MotifBC using Motif 1.1.1, 1.1.2, or 1.1.3?
GetValuesBC compat GetValues behavior for broken apps?
NeedBerklib application needs libXbsd?
SvgaConfig default SVGA configuration
HasGetReturnAddress util/memleak
HasShadowPasswd system has getspnam() function
XnestServer build X server with Xlib-based ddx
XVirtualFramebufferServer build X server with virtual memory framebuffer
XpRasterDDX include the raster print ddx driver
XpColorPclDDX include the color PCL print ddx driver
XpMonoPclDDX include the monochrome PCL print ddx driver
XpPostScriptDDX include the PostScript print ddx driver
WebServer host:port of your Web server (see programs/xrx)
HtmlDir path used by Web server for HTML and RX docs
CgiBinDir path used by Web server for CGI programs
ProxyManager ICE network ID to contact a running proxymngr
Make Variables
The following make variables are used by imake rules and may be set in
an individual Imakefile.
DEFINES program-specific -D flags and other arguments
to pass to the C compiler, lint, and makedepend.
DEPEND_DEFINES program-specific flags in addition to
$(DEFINES) to pass to lint and makedepend.
This is usually used when there are special
compilation rules for individual files, and
the defines passed to those files affect
makedepend results. If they can be passed to
all files during the makedepend step without
affecting the results for other files,
DEPEND_DEFINES is used to do that. Example is
the Xlib Imakefile.
INCLUDES program-specific -I flags.
HEADERS .h files to install with "make includes" and
"make install". If this Imakefile includes
Library.tmpl there are no headers, include
this line instead of a HEADERS definition:
#define LibHeaders NO
REQUIREDLIBS when building a shared library, other libraries used
by this library that should be referenced at
link time.
LINTLIBS program-specific libraries for lint.
LOCAL_LDFLAGS program-specific flags for the linker.
LOCAL_LIBRARIES project libraries (usually specified
as -lname) needed by this program.
For example, "-lXt -lXext -lX11".
Used by SimpleProgramTarget and
ComplexProgramTarget* rules.
Do not include any system-specific libraries here.
SYS_LIBRARIES system libraries (usually specified
as -lname) needed by this program.
For example "MathLibrary".
Do not include any system-specific libraries
such as "-lnsl" here; they are automatically
added to the link command by the
vendor-specific .cf file.
SUBDIRS for an Imakefile in a directory containing
subdirectories, this names the subdirectories.
Such an Imakefile also needs to #define IHaveSubdirs
and call MakeSubdirs() and DependSubdirs().
MANSUFFIX suffix used by InstallManPage* rules.
May be set to $(LIBMANSUFFIX), $(FILEMANSUFFIX), or
$(MISCMANSUFFIX) in directories for libraries or data
files.
Rule-specific variables that may be set in an individual Imakefile.
If you aren't using these rules, you may need variables with a similar
function, but you need not use these names. However, following these
conventions may make your Imakefile easier to read and maintain.
DEPLIBS library dependencies for ComplexProgramTarget
SRCS source files used by ComplexProgramTarget and
DependTarget.
OBJS object files used by ComplexProgramTarget
PROGRAMS default target used with ComplexProgramTarget_(n)
SRCS1 source files used by ComplexProgramTarget_1
OBJS1 object files used by ComplexProgramTarget_1
DEPLIBS1 library dependencies for ComplexProgramTarget_1
SRCS2 source files used by ComplexProgramTarget_2
OBJS2 object files used by ComplexProgramTarget_2
DEPLIBS2 library dependencies for ComplexProgramTarget_2
SRCS3 source files used by ComplexProgramTarget_3
OBJS3 object files used by ComplexProgramTarget_3
DEPLIBS3 library dependencies for ComplexProgramTarget_3
Variables that can be set on the make command line:
DESTDIR directory under which "make install" should
install instead of "/"; used only for testing
"make install" rules.
FILE file for "lint1" target to run lint on.
CDEBUGFLAGS -g and/or -O flag to control C compiler optimization.
CXXDEBUGFLAGS -g and/or -O flag to control C++ optimization.
LDSTRIPFLAGS flag to have linker strip objects (typically -x).
Typically set to the empty string to prevent
the linker from stripping objects; use this
way when setting CDEBUGFLAGS to "-g".
These variables are set in project-specific files such as X11.tmpl.
They should NOT be set in an Imakefile. These variables are sometimes
misused; they are included here to remind Imakefile writers NOT to use
them:
EXTRA_DEFINES project-specific -D flags
EXTRA_INCLUDES project-specific -I flags
EXTRA_ICONFIGFILES Additional project-specific imake config files
to add to ICONFIGFILES.
This is a list of files that define variables
that might affect compilation of some files.
Many other make variables are set up by the imake config files and can
be used in an Imakefile. The easiest way to discover them is to look
at the Makefile generated by an empty Imakefile.
Comments
Use C comment syntax in an Imakefile for comments that should not
appear in the resulting Makefile.
Use "XCOMM" at the start of each
line to produce a comment that will appear in the Makefile.
(The "XCOMM" will
be translated into the Makefile comment character "#" by imake.)
Do NOT use "#" as a comment character in Imakefiles; it confuses the C
preprocessor used by imake on some systems.
Imake variables
Don't abuse the variables in X11.tmpl that describe
particular pieces of X by using them to describe your own subsystems.
Instead, create new variables that are defaulted using
Imake.tmpl variables.
Examples
Since the easiest way to write an Imakefile is to start with one that
works, here are some short, easy-to-read Imakefile examples in the X
distribution:
with subdirs: config/Imakefile
library: lib/Xau/Imakefile
simple program: programs/xdpyinfo/Imakefile
complex progs: programs/xclipboard/Imakefile
complex prog: programs/xmodmap/Imakefile
Common Rules
Here are some of the common rules for building programs. How to use
them is described in Imake.rules and in the O'Reilly book "Software
Portability with imake."
Basic program-building rules
All of these except NormalProgramTarget also generate rules to install
the program and its manual page, and to generate dependencies.
SimpleProgramTarget Use if there is only one program to be made
and it has only one source file.
ComplexProgramTarget Use if there is only one program to be made
and it has multiple source files. Set SRCS to
the names of the source files, set OBJS to
the names of the object files, and set DEPLIBS
to the libraries that this program depends on.
ComplexProgramTarget_1 Like ComplexProgramTarget, but uses SRCS1,
OBJS1, and DEPLIBS1 and can be used with
ComplexProgramTarget_2 and ComplexProgramTarget_3
to build up to three programs in the same directory.
Set PROGRAMS to the programs built by all of
these rules. For more than 3 programs, use
NormalProgramTarget for each.
ComplexProgramTarget_2 Use after ComplexProgramTarget_1 for the
second program in a directory. Uses SRCS2,
OBJS2, and DEPLIBS2.
ComplexProgramTarget_3 Use after ComplexProgramTarget_2 for the
third program in a directory. Uses SRCS3,
OBJS3, and DEPLIBS3.
NormalProgramTarget Build a program. Can be used multiple times
with different arguments in the same Imakefile.
Lower level rules, often used with NormalProgramTarget
InstallProgram install a program.
InstallManPage install a manual page.
DependTarget() include once at end of Imakefile with
NormalProgramTarget rules or that uses Library.tmpl.
Generates dependencies for files named in SRCS.
Manual page rules, commonly used only in special documentation directories:
InstallManPage
InstallManPageLong
InstallManPageAliases
Other rules:
SpecialCObjectRule Compile a C file with special flags.
AllTarget Declare additional targets to build.
InstallAppDefaults Install X application defaults file.
Imakefile for directory with subdirectories
XCOMM this is a sample Imakefile for a directory containing subdirectories
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
SUBDIRS = list of subdirs ...
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
Common Targets
These targets are typically NOT defined explicitly by the Imakefile
writer; rather they are generated automatically by imake rules.
They are listed here for the convenience of people using the resulting
Makefile, not people writing the original Imakefile.
all Default rule; builds whatever is in this directory.
Makefile Remake the Makefile (use after changing Imakefile).
Run "make depend" after.
Makefiles Remake all Makefiles in subdirectories. (Does
nothing if no subdirectories.)
Run "make depend" after.
includes Generate and install in the tree any necessary
header files.
depend Update dependencies in the Makefile calculated
by examining the source files.
install Install what "make all" built on the system.
install.man Install manual pages.
clean Remove built objects and other derived files.
lint Run lint.
tags Create a tags file.

View file

@ -1,49 +0,0 @@
/*
* Server imakefile info - this contains any special redefinitions, etc.
* that Imakefiles in the server subtree will need.
*/
XCOMM $TOG: Server.tmpl /main/15 1997/07/16 14:43:38 kaleb $
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)" LDSTRIPFLAGS="$(LDSTRIPFLAGS)"
#ifndef ServerCcCmd
#define ServerCcCmd CcCmd
#endif
#ifndef ServerCCOptions
#define ServerCCOptions DefaultCCOptions
#endif
#ifndef ServerDefines
#define ServerDefines StandardDefines
#endif
#ifndef ServerCDebugFlags
#define ServerCDebugFlags DefaultCDebugFlags
#endif
#ifndef DoThreadedServer
#define DoThreadedServer NO
#endif
#ifndef InstallServerSetUID
#define InstallServerSetUID NO
#endif
/*
* SetUIDServerTarget - compile, link, and relink a setuid server
*/
#ifndef SetUIDServerTarget
#if InstallServerSetUID
#define SetUIDServerTarget(server,subdirs,objects,libs,syslibs) @@\
ServerTargetWithFlags(server,subdirs,objects,libs,syslibs,$(INSTUIDFLAGS))
#else
#define SetUIDServerTarget ServerTarget
#endif
#endif /* SetUIDServerTarget */
CC = ServerCcCmd
CCOPTIONS = ServerCCOptions
#if DoThreadedServer
SERVER_THREAD_DEFINES = XThreadsDefines ThreadTypeDefines
#endif
STD_DEFINES = ServerDefines $(SERVER_THREAD_DEFINES)
CDEBUGFLAGS = ServerCDebugFlags
EXT_DEFINES = ExtensionDefines

View file

@ -1,85 +0,0 @@
XCOMM $XConsortium: Threads.tmpl /main/11 1996/09/28 16:07:06 rws $
/*
* For a multi-threaded application or library,
* Define LocalThreadsDefines in your Imakefile (unless you like the
* project default), then include this file.
* Everything else should be automatic.
*/
#ifndef LocalThreadsDefines
#ifdef ProjectThreadsDefines
#define LocalThreadsDefines ProjectThreadsDefines
#else
#define LocalThreadsDefines /**/
#endif
#endif
#ifndef LocalThreads
#ifdef ThreadedProject
#define LocalThreads ThreadedProject
#else
#define LocalThreads YES
#endif
#endif
#ifndef ThreadTypeDefines
#if HasCThreads
#define ThreadTypeDefines -DCTHREADS
#else
#define ThreadTypeDefines /**/
#endif
#endif
#ifndef SystemMTDefines
#define SystemMTDefines /**/
#endif
#ifndef LibraryMTDefines
#define LibraryMTDefines /**/
#endif
#ifndef HasThreadSafeAPI /* does it have getpwnam_r, etc. */
#define HasThreadSafeAPI YES
#endif
#ifndef MTSafeAPIDefines
#if HasThreadSafeAPI
#define MTSafeAPIDefines -DXUSE_MTSAFE_API
#else
#define MTSafeAPIDefines /**/
#endif
#endif
#ifndef ThreadPreStdAPIDefines
#define ThreadPreStdAPIDefines /* nominally for POSIX P1003.4a (Draft 4) API */
#endif
#ifndef CplusplusSystemMTDefines
#define CplusplusSystemMTDefines /**/
#endif
#ifndef ThreadsCompileFlags
#define ThreadsCompileFlags /**/
#endif
#ifndef ThreadsCplusplusCompileFlags
#define ThreadsCplusplusCompileFlags /**/
#endif
#ifndef ThreadsLibraries
#define ThreadsLibraries /**/
#endif
#ifndef ThreadsCplusplusLibraries
#define ThreadsCplusplusLibraries /**/
#endif
#ifndef ThreadsLoadFlags
#define ThreadsLoadFlags ThreadsCompileFlags
#endif
#ifndef ThreadsCplusplusLoadFlags
#define ThreadsCplusplusLoadFlags ThreadsCplusplusCompileFlags
#endif
#if LocalThreads
THREADS_CFLAGS = ThreadsCompileFlags
THREADS_DEFINES = LocalThreadsDefines ThreadTypeDefines SystemMTDefines MTSafeAPIDefines ThreadPreStdAPIDefines $(LIB_MT_DEFINES)
THREADS_LDFLAGS = ThreadsLoadFlags
THREADS_LIBS = ThreadsLibraries
THREADS_CXXFLAGS = ThreadsCplusplusCompileFlags
THREADS_CXXDEFINES = LocalThreadsDefines ThreadTypeDefines CplusplusSystemMTDefines MTSafeAPIDefines ThreadPreStdAPIDefines $(LIB_MT_DEFINES)
THREADS_CXXLDFLAGS = ThreadsCplusplusLoadFlags
THREADS_CXXLIBS = ThreadsCplusplusLibraries
#endif

View file

@ -1,133 +0,0 @@
XCOMM platform: $TOG: Win32.cf /main/57 1997/12/04 11:03:33 kaleb $
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName OSMajorVersion./**/OSMinorVersion
#ifndef CompilerMajorVersion
/* 0 == NT 3.1 Win32 SDK, 2 == MSVC++ 2, 4 == MSVC 4 */
#define CompilerMajorVersion 4
#endif
#define BootstrapCFlags -DWIN32
#ifdef _M_IX86
#define CpuDefines -D_X86_
#endif
/* brain-damaged windows headers will not compile with -Za */
#define StandardDefines -DWIN32 -DWIN32_LEAN_AND_MEAN -D_DLL -D_MT -D__STDC__ CpuDefines
#if CompilerMajorVersion < 4
#define DefaultCCOptions -nologo -batch -G4 -W2
#else
#define DefaultCCOptions -nologo -G4 -W2
#endif
#if CompilerMajorVersion < 4
#define DebuggableCDebugFlags -Zi
#else
#define DebuggableCDebugFlags -Zi -Od
#endif
#define ThreadedX YES
#define HasThreadSafeAPI NO
#define CpCmd copy
#define LnCmd copy
#define MvCmd ren
#define RmCmd del
#ifndef RmTreeCmd
XCOMM choices here include:
XCOMM o `del /q /s` and live with pressing the "any" key
XCOMM o `deltree, copied from MS-DOS 5
XCOMM o `rm -rfx` from the SDK Subscription (MSTOOLS in your Path)
XCOMM o `rm -rf` from the GNU file utilities
XCOMM We're using the GNU file utilities
#define RmTreeCmd rm -rf
#endif
#define CcCmd cl
#define HasCplusplus YES
#define CplusplusCmd cl
#if CompilerMajorVersion < 4
#define PreProcessCmd CcCmd -nologo -batch -EP
#define CppCmd CcCmd -nologo -batch -E
#else
#define PreProcessCmd CcCmd -nologo -EP
#define CppCmd CcCmd -nologo -E
#endif
#define PatheticCpp YES
#define ConstructMFLAGS YES
#if (CompilerMajorVersion == 0)
#define ArCmdBase lib32
#else
#define ArCmdBase lib
#endif
#define ArCmd ArCmdBase
#define CplusplusCmd cl
#define MkdirHierCmd $(CONFIGSRC:/=\)\util\mkdirhier
#define InstallCmd copy
#define InstPgmFlags /**/
#define InstBinFlags /**/
#define InstUidFlags /**/
#define InstLibFlags /**/
#define InstIncFlags /**/
#define InstManFlags /**/
#define InstDatFlags /**/
#define InstallFlags /**/
#if (CompilerMajorVersion == 0)
#define ExtraLibraries crtdll.lib kernel32.lib wsock32.lib
#elif (CompilerMajorVersion < 4)
#define ExtraLibraries msvcrt.lib kernel32.lib wsock32.lib
#else
#define ExtraLibraries msvcrt.lib kernel32.lib wsock32.lib -link -nodefaultlib:libc
#endif
#define MakeCmd nmake -nologo
#if (CompilerMajorVersion == 0)
#define LdCmd link32
#else
#define LdCmd link
#endif
#define MathLibrary
#define HasSymLinks NO
#define HasVarDirectory NO
#define HasPutenv YES
#define Osuf obj
#ifndef CCsuf
#define CCsuf cxx
#endif
#define BuildServer NO
#define ConnectionFlags -DTCPCONN
/* override as necessary in site.def/host.def */
#ifndef StdIncDir
#define StdIncDir C:/MSDEVSTD/INCLUDE
#endif
#define LdPreLib /**/
#define LdPostLib /**/
#ifndef UseInstalled
#define ImakeCmd $(IMAKESRC:/=\)\imake
#define DependCmd $(DEPENDSRC:/=\)\makedepend
#endif
#define DependFlags -D_WIN32
#define FilesToClean *.bak *.obj *.lib make.log
#define ShLibDir $(BINDIR)
#define XFileSearchPathBase Concat4($(LIBDIR)/;L/;T/;N;C,;S:$(LIBDIR)/;l/;T/;N;C,;S:$(LIBDIR)/;T/;N;C,;S:$(LIBDIR)/;L/;T/;N;S:$(LIBDIR)/;l/;T/;N;S:$(LIBDIR)/;T/;N;S)
#define XawI18nDefines -DHAS_WCHAR_H
#define UseRgbTxt YES
#define HasCbrt NO
#define HasFfs NO
#define HasXdmAuth NO
/* the following components haven't been ported yet */
#define BuildLBX NO
#define BuildXprint NO
#define XprtServer NO
#include <Win32.rules>

View file

@ -1,525 +0,0 @@
XCOMM platform: $TOG: Win32.rules /main/51 1997/12/02 14:48:29 kaleb $
#define HasSharedLibraries YES
#define NeedLibInsideFlag YES
#define SharedLibXaw NO
#define SharedLibXmu NO
#define SharedLibXt NO
#define SharedDataSeparation NO
#define SharedCodeDef /**/
#define SharedLibraryDef /**/
#define ShLibIncludeFile <WinLib.tmpl>
#define SharedLibraryLoadFlags -dll
#define PositionIndependentCFlags /**/
.c.obj:
$(CC) -c $*.c @<<
$(CFLAGS)
<<
#if HasCplusplus
.CCsuf.obj:
$(CXX) -c $*.CCsuf @<<
$(CFLAGS)
<<
#endif
#define ProgramTargetName(target) target.exe
#define RunProgram(progvar,options) $(progvar:/=\) options
#define RemoveFile(file) if exist file $(RM) file
#define RemoveFiles(files) @$(MAKE) $(MFLAGS) -f << @@\
.SUFFIXES: @@\
@@\
all: files @@\
!for %%i in ( Avoid.Error $$** ) do if exist %%i $(RM) %%i @@\
@@\
Avoid.Error files: @@\
<<
#define MakeDir(dir) -$(MKDIRHIER) dir
#define ObjectCompile(options) RemoveFile($@) @@\
$(CC) -c $*.c @<< @@\
$(CFLAGS) options @@\
<<
#define LibObjCompile(dir,options) RemoveFiles($@ dir\$@) @@\
$(CC) -c $*.c @<< @@\
$(CCOPTIONS) $(ALLDEFINES) options @@\
<< @@\
$(MV) $@ dir\$@
#define BuildIncludesTop(srclist,dstsubdir,dstupdir) @@\
includes:: srclist @@\
MakeDir($(BUILDINCDIR:/=\)) @@\
@$(MAKE) $(MFLAGS) -f << @@\
.SUFFIXES: @@\
@@\
all: srclist @@\
cd $(BUILDINCDIR:/=\) @@\
!RemoveFile($$**) @@\
!$(LN) $(BUILDINCTOP:/=\)\$(CURRENT_DIR:/=\)\$$** . @@\
@@\
Avoid.Error srclist: @@\
<<
#define BuildIncludes(srclist,dstsubdir,dstupdir) @@\
XVARdef0 = $(BUILDINCDIR)/dstsubdir @@\
XVARdef1 = $(BUILDINCTOP)/dstupdir/$(CURRENT_DIR) @@\
@@\
includes:: srclist @@\
MakeDir($(XVARuse0:/=\)) @@\
@$(MAKE) -A $(MFLAGS) -f << @@\
.SUFFIXES: @@\
@@\
all: srclist @@\
cd $(XVARuse0:/=\) @@\
!RemoveFile($$**) @@\
!$(LN) $(XVARuse1:/=\)\$$** . @@\
@@\
Avoid.Error srclist: @@\
<<
#define LinkFileList(step,list,dir,sub) @@\
XVARdef0 = dir @@\
XVARdef1 = sub @@\
XVARdef2 = list @@\
@@\
step:: $(XVARuse2:/=\) @@\
cd $(XVARuse0:/=\) @@\
!RemoveFile($**) @@\
!$(LN) $(XVARuse1:/=\)\\$** .
#define LinkRule(program,options,objects,libraries) \
$(CCLINK) Concat(-Fe,program) options objects libraries $(EXTRA_LOAD_FLAGS)
#define NormalProgramTarget(program,objects,deplibs,locallibs,syslibs) @@\
XVARdef0 = objects @@\
@@\
ProgramTargetName(program): $(XVARuse0:.o=.obj) deplibs @@\
RemoveTargetProgram($@) @@\
LinkRule($@,$(LDOPTIONS),$(XVARuse0:.o=.obj),locallibs $(LDLIBS) syslibs) @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#define ProgramTargetHelper(program,srcs,objs,deplib,locallib,syslib) @@\
ProgramTargetName(program): $(objs:.o=.obj) $(deplib) @@\
RemoveTargetProgram($@) @@\
LinkRule($@,$(LDOPTIONS),$(objs:.o=.obj),locallib $(LDLIBS) syslib) @@\
@@\
InstallProgram(program,$(BINDIR)) @@\
InstallManPage(program,$(MANDIR))
#define ComplexProgramTarget(program) @@\
PROGRAM = ProgramTargetName(program) @@\
@@\
AllTarget(ProgramTargetName(program)) @@\
@@\
ProgramTargetHelper(program,SRCS,OBJS,DEPLIBS,$(LOCAL_LIBRARIES),NullParameter) @@\
@@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile($(PROGRAM))
#define ComplexProgramTarget_1(program,locallib,syslib) @@\
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) @@\
SRCS = $(SRCS1) $(SRCS2) $(SRCS3) @@\
PROGRAM1 = ProgramTargetName(program) @@\
@@\
AllTarget($(PROGRAM1) $(PROGRAM2) $(PROGRAM3)) @@\
@@\
ProgramTargetHelper(program,SRCS1,OBJS1,DEPLIBS1,locallib,syslib) @@\
@@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
for %%i in ($(PROGRAMS)) do $(RM) ProgramTargetName(%%i)
#define ComplexProgramTarget_2(program,locallib,syslib) @@\
PROGRAM2 = ProgramTargetName(program) @@\
@@\
ProgramTargetHelper(program,SRCS2,OBJS2,DEPLIBS2,locallib,syslib)
#define ComplexProgramTarget_3(program,locallib,syslib) @@\
PROGRAM3 = ProgramTargetName(program) @@\
@@\
ProgramTargetHelper(program,SRCS3,OBJS3,DEPLIBS3,locallib,syslib)
#define MoveToBakFile(file) -@if exist file $(MV) file file.bak
#define RMoveToBakFile(file) -RemoveFile(file.bak) @@\
-@if exist file $(MV) file file.bak
#define InstallMultipleDestFlags(step,list,dest,flags) @@\
XVARdef0 = $(DESTDIR)dest @@\
@@\
step:: list @@\
MakeDir($(XVARuse0:/=\)) @@\
!$(INSTALL) $(INSTALLFLAGS) flags $** $(XVARuse0:/=\)
#define CleanTarget() @@\
clean:: @@\
RemoveFiles(FilesToClean ExtraFilesToClean)
#define LibraryTargetName(libname)libname.lib
#define LibraryTargetNameSuffix(libname,suffix)Concat(libname,suffix.lib)
#define MakeLibrary(libname,objlist) $(AR) @<< @@\
-out:libname objlist @@\
<<
#define LinkSourceFile(src,dir) @@\
XVARdef0 = dir/src @@\
@@\
src: $(XVARuse0:/=\) @@\
RemoveFile($@) @@\
$(LN) $? $@ @@\
@@\
includes:: src @@\
@@\
depends:: src @@\
@@\
clean:: @@\
RemoveFile(src)
#define LinkFile(tofile,fromfile) @@\
XVARdef0 = fromfile @@\
tofile:: $(XVARuse0:/=\) @@\
RemoveFile($@) @@\
$(LN) $? $@ @@\
@@\
includes:: tofile @@\
@@\
depend:: tofile @@\
@@\
clean:: @@\
RemoveFile(tofile)
#define NormalLibraryTarget(libname,objlist) @@\
AllTarget(LibraryTargetName(libname)) @@\
@@\
XVARdef0 = objlist @@\
@@\
LibraryTargetName(libname): $(XVARuse0:.o=.obj) $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
MakeLibrary($@,$(XVARuse0:.o=.obj)) @@\
LinkBuildLibrary($@)
#define NormalLibraryTarget2(libname,objlist1,objlist2) @@\
NormalLibraryTarget(libname,objlist1 objlist2)
#define NormalLibraryTarget3(libname,objlist1,objlist2,objlist3) @@\
NormalLibraryTarget(libname,objlist1 objlist2 objlist3)
#define NormalDepLibraryTarget(libname,deplist,objlist) @@\
AllTarget(LibraryTargetName(libname)) @@\
@@\
XVARdef0 = deplist @@\
XVARdef1 = objlist @@\
XVARdef2 = $(XVARuse1:/=\) @@\
@@\
LibraryTargetName(libname): $(XVARuse0:/=\) $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
MakeLibrary($@,$(XVARuse2:.o=.obj)) @@\
LinkBuildLibrary($@)
#define ProfiledLibraryTarget(libname,objlist) @@\
AllTarget(LibraryTargetNameSuffix(libname,_p)) @@\
@@\
XVARdef0 = objlist @@\
@@\
LibraryTargetNameSuffix(libname,_p): $(XVARuse0:.o=.obj) $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
cd profiled @@\
MakeLibrary(..\$@,$(XVARuse0:.o=.obj)) @@\
cd ..
#define DebuggedLibraryTarget(libname,objlist) @@\
AllTarget(LibraryTargetNameSuffix(libname,_d)) @@\
@@\
XVARdef0 = objlist @@\
@@\
LibraryTargetNameSuffix(libname,_d): $(XVARuse0:.o=.obj) $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
cd debugger @@\
MakeLibrary(..\$@,$(XVARuse0:.o=.obj)) @@\
cd ..
#ifndef UseInstalled
#define ImakeDependency(target) @@\
target:: ProgramTargetName($(IMAKE)) @@\
@@\
ProgramTargetName($(IMAKE)): @@\
<<tmp.bat @@\
cd $(IMAKESRC:/=\) @@\
if exist Makefile $(MAKE) all @@\
if not exist Makefile $(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)" @@\
<<
#endif
#ifndef UseInstalled
#define DependDependency() @@\
depend:: ProgramTargetName($(DEPEND)) @@\
@@\
ProgramTargetName($(DEPEND)): @@\
<<tmp.bat @@\
cd $(DEPENDSRC:/=\) @@\
$(MAKE) @@\
<<
#endif
#define DependTarget() @@\
DependDependency() @@\
@@\
depend:: @@\
$(DEPEND:/=\) @<< @@\
$(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS) @@\
<<
#define DependTarget3(srcs1,srcs2,srcs3) @@\
DependDependency() @@\
@@\
depend:: @@\
$(DEPEND:/=\) @<< @@\
$(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- srcs1 srcs2 srcs3 @@\
<<
#define ForceSubdirs(dirs) @@\
Avoid.Error dirs: FRC @@\
@cd $@ @@\
@echo making all in $(CURRENT_DIR)/$@... @@\
$(MAKE) $(MFLAGS) PassCDebugFlags all @@\
cd .. @@\
@@\
FRC:
#define MakeMakeSubdirs(dirs,target) @@\
XVARdef0 = dirs @@\
XVARdef1 = $$ @@\
@@\
target:: @@\
@$(MAKE) -A $(MFLAGS) -f << @@\
.SUFFIXES: @@\
@@\
all: $(XVARuse0:/=\) @@\
@@\
Avoid.Error $(XVARuse0:/=\): @@\
cd $(XVARuse1)@ @@\
RMoveToBakFile(Makefile) @@\
ImakeSubCmdHelper -DTOPDIR=../$(TOP) -DCURDIR=$(CURRENT_DIR)/$(XVARuse1)@ @@\
$(MAKE) $(MFLAGS) Makefiles @@\
cd .. @@\
<<
#ifdef UseInstalled
# define ImakeSubCmdHelper $(IMAKE_CMD)
#else
# define ImakeSubCmdHelper ..\$(IMAKE) -I../$(IRULESRC) $(IMAKE_DEFINES)
#endif
#define NamedTargetSubdirs(name,dirs,verb,flags,subname) @@\
XVARdef0 = dirs @@\
XVARdef1 = $$ @@\
@@\
name:: @@\
@$(MAKE) -A $(MFLAGS) -f << @@\
.SUFFIXES: @@\
@@\
all: $(XVARuse0:/=\) @@\
@@\
Avoid.Error $(XVARuse0:/=\): @@\
cd $(XVARuse1)@ @@\
@echo verb in $(CURRENT_DIR)/$(XVARuse1)@... @@\
$(MAKE) $(MFLAGS) flags subname @@\
cd .. @@\
<<
#define UnsharedLibReferences(varname,libname,libsource) @@\
Concat3(DEP,varname,LIB) = _UseCat($(USRLIBDIR)/,libsource/,libname.lib) @@\
Concat(varname,LIB) = LoaderLibPrefix _Use(libname.lib,$(Concat3(DEP,varname,LIB))) @@\
LintLibReferences(varname,libname,libsource)
#define SharedLibReferences(varname,libname,libsource,revname,rev) @@\
revname = rev @@\
UnsharedLibReferences(varname,libname,libsource)
#define SubdirLibraryRule(objlist) @@\
XVARdef0 = objlist @@\
@@\
all:: DONE @@\
@@\
DONE: $(XVARuse0:.o=.obj) @@\
RemoveFile($@) @@\
echo - > $@ @@\
@@\
clean:: @@\
RemoveFile(DONE)
#define CppScriptTarget(dst,src,defs,deplist) @@\
dst:: @@\
@echo sorry, unable to make $@
#define CppFileTarget(dst,src,defs,deplist) @@\
XFAKEVAR = X @@\
dst:: src deplist @@\
RemoveFile($@) @@\
$(PREPROCESSCMD) -I. <<CppTmpFile.c @<< >$@ @@\
XCOMM define $(XFAKEVAR)COMM XCOMM @@\
XCOMM include <src> @@\
<< @@\
defs @@\
<< @@\
@@\
clean:: @@\
RemoveFiles(dst)
#define InstallNamedTarget(step,srcname,flags,dest,dstname) @@\
XVARdef0 = $(DESTDIR)dest @@\
@@\
step:: srcname @@\
MakeDir($(XVARuse0:/=\)) @@\
$(INSTALL) $(INSTALLFLAGS) flags srcname $(XVARuse0:/=\)\\dstname
#define InstallNamedTargetNoClobber(step,srcname,flags,dest,dstname) @@\
XVARdef0 = $(DESTDIR)dest @@\
@@\
step:: srcname @@\
MakeDir($(XVARuse0:/=\)) @@\
@if exist $(XVARuse0:/=\)\\dstname echo Not overwriting existing $(XVARuse0:/=\)\\dstname @@\
if not exist $(XVARuse0:/=\)\\dstname $(INSTALL) $(INSTALLFLAGS) flags srcname $(XVARuse0:/=\)\\dstname
#define InstallLibrary(libname,dest) @@\
InstallTarget(install,LibraryTargetName(libname),$(INSTLIBFLAGS),dest)
#define InstallScript(program,dest) /**/
#define InstallNamedProg(srcname,dstname,dest) @@\
install:: srcname @@\
@echo sorry, unable to install srcname
#define InstallSharedLibrary(libname,rev,dest) @@\
InstallTarget(install,LibraryTargetName(libname),$(INSTLIBFLAGS),$(USRLIBDIR)) @@\
InstallTarget(install,libname.dll,$(INSTLIBFLAGS),dest)
#define InstallSharedLibraryData(libname,rev,dest)
#define MakeDLL(libname,solist) $(LD) @<< @@\
$(SHLIBLDFLAGS) -out:libname.dll libname.exp solist @@\
<<
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(libname.dll) @@\
@@\
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES)) @@\
@@\
XVARdef0 = solist @@\
@@\
LibraryTargetName(libname): $(XVARuse0:.o=.obj) libname.def $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
MakeLibrary($@,-def:libname.def $(XVARuse0:.o=.obj)) @@\
LinkBuildLibrary($@) @@\
@@\
libname.dll: LibraryTargetName(libname) $(EXTRALIBRARYDEPS) @@\
RemoveFile(libname.dll) @@\
MakeDLL(libname,$(XVARuse0:.o=.obj) $(REQUIREDLIBS) $(EXTRA_LIBRARIES)) @@\
LinkBuildDLL(libname.dll) @@\
@@\
clean:: @@\
RemoveFile(LibraryTargetName(libname)) @@\
RemoveFile(libname.dll)
#define SharedLibraryDataTarget(libname,rev,salist)
#define ObjectCplusplusCompile(options) RemoveFile($@) @@\
$(CXX) -c $*.CCsuf @<< @@\
$(CFLAGS) options @@\
<<
#define CplusplusLinkRule LinkRule
#define CplusplusProgramTargetHelper ProgramTargetHelper
#ifndef ComplexCplusplusProgramTarget
#define ComplexCplusplusProgramTarget(program) @@\
PROGRAM = ProgramTargetName(program) @@\
@@\
AllTarget(ProgramTargetName(program)) @@\
@@\
CplusplusProgramTargetHelper(program,SRCS,OBJS,DEPLIBS,$(LOCAL_LIBRARIES),NullParameter) @@\
@@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* ComplexCplusplusProgramTarget */
#ifndef UseInstalled
# define LinkBuildDLL(binary) MakeDir($(BUILDBINDIR:/=\)) @@\
RemoveFile(Concat($(BUILDBINDIR:/=\)\,binary)) @@\
cd $(BUILDBINDIR:/=\) && $(LN) Concat($(BUILDBINTOP:/=\)\$(CURRENT_DIR:/=\)\,binary) .
# ifdef LinkBuildBinary
# undef LinkBuildBinary
# endif
# define LinkBuildBinary(binary) @@\
all:: $(BUILDBINDIR)\ProgramTargetName(binary) ProgramTargetName(binary) @@\
@@\
$(BUILDBINDIR)\ProgramTargetName(binary): ProgramTargetName(binary) @@\
MakeDir($(BUILDBINDIR:/=\)) @@\
RemoveFile($(BUILDBINDIR:/=\)\ProgramTargetName(binary))) @@\
cd $(BUILDBINDIR:/=\) && $(LN) $(BUILDBINTOP:/=\)\$(CURRENT_DIR:/=\)\ProgramTargetName(binary) .
# ifdef LinkBuildLibrary
# undef LinkBuildLibrary
# endif
# define LinkBuildLibrary(lib) MakeDir($(BUILDLIBDIR:/=\)) @@\
RemoveFile(Concat($(BUILDLIBDIR:/=\)\,lib)) @@\
cd $(BUILDLIBDIR:/=\) && $(LN) Concat($(BUILDLIBTOP:/=\)\$(CURRENT_DIR:/=\)\,lib) .
#endif
#ifndef ProjectUnsharedLibReferences
#define ProjectUnsharedLibReferences(varname,libname,libsource,buildlibdir) @@\
Concat3(DEP,varname,LIB) = _UseCat($(USRLIBDIR)/lib,buildlibdir/,libname.lib) @@\
Concat(varname,LIB) = $(Concat3(DEP,varname,LIB)) @@\
LintLibReferences(varname,libname,libsource)
#endif
/*
* ServerTargetWithFlags - generate rules to compile, link, and relink a server
*/
#ifndef ServerTargetWithFlags
#define ServerTargetWithFlags(server,subdirs,objects,libs,syslibs,flags) @@\
XVARdef0 = objects @@\
@@\
AllTarget(ProgramTargetName(server)) @@\
ProgramTargetName(server): subdirs $(XVARuse0:.o=.obj) libs @@\
MoveToBakFile($@) @@\
LinkRule($@,$(LDOPTIONS),$(XVARuse0:.o=.obj),libs $(LDLIBS) syslibs) @@\
@@\
Concat(load,server): @@\
MoveToBakFile(ProgramTargetName(server)) @@\
LinkRule(ProgramTargetName(server),$(LDOPTIONS),$(XVARuse0:.o=.obj),libs $(LDLIBS) syslibs) @@\
@@\
loadX:: Concat(load,server) @@\
@@\
ProofProgramTarget(server,subdirs objects libs,objects libs $(LDLIBS) syslibs) @@\
ProofLinkTarget(Concat(load,server),server,objects libs $(LDLIBS) syslibs) @@\
@@\
InstallProgramWithFlags(server,$(BINDIR),flags) @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(server))
#endif /* ServerTargetWithFlags */

View file

@ -1,13 +0,0 @@
XCOMM $XConsortium: WinLib.tmpl /main/3 1996/11/13 14:43:09 lehors $
#define SharedOldXReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedXtReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedXawReqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedXiReqs $(LDPRELIBS) $(XLIB)
#define SharedPexReqs $(LDPRELIBS) $(XLIBONLY) MathLibrary
#define SharedXtstReqs $(LDPRELIBS) $(XLIB)
#define SharedXieReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedSMReqs $(LDPRELIBS) $(ICELIB)
#define SharedXpReqs $(LDPRELIBS) $(XAUTHLIB) $(EXTENSIONLIB) $(XLIBONLY)

View file

@ -1,102 +0,0 @@
XCOMM $TOG: X11.rules /main/4 1997/04/30 15:23:24 kaleb $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define X11IsTopLevelProject YES
#else
# define X11IsTopLevelProject NO
#endif
/*
* If no clues are given assume X11 is in the tree, otherwise
* UseInstalled overrides UseImports. Do not do both.
*/
#ifndef UseInstalledX11
# define UseInstalledX11 NO
#endif
#ifdef UseInstalled
# undef UseInstalledX11
# define UseInstalledX11 YES
#endif
#ifndef ImportX11
# ifdef UseImports
# define ImportX11 YES
# else
# define ImportX11 NO
# endif
#endif
#if UseInstalledX11
# undef ImportX11
# define ImportX11 NO
#endif
#ifdef X11ProjectRoot
# define XUsrLibDirPath $(USRLIBDIR):$(XPROJECTROOT)/lib
#else
# define XUsrLibDirPath $(USRLIBDIR)
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
#endif
#define UsrLibDirPath XUsrLibDirPath
#if ImportX11
# define XLdPreLibs -L$(LIBSRC)
#elif defined(UseInstalledX11) && defined(X11ProjectRoot)
# define XLdPreLibs -L$(XPROJECTROOT)/lib
#else
# define XLdPreLibs /**/
#endif
#ifdef LdPreLibs
# undef LdPreLibs
#endif
#define LdPreLibs LdPreLib XLdPreLibs
#ifdef X11ProjectRoot
# define XLdPostLibs -L$(XPROJECTROOT)/lib
#else
# define XLdPostLibs /**/
#endif
#ifdef LdPostLibs
# undef LdPostLibs
#endif
#define LdPostLibs LdPostLib XLdPostLibs
#if ImportX11
# define TopXInclude -I$(TOP)/imports/x11/include
#elif !UseInstalledX11
# define TopXInclude -I$(TOP)/exports/include
#else
# define TopXInclude -I$(XPROJECTROOT)/include
#endif
#ifdef TopIncludes
# undef TopIncludes
#endif
#define TopIncludes TopInclude $(TOP_X_INCLUDES)
#if UseInstalledX11 && defined(X11ProjectRoot)
# define X11BuildLibPath $(XPROJECTROOT)/lib
#elif UseInstalledX11
# define X11BuildLibPath $(USRLIBDIR)
#elif ImportX11
# define X11BuildLibPath $(XTOP)/lib
#else
# define X11BuildLibPath $(TOP)/exports/lib
#endif
#ifdef SystemBuildLibPath
# define BuildLibPath $(XENVLIBDIR):$(SYSTEMENVLIBDIR)
#else
# define BuildLibPath $(XENVLIBDIR)
#endif
#ifndef X11ProjectDefines
# define X11ProjectDefines /**/
#endif
#define ProjectDefines X11ProjectDefines
#ifndef X11CplusplusProjectDefines
# define X11CplusplusProjectDefines X11ProjectDefines
#endif
#define CplusplusProjectDefines X11CplusplusProjectDefines

File diff suppressed because it is too large Load diff

View file

@ -1,38 +0,0 @@
XCOMM platform: $XConsortium: apollo.cf /main/34 1996/09/28 16:09:07 rws $
/*
* Minimally tested, and only in the bsd4.3 environment. X_NOT_POSIX is not
* in Xosdefs.h, because we suspect someone might want to try building with
* POSIX support in the sysv environment (the OS doc seems to imply that
* POSIX is supported in sysv).
*/
#ifndef OSName
#define OSName Domain/OS SR10.3
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 10
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 3
#endif
#ifndef CCompilerMajorVersion
#define CCompilerMajorVersion 6
#endif
#ifndef CCompilerMinorVersion
#define CCompilerMinorVersion 8
#endif
#define StandardDefines -DX_NOT_POSIX
#define BuildServer NO
#define HasNdbm YES
#define ConnectionFlags -DTCPCONN
#define InstallManPageLong(file,destdir,dest) @@\
install.man:: file.man @@\
MakeDir($(DESTDIR)destdir) @@\
$(NROFF) $(MANMACROS) file.man > file.mantxt @@\
$(INSTALL) -c $(INSTMANFLAGS) file.mantxt $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
$(RM) file.mantxt

View file

@ -1,29 +0,0 @@
XCOMM platform: $XConsortium: bsd.cf /main/24 1996/09/28 16:09:13 rws $
#ifndef OSName
#define OSName 4.3bsd
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 3
#endif
#define BootstrapCFlags -DNOSTDHDRS
#define StandardDefines -DNOSTDHDRS -DCSRG_BASED
#define HasVoidSignalReturn NO
#define HasBsearch NO
#define DirFailPrefix -
#define AvoidNullMakeCommand YES
#define BuildServer NO
#ifdef VaxArchitecture
#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
#endif
#if OSMajorVersion >= 4 && OSMinorVersion >= 3
#define SetTtyGroup YES
#endif

View file

@ -1,93 +0,0 @@
XCOMM $XConsortium: bsdLib.rules /main/3 1996/09/28 16:09:18 rws $
/*
* NetBSD/FreeBSD shared library rules
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef -DBSDSHLIB
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <bsdLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -Bshareable
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fpic
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest
@@\
#endif /* InstallSharedLibrary */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
LinkBuildLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryDataTarget */
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibReferences - variables for shared libraries
*/
#ifndef SharedLibReferences
#define SharedLibReferences(varname,libname,libsource,revname,rev) @@\
revname = rev @@\
Concat3(DEP,varname,LIB) = SharedLibDependencies(libname,libsource,revname) @@\
Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) @@\
LintLibReferences(varname,libname,libsource)
#endif
/*
* SharedDSLibReferences - variables for shared libraries
*/
#ifndef SharedDSLibReferences
#define SharedDSLibReferences(varname,libname,libsource,revname,rev) @@\
revname = rev @@\
Concat3(DEP,varname,LIB) = SharedDSLibDependencies(libname,libsource,revname) @@\
Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) Concat3(Shared,libname,Reqs) @@\
LintLibReferences(varname,libname,libsource)
#endif

View file

@ -1,15 +0,0 @@
XCOMM $XConsortium: bsdLib.tmpl /main/3 1996/09/28 16:09:25 rws $
/*
* NetBSD/FreeBSD shared library template
*/
#ifndef SharedXtReqs
#define SharedXtReqs /**/
#endif
#ifndef SharedXawReqs
#define SharedXawReqs /**/
#endif
#ifndef SharedXmuReqs
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLONLYLIB) $(XONLYLIB)
#endif

View file

@ -1,150 +0,0 @@
XCOMM platform: $XConsortium: bsdi.cf /main/22 1996/09/28 16:09:30 rws $
XCOMM platform: $XFree86: xc/config/cf/bsdi.cf,v 3.19 1995/10/21 11:26:00 dawes Exp $
#ifndef OSName
#define OSName BSD/OS 2.0
#endif
#ifndef OSVendor
#define OSVendor BSDI
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define HasPutenv YES
#define HasBSD44Sockets YES
XCOMM BSD/OS 2.0 comes with gcc 2.6.3 installed as gcc2 and gcc.
XCOMM gcc 1.42 is installed as cc.
XCOMM BSD/386 1.1 comes with gcc 2.5.8 installed as gcc2.
XCOMM gcc 1.42 is installed as cc and gcc.
XCOMM BSD/386 1.0 comes with gcc 1.40 as the only compiler.
XCOMM The default is to use gcc2 on release 2.0 and 1.1 and gcc1 on 1.0
XCOMM The defaults can be altered by defining "HasGcc2" as YES or NO in
XCOMM xf86site.def
#ifndef HasGcc
# define HasGcc YES
#endif
#if OSMajorVersion > 1 || OSMinorVersion >= 1
# ifndef HasGcc2
# define HasGcc2 YES
# endif
#endif
#if HasGcc2
# ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus YES
# endif
# define CcCmd gcc2
# define OptimizedCDebugFlags DefaultGcc2i386Opt -m486
#else
# define CcCmd cc
# define OptimizedCDebugFlags -O
#endif
#define CppCmd /usr/bin/cpp
#define TroffCmd groff -Tps
#define MkdirHierCmd mkdir -p
#define SetTtyGroup YES
#define HasNdbm YES
#define HasWChar32 YES
#define DirFailPrefix -
#define AvoidNullMakeCommand YES
# ifndef GccUsesGas
# define GccUsesGas YES
# endif
#if HasGcc
#if UseInstalled
#define DefaultCCOptions /**/
#else
#define DefaultCCOptions -ansi
#endif
#endif
#if GccUsesGas
# define GccGasOption -DGCCUSESGAS
#else
# define GccGasOption /**/
#endif
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define XFree86ConsoleDefines /**/
#define AsmDefines -DUSE_GAS
#define StandardDefines -DCSRG_BASED
#define InstallCmd /usr/bin/install
#define EqnCmd eqn -Tps
COL = col
NEQN = eqn -Tascii
NROFF = nroff
#define DefaultUserPath :/bin:/usr/bin:/usr/local/bin:$(BINDIR)
#define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
XCOMM Man pages need to be formatted when installed, so override the default
XCOMM imake rules.
#define ManSuffix 1
#define ManSourcePath $(MANPATH)/cat
#define InstallManPageLong(file,destdir,dest) @@\
all:: file.0 @@\
@@\
file.0:: file.man @@\
@if [ -f file.man ]; \ @@\
then \ @@\
cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
cp /tmp/$$$$.man file.0; \ @@\
$(RM) /tmp/$$$$.man; \ @@\
fi @@\
@@\
file.man:: @@\
@@\
install.man:: @@\
MakeDir($(DESTDIR)destdir) @@\
-@if [ -f file.0 ]; \ @@\
then \ @@\
$(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
fi
#define InstallGenManPageLong(file,destdir,dest,suffix) @@\
InstallManPageLong(file,destdir,dest)
#define InstallMultipleManSuffix(list,dest,suff) @@\
install.man:: @@\
MakeDir($(DESTDIR)dest) @@\
case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in list; do \ @@\
(set -x; \ @@\
cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \ @@\
$(RM) /tmp/$$$$.suff); \ @@\
done
#define InstallMultipleMan(list,dest) @@\
InstallMultipleManSuffix(list,dest,man)
#define InstallManPageAliases(file,destdir,aliases) @@\
install.man:: @@\
@case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
for i in aliases; do \ @@\
(set -x; \ @@\
$(RM) $(DESTDIR)destdir/$$i.0;\ @@\
(cd $(DESTDIR)destdir; $(LN) file.0 $$i.0);\ @@\
); \ @@\
done
#define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
InstallManPageAliases(file,destdir,aliases)
/*
* These seem redundant, but leave them in for now.
*/
#define i386Bsd 1
#define i386Bsdi 1
#include <xfree86.cf>

View file

@ -1,226 +0,0 @@
/*
* @OSF_COPYRIGHT@
* COPYRIGHT NOTICE
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group , Inc.
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
* the full copyright text.
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
XCOMM $TOG: cde.rules /main/4 1998/02/06 10:53:52 kaleb $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define CDEIsTopLevelProject YES
#else
# define CDEIsTopLevelProject NO
#endif
/* Include the Motif project rules file. */
#include <Motif.rules>
/* Use the in-tree CDE by default. */
#ifndef UseInstalledCDE
# define UseInstalledCDE NO
#endif
#ifdef UseInstalled
# undef UseInstalledCDE
# define UseInstalledCDE YES
#endif
#ifndef ImportCDE
# ifdef UseImports
# define ImportCDE YES
# else
# define ImportCDE NO
# endif
#endif
#if UseInstalledCDE
# undef ImportCDE
# define ImportCDE NO
#endif
/* If CDE has a different ProjectRoot we need to search the regular ones too. */
#ifdef CDEProjectRoot
# define CUsrLibDirPath Concat(MUsrLibDirPath,:$(CDEPROJECTROOT)/lib)
#else
# define CUsrLibDirPath MUsrLibDirPath
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
#endif
#define UsrLibDirPath CUsrLibDirPath
#if ImportCDE
# define CLdPreLibs -L$(CDELIBSRC)
#elif defined(UseInstalledCDE) && defined(CDEProjectRoot)
# define CLdPreLibs -L$(CDEPROJECTROOT)/lib
#else
# define CLdPreLibs /**/
#endif
#ifdef LdPreLibs
# undef LdPreLibs
#endif
#define LdPreLibs LdPreLib CLdPreLibs MLdPreLibs XLdPreLibs
#ifdef CDEProjectRoot
# define CLdPostLibs -L$(CDEPROJECTROOT)/lib
#else
# define CLdPostLibs /**/
#endif
#ifdef LdPostLibs
# undef LdPostLibs
#endif
#define LdPostLibs LdPostLib CLdPostLibs MLdPostLibs XLdPostLibs
#ifdef TopIncludes
# undef TopIncludes
#endif
#define TopIncludes TopInclude $(TOP_CDE_INCLUDES) $(TOP_MOTIF_INCLUDES) $(TOP_X_INCLUDES)
#if UseInstalledCDE && defined(CDEProjectRoot)
# define CDEBuildLibPath $(CDEPROJECTROOT)/lib
#elif UseInstalledCDE
# define CDEBuildLibPath $(USRLIBDIR)
#elif ImportCDE
# define CDEBuildLibPath $(CDELIBSRC)
#else
# define CDEBuildLibPath $(TOP)/exports/lib
#endif
#ifdef BuildLibPath
# undef BuildLibPath
#endif
#ifdef SystemBuildLibPath
# define BuildLibPath \
$(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR):$(SYSTEMENVLIBDIR)
#else
# define BuildLibPath $(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR)
#endif
#ifndef CdeInstallationTop
# define CdeInstallationTop /usr/dt
#endif
#ifndef CdeConfigurationTop
# define CdeConfigurationTop /etc/dt
#endif
#ifndef CdeLogFilesTop
# define CdeLogFilesTop /var/dt
#endif
#ifndef CdeUserTop
# define CdeUserTop .dt
#endif
#ifndef CdeProjectDefines
# define CdeProjectDefines \
-DANSICPP -DMULTIBYTE -DNLS16 \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion
#endif
#ifdef ProjectDefines
# undef ProjectDefines
#endif
#define ProjectDefines X11ProjectDefines MotifProjectDefines CdeProjectDefines
#ifndef CdeCplusplusProjectDefines
# define CdeCplusplusProjectDefines CdeProjectDefines
#endif
#ifdef CplusplusProjectDefines
# undef CplusplusProjectDefines
#endif
#define CplusplusProjectDefines \
X11CplusplusProjectDefines MotifCplusplusProjectDefines CdeCplusplusProjectDefines
/*
* Doc build rules
*/
/*
* MakeSdlVolume - generate rules to create an SDL volume, in the specified
* directory, from an SGML source doc.
* Note: the volume name must match the directory name.
*/
#ifndef MakeSdlVolume
#define MakeSdlVolume(vol,dir,env,opts,dep) @@\
all:: dir/vol.sdl @@\
@@\
dir/vol.sdl: dep @@\
MakeDir(dir) @@\
env $(DTDOCBOOK) $(DTDOCBOOKOPTIONS) opts -o dir/vol.sdl vol/book.sgm @@\
@@\
clean:: @@\
$(RM) dir/vol.sdl vol/book.log
#endif
/*
* MakeTocFile - generate rules to create an SGML TOC file.
* Note: the volume name must match the directory name.
*/
#ifndef MakeTocFile
#define MakeTocFile(vol,env,opts,ttle,ident,dep) @@\
all:: vol/TOC.sgm @@\
@@\
vol/TOC.sgm: dep @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
@@\
clean:: @@\
$(RM) vol/TOC.sgm
#endif
#ifndef MakeTocFile3
#define MakeTocFile3(vol,env,opts,ttle,ident,dep1,dep2,dep3) @@\
all:: vol/TOC.sgm @@\
@@\
vol/TOC.sgm: dep1 @@\
vol/TOC.sgm: dep2 @@\
vol/TOC.sgm: dep3 @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
@@\
clean:: @@\
$(RM) vol/TOC.sgm
#endif
/*
* TocFileDep - generate TOC file dependency rule
*/
#ifndef TocFileDep
#define TocFileDep(vol,dep) @@\
vol/TOC.sgm: dep
#endif
/*
* MakeInfolib - generate rules to create an infolib.
*/
#ifndef MakeInfolib
#define MakeInfolib(infolib,bkcase,env,opts,dep) @@\
all:: infolib/bkcase/dtsearch/dtsearch.ocf @@\
@@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
MakeDir(infolib) @@\
env $(DTINFOGEN) build -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -l infolib bookcase.bc
#endif
/*
* InfolibDep - generate infolib dependency rule - Highly depending on MMDB!
*/
#ifndef InfolibDep
#define InfolibDep(infolib,bkcase,dep) @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep
#endif
#ifndef InfolibDep3
#define InfolibDep3(infolib,bkcase,dep1,dep2,dep3) @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep1 @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep2 @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep3
#endif

View file

@ -1,441 +0,0 @@
XCOMM $XConsortium: cde.tmpl /main/2 1996/12/04 10:13:09 swick $
/* Include the Motif project template file. */
#include <Motif.tmpl>
#ifndef _CUse
# if UseInstalledCDE
# define _CUse(a,b) a
# else
# define _CUse(a,b) b
# endif
#endif
#ifndef _CUseCat
# if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
# if UseInstalledCDE
# define _CUseCat(a,b,c) a##c
# else
# define _CUseCat(a,b,c) b##c
# endif
# else
# if UseInstalledCDE
# define _CUseCat(a,b,c) a/**/c
# else
# define _CUseCat(a,b,c) b/**/c
# endif
# endif
#endif
#ifndef CDETop
# if ImportCDE
# define CDETop $(TOP)/imports/cde
# else
# define CDETop $(TOP)
# endif
#endif
#ifndef CDESharedRev
#define CDESharedRev 2.1
#endif
#ifndef SharedLibPam
# define SharedLibPam HasSharedLibraries
#endif
#ifndef NormalLibPam
# define NormalLibPam (!SharedLibPam | ForceNormalLib)
#endif
#ifndef DebugLibPam
# define DebugLibPam NO
#endif
#ifndef ProfileLibPam
# define ProfileLibPam NO
#endif
#ifndef SharedPamRev
# define SharedPamRev CDESharedRev
#endif
#ifndef SharedLibTt
# define SharedLibTt HasSharedLibraries
#endif
#ifndef NormalLibTt
# define NormalLibTt (!SharedLibTt | ForceNormalLib)
#endif
#ifndef DebugLibTt
# define DebugLibTt NO
#endif
#ifndef ProfileLibTt
# define ProfileLibTt NO
#endif
#ifndef SharedTtRev
# define SharedTtRev CDESharedRev
#endif
#ifndef SharedLibDtSvc
# define SharedLibDtSvc HasSharedLibraries
#endif
#ifndef NormalLibDtSvc
# define NormalLibDtSvc (!SharedLibDtSvc | ForceNormalLib)
#endif
#ifndef DebugLibDtSvc
# define DebugLibDtSvc NO
#endif
#ifndef ProfileLibDtSvc
# define ProfileLibDtSvc NO
#endif
#ifndef SharedDtSvcRev
# define SharedDtSvcRev CDESharedRev
#endif
#ifndef SharedLibDtSearch
# define SharedLibDtSearch HasSharedLibraries
#endif
#ifndef NormalLibDtSearch
# define NormalLibDtSearch (!SharedLibDtSearch | ForceNormalLib)
#endif
#ifndef DebugLibDtSearch
# define DebugLibDtSearch NO
#endif
#ifndef ProfileLibDtSearch
# define ProfileLibDtSearch NO
#endif
#ifndef SharedDtSearchRev
# define SharedDtSearchRev CDESharedRev
#endif
#ifndef SharedLibDtWidget
# define SharedLibDtWidget HasSharedLibraries
#endif
#ifndef NormalLibDtWidget
# define NormalLibDtWidget (!SharedLibDtWidget | ForceNormalLib)
#endif
#ifndef DebugLibDtWidget
# define DebugLibDtWidget NO
#endif
#ifndef ProfileLibDtWidget
# define ProfileLibDtWidget NO
#endif
#ifndef SharedDtWidgetRev
# define SharedDtWidgetRev CDESharedRev
#endif
#ifndef SharedLibDtHelp
# define SharedLibDtHelp HasSharedLibraries
#endif
#ifndef NormalLibDtHelp
# define NormalLibDtHelp (!SharedLibDtHelp | ForceNormalLib)
#endif
#ifndef DebugLibDtHelp
# define DebugLibDtHelp NO
#endif
#ifndef ProfileLibDtHelp
# define ProfileLibDtHelp NO
#endif
#ifndef SharedDtHelpRev
# define SharedDtHelpRev CDESharedRev
#endif
#ifndef SharedLibDtPrint
# define SharedLibDtPrint HasSharedLibraries
#endif
#ifndef NormalLibDtPrint
# define NormalLibDtPrint (!SharedLibDtPrint | ForceNormalLib)
#endif
#ifndef DebugLibDtPrint
# define DebugLibDtPrint NO
#endif
#ifndef ProfileLibDtPrint
# define ProfileLibDtPrint NO
#endif
#ifndef SharedDtPrintRev
# define SharedDtPrintRev CDESharedRev
#endif
#ifndef SharedLibDtTerm
# define SharedLibDtTerm HasSharedLibraries
#endif
#ifndef NormalLibDtTerm
# define NormalLibDtTerm (!SharedLibDtTerm | ForceNormalLib)
#endif
#ifndef DebugLibDtTerm
# define DebugLibDtTerm NO
#endif
#ifndef ProfileLibDtTerm
# define ProfileLibDtTerm NO
#endif
#ifndef SharedDtTermRev
# define SharedDtTermRev CDESharedRev
#endif
#ifndef SharedLibDtMrm
# define SharedLibDtMrm HasSharedLibraries
#endif
#ifndef NormalLibDtMrm
# define NormalLibDtMrm (!SharedLibDtMrm | ForceNormalLib)
#endif
#ifndef DebugLibDtMrm
# define DebugLibDtMrm NO
#endif
#ifndef ProfileLibDtMrm
# define ProfileLibDtMrm NO
#endif
#ifndef SharedDtMrmRev
# define SharedDtMrmRev CDESharedRev
#endif
#ifndef SharedLibDtMmdb
# define SharedLibDtMmdb HasSharedLibraries
#endif
#ifndef NormalLibDtMmdb
# define NormalLibDtMmdb (!SharedLibDtMmdb | ForceNormalLib)
#endif
#ifndef DebugLibDtMmdb
# define DebugLibDtMmdb NO
#endif
#ifndef ProfileLibDtMmdb
# define ProfileLibDtMmdb NO
#endif
#ifndef SharedDtMmdbRev
# define SharedDtMmdbRev CDESharedRev
#endif
#ifndef SharedLibCsa
# define SharedLibCsa HasSharedLibraries
#endif
#ifndef NormalLibCsa
# define NormalLibCsa (!SharedLibCsa | ForceNormalLib)
#endif
#ifndef DebugLibCsa
# define DebugLibCsa NO
#endif
#ifndef ProfileLibCsa
# define ProfileLibCsa NO
#endif
#ifndef SharedCsaRev
# define SharedCsaRev CDESharedRev
#endif
#ifndef DtLocalesToBuild
#define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 ja_JP.dt-eucJP
#endif
#ifndef DtCodeGen
# if UseInstalledCDE
# define DtCodeGen dtcodegen
# else
# define DtCodeGen $(CLIENTENVSETUP) $(CDESRC)/dtappbuilder/src/abmf/dtcodegen
# endif
#endif
#ifndef BuildCDEDoc
# define BuildCDEDoc YES
#endif
#ifndef UseNSGMLS
# ifdef SunArchitecture
# define UseNSGMLS NO
# else
# define UseNSGMLS YES
# endif
#endif
#ifndef SGMLParser
# if UseNSGMLS
# define SGMLDir $(NSGMLSSRC)
# define SGMLParser $(NSGMLSSRC)/nsgmls
# else
# define SGMLDir $(SGMLSSRC)
# define SGMLParser $(SGMLSSRC)/sgmls
# endif
#endif
#ifndef DtInfoGen
# if UseInstalledCDE
# define DtInfoGen dtinfogen
# else
# define DtInfoGen $(CLIENTENVSETUP) $(DTLCXENVSETUP) DTINFO_HOME=$(DTINFOGENSRC) DTINFO_BIN=$(DTINFOGENSRC)/install:$(DTINFOGENSRC)/mmdb/StyleSheet:$(DTINFOGENSRC)/mmdb/src:SGMLDir:$(CDESRC)/dtsr $(DTINFOGENSRC)/infolib/etc/dtinfogen
# endif
#endif
#ifndef DtInfoGenTmpDir
# define DtInfoGenTmpDir $(TOP)/doc/tmp
#endif
#ifndef DtDocBook
# if UseInstalledCDE
# define DtDocBook dtdocbook
# else
# define DtDocBook $(CLIENTENVSETUP) $(DTLCXENVSETUP) $(CDESRC)/dtdocbook/doc2sdl/dtdocbook
# endif
#endif
#ifndef DtDocBookOptions
# if UseInstalledCDE
# define DtDocBookOptions
# else
# define DtDocBookOptions -t $(CDESRC)/dtdocbook/doc2sdl -H $(HELPTAGPASS2DEF) -I $(CDESRC)/dtdocbook/instant/instant -L $(CDESRC)/dtdocbook/xlate_locale/xlate_locale -S SGMLParser
# endif
#endif
CDETOP = CDETop
#if ImportCDE || UseInstalledCDE
CDEINCLUDESRC = $(CDETOP)/include
#else
CDEINCLUDESRC = $(CDETOP)/exports/include
#endif
TOP_CDE_INCLUDES = -I$(CDEINCLUDESRC)
CDELIBSRC = $(CDETOP)/lib
PAMSRC = $(CDELIBSRC)/pam/libpam
TTSRC = $(CDELIBSRC)/tt
DTSVCSRC = $(CDELIBSRC)/DtSvc
DTSEARCHSRC = $(CDELIBSRC)/DtSearch
DTWIDGETSRC = $(CDELIBSRC)/DtWidget
DTHELPSRC = $(CDELIBSRC)/DtHelp
DTPRINTSRC = $(CDELIBSRC)/DtPrint
DTTERMSRC = $(CDELIBSRC)/DtTerm
DTMRMSRC = $(CDELIBSRC)/DtMrm
DTMMDBSRC = $(CDELIBSRC)/DtMmdb
CSASRC = $(CDELIBSRC)/csa
CDESRC = $(CDETOP)/programs
#ifdef BuildLibPathVar
DTENVLIBDIR = CDEBuildLibPath
#endif
#ifdef CDEProjectRoot
CDEPROJECTROOT = CDEProjectRoot
#endif
CDE_INSTALLATION_TOP = CdeInstallationTop
CDE_CONFIGURATION_TOP = CdeConfigurationTop
CDE_LOGFILES_TOP = CdeLogFilesTop
CDE_USER_TOP = CdeUserTop
DTCODEGEN = DtCodeGen
HELPPARSERSRC = $(CDESRC)/dthelp/parser
HELPTAG = _CUseCat($(BINDIR),$(HELPPARSERSRC)/helptag,/dthelptag)
HELPTAGPASS1DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass1/helptag,/dthelp_htag1)
HELPTAGPASS2DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass2/htag2,/dthelp_htag2)
DTDOCBOOK = DtDocBook
DTDOCBOOKOPTIONS = DtDocBookOptions
#if UseNSGMLS
NSGMLSSRC = $(CDESRC)/nsgmls
#else
SGMLSSRC = $(CDESRC)/dtdocbook/sgmls
#endif
DTINFOGENSRC = $(CDESRC)/dtinfo/dtinfogen
DTINFOGEN = DtInfoGen
DTINFOGENTMPDIR = DtInfoGenTmpDir
#ifdef DtInfoGenOptions
DTINFOGENOPTIONS = DtInfoGenOptions
#endif
#ifdef ArchitectureDefines
ARCHITECTURE_DEFINES = ArchitectureDefines
#endif
#if !UseInstalledCDE
DTLCXENVSETUP = DTLCXSEARCHPATH=$(DTHELPSRC)
#endif
#ifndef TtClientLibs
# define TtClientLibs $(TTLIB) $(XLIB)
#endif
#ifndef TtClientDepLibs
# define TtClientDepLibs $(DEPTTLIB) $(DEPXLIB)
#endif
/* These libraries use UseInstalledCDE instead of UseInstalled. */
#undef _Use
#undef _UseCat
#define _Use _CUse
#define _UseCat _CUseCat
#ifndef CDEBuildLibDir
# define CDEBuildLibDir BuildLibDir
#endif
#if SharedLibPam
SharedLibReferences(PAM,pam,$(PAMSRC),SOPAMREV,SharedPamRev)
#else
ProjectUnsharedLibReferences(PAM,pam,$(PAMSRC),CDEBuildLibDir)
#endif
#if SharedLibTt
SharedLibReferences(TT,tt,$(TTSRC)/lib,SOTTREV,SharedTtRev)
#else
ProjectUnsharedLibReferences(TT,tt,$(TTSRC)/lib,CDEBuildLibDir)
#endif
#if SharedLibDtSvc
SharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),SODTSVCREV,SharedDtSvcRev)
#else
ProjectUnsharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),CDEBuildLibDir)
#endif
#if SharedLibDtSearch
SharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),SODTSEARCHREV,SharedDtSearchRev)
#else
ProjectUnsharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),CDEBuildLibDir)
#endif
#if SharedLibDtWidget
SharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),SODTWIDGETREV,SharedDtWidgetRev)
#else
ProjectUnsharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),CDEBuildLibDir)
#endif
#if SharedLibDtHelp
SharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),SODTHELPREV,SharedDtHelpRev)
#else
ProjectUnsharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),CDEBuildLibDir)
#endif
#if SharedLibDtPrint
SharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),SODTPRINTREV,SharedDtPrintRev)
#else
ProjectUnsharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),CDEBuildLibDir)
#endif
#if SharedLibDtTerm
SharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),SODTTERMREV,SharedDtTermRev)
#else
ProjectUnsharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),CDEBuildLibDir)
#endif
#if SharedLibDtMrm
SharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),SODTMRMREV,SharedDtMrmRev)
#else
ProjectUnsharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),CDEBuildLibDir)
#endif
#if SharedLibDtMmdb
SharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),SODTMMDBREV,SharedDtMmdbRev)
#else
ProjectUnsharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),CDEBuildLibDir)
#endif
#if SharedLibDtCm
SharedLibReferences(DTCM,DtCm,$(DTCMSRC),SODTCMREV,SharedDtCmRev)
#else
ProjectUnsharedLibReferences(DTCM,DtCm,$(DTCMSRC),CDEBuildLibDir)
#endif
#if SharedLibCsa
SharedLibReferences(CSA,csa,$(CSASRC),SOCSAREV,SharedCsaRev)
#else
ProjectUnsharedLibReferences(CSA,csa,$(CSASRC),CDEBuildLibDir)
#endif
/* Revert to the normal library rules. */
#undef _Use
#undef _UseCat
#define _Use _XUse
#define _UseCat _XUseCat
#ifndef DtClientLibs
# define DtClientLibs $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
#endif
#ifndef DepDtClientLibs
# define DepDtClientLibs $(DEPDTPRINTLIB) $(DEPDTHELPLIB) $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef DtClientSysLibs
# define DtClientSysLibs $(DYNLIBSYSLIB) $(ICONVSYSLIB) $(REGEXSYSLIB) -lm
#endif
#ifndef DtClientExtraLibs
# define DtClientExtraLibs /**/
#endif

View file

@ -1,102 +0,0 @@
XCOMM platform: $XConsortium: convex.cf /main/4 1996/09/28 16:09:50 rws $
#ifndef OSName
#define OSName ConvexOS V9.0
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 9
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef VersionNumber
#define VersionNumber 0.0.0.0
#endif
#define BootstrapCFlags -tm c1
#define SetTtyGroup YES
#define BuildServer NO
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DCOVUENETCONN
#define InstallXdmConfig YES
#define XdmDir $(LIBDIR)/xdm-sample
#define XdmServersType fs /* one tab here */
#define HasXmWidgets NO
#define InstKmemFlags -g kmem -m 2711 -v $(VERSION)
#define InstScriptFlags -m 0755 -g bin
#define InstManFlags -m 0444 -g bin
#define DefaultCCOptions -fn -tm c1
#define LibraryCCOptions -fx -tm c1
#define StripFlags -r -x
#define HasSecureOS YES
#define BuildExamples YES
#define BuildMotif NO
#define BuildConvexClients YES
#define MotifBC YES
#define UilCommand uil
#define ExampleDir $(LIBDIR)/examples
#define UnSupDir $(LIBDIR)/unsupported
#define BuildTestExt YES
#define DefaultScreenSaverTime 0
#if BuildTestExt
#define TestDefines -DXTESTEXT1
#else
#define TestDefines /**/
#endif
#define ExtensionOSDefines TestDefines
VERSION = VersionNumber
UIL = UilCommand
UNSUPDIR = UnSupDir /* unsupported examples and code */
/*
* _Use - makes a choice based on UseInstalled.
*/
#ifndef _Use
#ifdef UseInstalled
#define _Use(a,b) a
#else
#define _Use(a,b) b
#endif
#endif
/*
* _UseCat - combination of _Use and Concat.
* exists to avoid problems with some preprocessors
*/
#ifndef _UseCat
#if (defined(__STDC__) || (defined(__convex__) && defined(__stdc__)))
&& !defined(UnixCpp)
#ifdef UseInstalled
#define _UseCat(a,b,c) a##c
#else
#define _UseCat(a,b,c) b##c
#endif
#else
#ifdef UseInstalled
#define _UseCat(a,b,c) a/**/c
#else
#define _UseCat(a,b,c) b/**/c
#endif
#endif
#endif
#if HasXmWidgets
MRESOURCESRC = $(LIBSRC)/Mrm
DEPMRESOURCELIB = _UseCat($(USRLIBDIR),$(MRESOURCESRC),/libMrm.a)
MRESOURCELIB = LoaderLibPrefix _Use(-lMrm,$(DEPMRESOURCELIB))
LINTMRESOURCELIB= _UseCat($(LINTLIBDIR),$(MRESOURCESRC),/llib-lMrm.ln)
XMLIBSRC = $(LIBSRC)/Xm
DEPXMLIB = _UseCat($(USRLIBDIR),$(XMLIBSRC),/libXm.a)
XMLIB = LoaderLibPrefix _Use(-lXm,$(DEPXMLIB))
LINTXMLIB = _UseCat($(LINTLIBDIR),$(XMLIBSRC),/llib-lXm.ln)
UILLIBSRC = $(LIBSRC)/uil
DEPUILLIB = _UseCat($(USRLIBDIR),$(UILLIBSRC),/libUil.a)
UILLIB = LoaderLibPrefix _Use(-lUil,$(DEPUILLIB))
LINTUILLIB = _UseCat($(LINTLIBDIR),$(UILLIBSRC),/llib-lUil.ln)
#endif

View file

@ -1,50 +0,0 @@
XCOMM platform: $XConsortium: cray.cf /main/52 1996/09/28 16:09:55 rws $
#ifndef OSName
#define OSName UNICOS 8.0
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 8
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define SystemV YES
#define Malloc0ReturnsNull YES
#define RemoveTargetProgramByMoving YES
#define ArCmd bld cr
#define StandardDefines -DSYSV -DUSG
#define ExecableScripts NO
#define HasPoll NO
#define HasXServer NO
#define ConnectionFlags -DTCPCONN
#define HasShm NO
#define PexNativeFPFormat PEXCRAY_Floating
#define NativeFPFormat CRAY_Float
#ifdef UseInstalled
#define InstallCmd install
#else
#define InstallCmd $(SHELL) $(CONFIGSRC)/util/install.sh
#endif
#ifdef _CRAY2
#define DefaultCCOptions -hpagelm -hlimitlm
#endif
#if OSMajorVersion >= 6
#define PreProcessCmd /lib/pcpp
#define CppCmd /lib/pcpp
#else
# if OSMajorVersion == 5
# define PreProcessCmd /lib/cpp
# define CppCmd /lib/cpp
# define ExtraLoadFlags -lnet
# endif
#endif
/* XKB library code does not work here yet */
#define BuildXKBlib NO
#define MotifDefines -DNO_REGEX -DNO_REGCOMP

View file

@ -1,95 +0,0 @@
XCOMM platform: $TOG: fujitsu.cf /main/9 1997/04/17 14:11:44 barstow $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion)
#define PatheticCpp YES
#ifdef SparcArchitecture
#define BootstrapCFlags -D__uxp__
#define StandardDefines -D__uxp__ -DSVR4 -DANSICPP
#define StandardCppDefines -D__uxp__ -DSVR4 -DANSICPP
#define CppCmd /usr/ccs/lib/cpp
#ifndef ArCmdBase
# define ArCmdBase /usr/ccs/bin/ar
#endif
#ifndef AsCmd
# define AsCmd /usr/ccs/bin/as
#endif
#ifndef CcCmd
# define CcCmd /usr/ccs/bin/cc
#endif
#ifndef CplusplusCmd
# define CplusplusCmd /opt/uxpcplus/bin/CC
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /opt/uxpcplus/bin/c++filt
#endif
#ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/opt/uxpcplus/include/CC
#endif
#ifndef LdCmd
# define LdCmd /usr/ccs/bin/ld
#endif
#ifndef LexCmd
# define LexCmd /usr/ccs/bin/lex
#endif
#ifndef YaccCmd
# define YaccCmd /usr/ccs/bin/yacc
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#define SystemV4 YES
#define HasSockets YES
#define DBMLibrary /* ndbm modules are in -lc */
#define HasNdbm YES
#ifndef HasLdRunPath
#define HasLdRunPath YES
#endif
#define BuildServer NO
#include <sv4Lib.rules>
#endif
#ifdef mc68000Architecture
#define BootstrapCFlags -D__sxg__
#define StandardDefines -D__sxg__ -DSYSV -DUSG -DNOSTDHDRS -I/usr/xwin/include
#define StandardCppDefines -D__sxg__ -DSYSV -DUSG -DNOSTDHDRS -I/usr/xwin/include
#define LnCmd ln
#define DoRanlibCmd NO
#define DefaultCCOptions +Z384
#define ExtraLibraries -lXbsd -lsocket -lu
#define TermcapLibrary -lcurses
#define BuildServer NO
#define HasSymLinks NO
#define HasVFork NO
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
#define GencatFlags -m
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP -DHAVE_PTMS
#define DtSearchDefines -DI18N_MSG DtSvcDefines -DNEED_STRCASECMP
#define DtWidgetDefines DtSearchDefines
#define ArchitectureDefines -DUXP_ARCHITECTURE
#define CdeProjectDefines \
-DMULTIBYTE -DNLS16 \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion

View file

@ -1,21 +0,0 @@
XCOMM platform: $XConsortium: generic.cf /main/8 1996/09/28 16:10:06 rws $
#ifndef OSName
#define OSName Unknown Operating System
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 0
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifdef SYSV
#define SystemV YES
#endif
#ifdef SVR4
#define SystemV4 YES
#endif
#define BuildServer NO

View file

@ -1,211 +0,0 @@
XCOMM platform: $TOG: hp.cf /main/88 1997/11/12 07:16:22 kaleb $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
/* The default yacc options are too small for Uil.y. */
#define YaccFlags -Nm15000
/*
* C++ compiler setup. This file knows what options to use with
* certain compilers, including HP C++ and CenterLine C++.
*
* For HP C++, define HasHPCplusplus to YES in site.def.
* For CenterLine C++, define HasCenterLineCplusplus 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.
*/
#if HasHPCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef DefaultCplusplusOptions
# define DefaultCplusplusOptions -Aa
# endif
# ifndef CplusplusOptions
# define CplusplusOptions -Aa
# endif
# ifndef CplusplusCmd
# define CplusplusCmd /opt/CC/bin/CC
# endif
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/opt/CC/include/CC
# endif
#endif
#ifndef CcCmd
# define CcCmd /opt/ansic/bin/cc
#endif
#ifndef YaccCmd
# define YaccCmd /opt/langtools/bin/yacc
#endif
#ifndef LexCmd
# define LexCmd /opt/langtools/bin/lex
#endif
#ifndef LintCmd
# define LintCmd /opt/ansic/bin/lint
#endif
#if HasCenterLineCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef OptimizedCplusplusDebugFlags
# define OptimizedCplusplusDebugFlags -O
# endif
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/usr/local/CenterLine/clc++/pa-hpux8/incl
# endif
#endif
#define SystemV YES
#define Malloc0ReturnsNull YES
#if OSMajorVersion > 9
# define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#else
# define AllocateLocalDefines -DNO_ALLOCA
#endif
#ifdef __hp9000s800
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags +O1
# endif
# ifndef DefaultCCOptions
# define DefaultCCOptions -Ae +ESlit
# endif
# ifndef SharedLibraryCCOptions
# define SharedLibraryCCOptions -Ae
# endif
# define StandardDefines -Dhpux -DSYSV
# define ServerExtraDefines -DXOS -DBSTORE -DSOFTWARE_CURSOR -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE AllocateLocalDefines
# if OSMajorVersion > 9
# include <hpLib.rules>
# endif
#else /* __hp9000s800 */
# define StandardDefines -Dhpux -DSYSV
# if OSMajorVersion < 8
# define DefaultCCOptions -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
# define PexCCOptions -Wp,-H150000 -Wc,-Nd4000,-Ns8100,-Ne700,-Np200
# else
# define OptimizedCDebugFlags +O1
# define PexCCOptions -Wp,-H250000
# endif
# define PexShmIPC NO
# define LintOpts -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
#endif
#define MvCmd mv -f
#define LdCombineFlags -r
#define ExecableScripts YES
#define HasVFork YES
#define HasPoll YES
#define RemoveTargetProgramByMoving YES
#define ExpandManNames YES
#define HasPutenv YES
#define HasNdbm YES
#define DBMLibrary /usr/lib/libdbm.a
#define PrimaryScreenResolution 91
#define ExtensionOSDefines -DHPINPUT -DXTESTEXT1
#define XhpServer YES
#define ServerExtraSysLibs -ldld
#ifndef BuildXInputExt
# define BuildXInputExt YES
#endif
#define HPFastScrolling YES
#ifndef BuildServer
# define BuildServer __hp9000s700
#endif
#if OSMajorVersion < 10
#define NeedBerklib (BuildServer|BuildFontServer)
#endif
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
# define ConnectionFlags -DTCPCONN /* no unix sockets */
#endif
#if OSMajorVersion > 8
#define HasWChar32 YES
#define HasPlugin YES
#endif
#ifdef __hp9000s300
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s300 -Dhp9000s300
# endif
#elif defined(__hp9000s700)
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s800 -Dhp9000s800 -D__hp9000s700
# endif
#else
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s800 -Dhp9000s800
# endif
#endif
#ifndef OsDefines
# if OSMajorVersion > 9
# define OsDefines -DhpV4 -DHPUX
# else
# define OsDefines -DHPUX
# endif
#endif
#if OSMajorVersion > 9
# if ThreadedX
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
# endif
# define CppCmd /opt/langtools/lbin/cpp
#endif
/* CC does not recognize -Ae, and has a different meaning for +e. */
/* +e also confuses cpp. */
#define AnsiDefines -Ae -D_HPUX_SOURCE
#define CplusplusAnsiDefines -Aa -D_HPUX_SOURCE
#define BuildLibPathVar SHLIB_PATH
#define CdeBaseProjectDefines \
-DNLS16 -DMALLOC_0_RETURNS_NULL -DMERGE -D__hpux \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion \
CompatabilityDefines OsDefines
#define CdeProjectDefines CdeBaseProjectDefines AnsiDefines
#define CdeCplusplusProjectDefines \
CdeBaseProjectDefines CplusplusAnsiDefines
#define DtSvcDefines -DMULTIBYTE -DMESSAGE_CAT
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
#if OSMajorVersion > 9
#define DtMailDefines \
-DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\"
#else
#define DtMailDefines \
-DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/usr/mail/%s\"
#endif
#define ArchitectureDefines -DHP_ARCHITECTURE
#define ExportListGenSource elistgen.hp

View file

@ -1,119 +0,0 @@
XCOMM $XConsortium: hpLib.rules /main/16 1996/12/04 11:44:35 swick $
/*
* HP shared library rules
*/
#ifndef HasSharedLibraries
# define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
# define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
# define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
# define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
# define ShLibIncludeFile <hpLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -b
#endif
#ifndef PositionIndependentCFlags
# define PositionIndependentCFlags +z
#endif
#ifndef LargePositionIndependentCFlags
# define LargePositionIndependentCFlags +Z
#endif
#ifndef InstLibFlags
# define InstLibFlags -m 0555
#endif
#ifndef UseInstalled
/* assert: LdPostLib pulls in -L$(USRLIBDIR), so it doesn't need to be here */
# define ExtraLoadFlags -Wl,+s -Wl,+b$(USRLIBDIRPATH)
#endif
#ifndef UseExportLists
# define UseExportLists YES
#endif
/* Pre-linking shared libraries is supported in HP/UX 10. */
#if OSMajorVersion > 9
# define HPRequiredLibs $(LDPRELIBS) $(REQUIREDLIBS) +s +b $(USRLIBDIRPATH)
#else
# define HPRequiredLibs $(REQUIREDLIBS)
#endif
#ifndef LinkWithExports
# if UseExportLists
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs) @@\
if [ -f Concat(lib,libname.elist) ]; then \ @@\
RemoveFiles($@.exports $@.list); \ @@\
$(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@.list; \ @@\
$(EXPORTLISTGEN) $@~ $@.list > $@.exports; \ @@\
(cd down; $(LD) -c up/$@.exports -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs); \ @@\
RemoveFiles($@.exports $@.list); \ @@\
fi
# else
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs)
# endif
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
# define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.sl.rev) @@\
MakeDir($(DESTDIR)dest) @@\
RMoveToBakFile(Concat($(DESTDIR)dest/lib,libname.sl.rev)) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sl.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.sl) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.sl.rev) Concat(lib,libname.sl) @@\
-RemoveFile(Concat(lib,libname.sl.rev.bak))
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
# define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
-RemoveFiles($@ $@.bak) @@\
MoveToBakFile($@) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
# define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */

View file

@ -1,37 +0,0 @@
XCOMM $XConsortium: hpLib.tmpl /main/10 1996/12/04 11:57:22 swick $
/*
* HP shared library template
*/
#define SharedThreadReqs /**/
#define SharedOldXReqs $(XLIBONLY)
#define SharedX11Reqs SharedThreadReqs
#define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs
#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuReqs $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(XLIBONLY)
#define SharedXiReqs $(XLIB)
#define SharedPexReqs $(XLIBONLY) MathLibrary
#define SharedXtstReqs $(XLIB)
#define SharedXieReqs $(XLIBONLY)
#define SharedSMReqs $(ICELIB)
#define SharedXpReqs $(XLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs
#define SharedXmReqs SharedXReqs
#define SharedMrmReqs $(XMLIB) SharedXReqs
#define SharedUilReqs $(MRESOURCELIB) $(XMLIB) SharedXReqs
/* #define SharedPamReqs */
#define SharedTtReqs $(XTOOLLIB) $(XLIB) SharedThreadReqs $(CXXLIB)
#define SharedDtSvcReqs $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtMmdbReqs $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtSearchReqs -lm
#define SharedDtWidgetReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtHelpReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
#define SharedDtPrintReqs $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtTermReqs $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMrmReqs $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMailReqs $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedCsaReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm

View file

@ -1,167 +0,0 @@
XCOMM platform: $TOG: ibm.cf /main/82 1998/02/26 17:03:51 kaleb $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# ifdef DefaultOSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
# elif (OSMajorVersion == 4) && (OSMinorVersion == 1)
# define OSTeenyVersion 3
# else
# define OSTeenyVersion 0
# endif
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
#if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion >= 2)
#define HasBSD44Sockets YES
#define HasPutenv YES
#define HasPlugin YES
/*
* If you do not have threads support installed, put
* #define HasPosixThreads NO
* in the BeforeVendorCF section of your site.def.
*/
#if !defined(HasPosixThreads) && ((OSMajorVersion == 3 && (OSMinorVersion > 2 || (OSMinorVersion == 2 && OSTeenyVersion > 4))) || (OSMajorVersion == 4 && (OSMinorVersion > 1 || (OSMinorVersion == 1 && OSTeenyVersion > 1))))
#define HasPosixThreads YES
#endif
#if HasPosixThreads
#ifndef ThreadedX
#define ThreadedX YES
#define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
#endif
#endif
#endif /* OS > 3.2 */
/*
* For IBM platforms, we must define both the location of the compiler
* and the location of its standard C++ library. The library location
* is needed to resolve dependent library symbols if we build our own
* C++ shared libraries.
*/
#if !HasGcc2ForCplusplus
# ifndef CplusplusCmd
# if ThreadedX
# define CplusplusCmd xlC_r
# else
# define CplusplusCmd xlC
# endif
# endif
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /usr/lpp/xlC/bin/c++filt
#endif
#ifndef CplusplusLibC
# if ThreadedX
# define CplusplusLibC /usr/lpp/xlC/lib/libC.a
# else
# define CplusplusLibC /usr/lpp/xlC/lib/libC_r.a
# endif
#endif
#if !HasGcc2ForCplusplus
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/usr/lpp/xlC/include
# endif
#endif
/*
* IBM's xlC refuses to compile files unless their names end in ".C".
* As an alternative to this fix, one could edit /etc/xlC.cfg
* to change the suffix accepted by the compiler, but we prefer not
* requiring users to reconfigure their C++ compilers to make them work.
* We also have to override the default SUFFIXES to defeat the use of
* the builtin .C -> .o file, which doesn't use the right flags.
*/
.SUFFIXES:
.SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
#define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
$(CXX) -c $(CXXFLAGS) options $*.C
#define SpecialCplusplusObjectRule(baseobj,basedep,options) @@\
baseobj.Osuf: basedep.CCsuf @@\
test -r basedep.C || $(LN) basedep.CCsuf basedep.C @@\
$(CXX) -c $(CXXFLAGS) options basedep.C
#define BuildLibPathVar LIBPATH
#define SystemV YES
#define LdCombineFlags -r
#define ExecableScripts YES
#define Malloc0ReturnsNull YES
#define CppCmd /usr/ccs/lib/cpp
#define ExpandManNames YES
#define ExtensionOSDefines -DXTESTEXT1
/* IBM cpp has slightly non-standard line directives, but supports -P */
#define CppNoLineInfoOption -P
#if OSMajorVersion > 3
#define StandardDefines -DSYSV -DAIXV3 -DAIXV4 -D_ALL_SOURCE
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#define ServerExtraDefines -D_IBM_LFT
#if ThreadedX
#define CcCmd xlc_r
#else
#define CcCmd xlc
#endif
#define SystemMTDefines /* xlc_r defines -D_THREAD_SAFE */
#define ThreadsLibraries -lpthreads /* xlc_r does -lc_r */
#define ThreadsCplusplusLibraries -lpthreads
#define AvoidNullMakeCommand YES
#define NullMakeCommand @ echo
/* AIX 4 appends all MAKEFLAGS (even dups), so cannot pass on command line. */
#define ConstructMFLAGS NO
#define LdPreLib _Use(-L$(USRLIBDIR),-L$(BUILDLIBDIR))
#define ExtraFilesToClean *.inp
#else /* OSMajorVersion < 4 */
#define StandardDefines -DSYSV -DAIXV3 -D_ALL_SOURCE
#define ServerExtraDefines -D_IBM_HFT
#define CcCmd xlc
#define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
#define SystemMTDefines -D_THREAD_SAFE
#define ThreadsLibraries -lpthreads -lc_r
#endif /* OSMajorVersion */
#define OPERATING_SYSTEM AIX /* directory name under server/ddx/ibm/ */
#define InstallCmd /usr/ucb/install
#include <ibmLib.rules>
#ifndef ManKeywordsTarget
#define ManKeywordsTarget(manpath) @@\
man_keywords:: @@\
/usr/lib/makewhatis $(DESTDIR)manpath
#endif
#define DtMailDefines \
-DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H \
-DBIG_ENDIAN -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
#define ArchitectureDefines -DIBM_ARCHITECTURE
#define ExportListGenSource elistgen.ibm
#define CdeProjectDefines \
-D_AIX -D__AIX -D__aix -D_aix -Daix -DMULTIBYTE -DNLS16 -DMESSAGE_CAT \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion -DAIX
/*
* -D__STR31__ disables inlining of memcpy to work around optimization bug
* in XLC v1.2.0.7. Bug report filed as PMR 8X196, branch 060.
*/
#ifndef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O -D__STR31__ -DNDEBUG
#endif
#define CdeTicDefines -DHAS_KNL -DHAS_KTAB

View file

@ -1,204 +0,0 @@
XCOMM $XConsortium: ibmLib.rules /main/15 1996/12/30 16:06:05 kaleb $
/*
* AIX shared library rules
*/
#ifndef HasSharedLibraries
# define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
# define ForceNormalLib NO
#endif
#ifndef SharedDataSeparation
# define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
# define SharedCodeDef -DSHAREDCODE
#endif
#ifndef SharedLibraryDef
# define SharedLibraryDef -DAIXSHLIB
#endif
#ifndef ShLibIncludeFile
# define ShLibIncludeFile <ibmLib.tmpl>
#endif
#ifndef PositionIndependentCFlags
# define PositionIndependentCFlags -bM\:SRE
#endif
#ifndef ExtraLoadFlags
# define ExtraLoadFlags -bnodelcsect
#endif
#if !defined(LdPostLib) && !defined(UseInstalled) && OSMajorVersion > 3
# if ThreadedX
# define LdPostLib -blibpath:$(USRLIBDIRPATH):/usr/lib/threads:/usr/lib:/lib
# else
# define LdPostLib -blibpath:$(USRLIBDIRPATH):/usr/lib:/lib
# endif
# define SharedLibPostRef $(LDPOSTLIBS)
#endif
#ifndef SharedLibPostRef
# define SharedLibPostRef $(LDPOSTLIBS)
#endif
#if ThreadedX
# define BaseShLibReqs -lc_r -lm
#else
# define BaseShLibReqs -lc -lm
#endif
#ifndef UseExportLists
# define UseExportLists YES
#endif
/*
* MakeExportList - generate an export list file for linking libraries.
*/
#ifndef MakeExportList
# if UseExportLists
# define MakeExportList(libname,result) \
@-RemoveFile(result) @@\
case ,$(SHR4OBJLIBS), in *,libname,*) shr4obj=shr4.o;; esac &&\ @@\
echo "#! $@ ($${shr4obj:-shr.o})" > result @@\
if [ -f Concat(lib,libname.elist) ]; then \ @@\
$(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic > $@.list; \ @@\
$(EXPORTLISTGEN) $@~ $@.list >> result; \ @@\
RemoveFile($@.list); \ @@\
else \ @@\
dump -g $@~ | sed -n -e 's/^[ ]*[0-9][0-9]*[ ]*\([^ .][^ ]*\)$$/\1/p' >> result; \ @@\
fi;
# else
# define MakeExportList(libname,result) \
@-RemoveFile(result) @@\
case ,$(SHR4OBJLIBS), in *,libname,*) shr4obj=shr4.o;; esac &&\ @@\
echo "#! $@ ($${shr4obj:-shr.o})" > result @@\
dump -g $@~ | sed -n -e 's/^[ ]*[0-9][0-9]*[ ]*\([^ .][^ ]*\)$$/\1/p' >> result;
# endif
#endif /* MakeExportList */
#if !defined(UseInstalled) && !defined(UseInstalledX11) \
&& !defined(UseImports) && !defined(ImportX11)
/* we want this to be defined only when building X */
# if OSMajorVersion < 4
/*
* SharedDSLibReferences - variables for shared libraries
*/
# ifndef SharedLibReferences
# define SharedLibReferences(varname,libname,libsource,revname,rev) @@\
Concat3(DEP,varname,LIB) = /**/ @@\
Concat(varname,LIB) = _Use(Concat(-l,libname),Concat(libsource/lib,libname.a)) @@\
LintLibReferences(varname,libname,libsource)
# endif
# else
# ifndef SharedLibReferences
# define SharedLibReferences(varname,libname,libsource,revname,rev) @@\
Concat3(DEP,varname,LIB) = /**/ @@\
Concat(varname,LIB) = _Use(Concat(-l,libname),Concat($(BUILDLIBDIR),/libname.imp) Concat3($(BUILDLIBDIR),/lib,libname.a)) @@\
LintLibReferences(varname,libname,libsource)
# endif
# endif
/*
* SharedDSLibReferences - variables for shared libraries
*/
# ifndef SharedDSLibReferences
# define SharedDSLibReferences(varname,libname,libsource,revname,rev) @@\
SharedLibReferences(varname,libname,libsource,revname,rev)
# endif
# if OSMajorVersion == 4
/*
* UnsharedLibReferences - variables for unshared libraries
*/
# ifndef UnsharedLibReferences
# define UnsharedLibReferences(varname,libname,libsource) @@\
Concat3(DEP,varname,LIB) = _UseCat($(USRLIBDIR)/lib,$(BUILDLIBDIR)/lib,libname.a) @@\
Concat(varname,LIB) = _Use(Concat(-l,libname),Concat($(BUILDLIBDIR)/lib,libname.a)) @@\
LintLibReferences(varname,libname,libsource)
# endif
# endif
#endif /* !defined(UseInstalled) && !defined(UseInstalledX11) ... */
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
# define InstallSharedLibrary(libname,rev,dest) @@\
InstallLibrary(libname,dest)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
# define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that the we do not hose people by having
* the library gone for long periods.
*
* IBM uses an unusual shared object file name (shr4.o) in some libraries.
* Duplicate this behavior to preserve compatibility with IBM's libraries.
*/
#if OSMajorVersion < 4
# ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ shr.o shr4.o @@\
(cd down; $(AR) up/$@~ solist) @@\
dump -g $@~ | sed -n -e 's/^[ ]*[0-9][0-9]*[ ]*\([^ .][^ ]*\)$$/\1/p' > $@.syms @@\
$(LD) -o shr.o $@~ -H512 -T512 -bM\:SRE -bE\:$@.syms $(REQUIREDLIBS) BaseShLibReqs SharedLibPostRef @@\
$(LN) shr.o shr4.o @@\
$(RM) $@~ @@\
case ,$(SHR4OBJLIBS), in *,libname,*) shr4obj=shr4.o;; esac &&\ @@\
$(AR) $@~ $${shr4obj} shr.o $(UNSHAREDOBJS) @@\
$(RM) $@.syms $@ shr.o shr4.o @@\
$(MV) $@~ $@ @@\
LinkBuildLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.a)
# endif /* SharedLibraryTarget */
#else /* OSMajorVersion >= 4 */
# ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.a)) @@\
@@\
Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\
RemoveFiles($@~ shr.o shr4.o) @@\
(cd down; $(AR) up/$@~ solist) @@\
MakeExportList(libname,libname.imp) @@\
$(LD) -o shr.o $@~ -H512 -T512 -bM\:SRE -bE\:libname.imp -bnoentry $(REQUIREDLIBS) BaseShLibReqs $(LDPOSTLIBS) @@\
$(LN) shr.o shr4.o @@\
RemoveFile($@~) @@\
case ,$(SHR4OBJLIBS), in *,libname,*) shr4obj=shr4.o;; esac &&\ @@\
$(AR) $@~ $${shr4obj} shr.o $(UNSHAREDOBJS) @@\
RemoveFile($@) @@\
$(MV) $@~ $@ @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(libname.imp) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.a)
# endif /* SharedLibraryTarget */
#endif
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
# define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */

View file

@ -1,76 +0,0 @@
XCOMM $XConsortium: ibmLib.tmpl /main/21 1996/12/04 12:21:49 swick $
/*
* AIX shared library template
*/
/*
* IBM used an unusual shared object file name in some librares.
* Mimic this behavior to preserve compatibility with IBM's libraries.
*/
#ifndef IBMShr4Compatibility
#define IBMShr4Compatibility YES
#endif
/*
* Imake thinks lines with colons are the result of a broken cpp
* inserting extra leading whitespace, so use ',' as a separator.
*/
#if IBMShr4Compatibility
SHR4OBJLIBS = X11,Xt,oldX,Xm,Mrm,Uil
#endif
#if ThreadedX
#define SharedThreadReqs -lpthreads
#define SharedX11Reqs -lpthreads
#else
#define SharedThreadReqs /**/
#endif
#define SharedXextReqs $(XLIBONLY)
#define SharedXmuReqs $(XTOOLLIB) $(XLIB)
#define SharedOldXReqs $(XLIBONLY)
#define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs
#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXiReqs $(XLIB)
#define SharedXtstReqs $(XLIB)
#define SharedPexReqs $(XLIBONLY)
#define SharedXieReqs $(XLIBONLY)
#define SharedSMReqs $(ICELIB)
#define SharedXpReqs $(XLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs
#define SharedXmReqs $(LDPRELIBS) SharedXReqs
#define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs
/* #define SharedPamReqs */
#define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#define SharedDtSvcReqs $(LDPRELIBS) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtSearchReqs $(LDPRELIBS) -lisode
#define SharedDtWidgetReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs
#define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv
#define SharedDtPrintReqs $(LDPRELIBS) $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs
#define SharedDtTermReqs $(LDPRELIBS) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv -lm
#define SharedDtMrmReqs $(LDPRELIBS) $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs
#define SharedCsaReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs
#if !defined(UseInstalled) && !defined(UseInstalledX11) \
&& !defined(UseImports) && !defined(ImportX11)
/* we want this to be defined only when building X */
# ifndef FixupLibReferences
# define FixupLibReferences() @@\
DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
# endif
#endif
/* The inbuf paramter to iconv(3) is "const char**", not "char **" */
ICONV_INBUF_DEFINE = -DICONV_INBUF_CONST
ICONVSYSLIB = -liconv
#if (OSMajorVersion > 4) || ((OSMajorVersion == 4) && (OSMinorVersion >= 2))
DYNLIBSYSLIB = -ldl
#endif

View file

@ -1,210 +0,0 @@
XCOMM platform: $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
#ifndef LinuxDistribution
#define LinuxDistribution DefaultLinuxDistribution
/*
Add "#define LinuxDistribution Linux<mumble>" to your site.def or host.def.
Currently only LinuxSuSE will be figured out automatically.
Valid values are (from the list at www.linux.org in Oct. '97):
LinuxUnknown (0)
LinuxSuSE (1)
LinuxCaldera (2)
LinuxCraftworks (3)
LinuxDebian (4)
LinuxInfoMagic (5)
LinuxKheops (6)
LinuxPro (7)
LinuxRedHat (8)
LinuxSlackware (9)
LinuxTurbo (10)
LinuxWare (11)
LinuxYggdrasil (12)
*/
#endif
#ifndef LinuxCLibMajorVersion
#define LinuxCLibMajorVersion DefaultLinuxCLibMajorVersion
#endif
#ifndef LinuxCLibMinorVersion
#define LinuxCLibMinorVersion DefaultLinuxCLibMinorVersion
#endif
#ifndef LinuxCLibTeenyVersion
#define LinuxCLibTeenyVersion DefaultLinuxCLibTeenyVersion
#endif
#ifndef LinuxBinUtilsMajorVersion
#define LinuxBinUtilsMajorVersion DefaultLinuxBinUtilsMajorVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
XCOMM libc: (LinuxCLibMajorVersion./**/LinuxCLibMinorVersion./**/LinuxCLibTeenyVersion)
XCOMM binutils: (LinuxBinUtilsMajorVersion)
#ifndef UseElfFormat
#if OSMajorVersion > 1 || (OSMajorVersion == 1 && OSMinorVersion > 1)
#define UseElfFormat YES
#else
#define UseElfFormat NO
#endif
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#define HasGcc YES
#define HasGcc2 YES
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasShadowPasswd NO
#define HasPutenv YES
#define HasShm YES
#define HasSockets YES
#if (LinuxDistribution == LinuxRedHat)
#define HasZlib YES
#endif
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
#define Malloc0ReturnsNull YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define SetTtyGroup YES
#if UseElfFormat
#if OSMajorVersion == 1 && OSMinorVersion < 2
#define CcCmd gcc -b i486-linuxelf
#define CplusplusCmd g++ -b i486-linuxelf
#define AsCmd /usr/i486-linuxelf/bin/as
#define LdCmd ld -m elf_i386
#else
#define CcCmd gcc
#define CplusplusCmd g++
#define AsCmd as
#define LdCmd ld
#endif
#define AsmDefines -D__ELF__
#else
#define CcCmd gcc
#if OSMajorVersion == 1 && OSMinorVersion > 1
#define AsCmd /usr/i486-linuxaout/bin/as
#define LdCmd ld -m i386linux
#else
#define AsCmd as
#define LdCmd ld
#endif
#define AsmDefines -DUSE_GAS -U__ELF__
#endif
#define MkdirHierCmd mkdir -p
#define CppCmd /lib/cpp
#if OSMajorVersion >= 2
#define YaccCmd yacc
#else
#define YaccCmd bison -y
#endif
#define LexCmd flex -l
#define LexLib -lfl
#define PreProcessCmd CcCmd -E
#define PostIncDir DefaultGccIncludeDir
#define LdCombineFlags -r
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#define HasWChar32 YES
#define StandardCppDefines -traditional StandardDefines
#define ExtensionOSDefines -DXTESTEXT1
#if (LinuxDistribution == LinuxSuSE)
#define LinuxLocaleDefines /**/
#else
#define LinuxLocaleDefines -DX_LOCALE
#endif
#if LinuxCLibMajorVersion < 6
#define LinuxSourceDefines -D_POSIX_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
#ifndef HasLibCrypt
# define HasLibCrypt NO
#endif
#else
#define LinuxSourceDefines -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE
#define HasPosixThreads YES
#define ThreadedX YES
#define HasThreadSafeAPI YES
#define ThreadsLibraries -lpthread
#define SystemMTDefines -D_REENTRANT
#ifndef HasLibCrypt
# define HasLibCrypt YES
#endif
#endif
#ifdef i386Architecture
#define OptimizedCDebugFlags DefaultGcc2i386Opt
#define LinuxMachineDefines -D__i386__
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#if UseElfFormat
#define HasPlugin YES
#define VendorHasX11R6_3libXext YES /* XC or XFree86 3.3.1 */
#endif
#endif /* i386Architecture */
#ifdef AlphaArchitecture
#define OptimizedCDebugFlags -O2
#define LinuxMachineDefines -D__alpha__
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
#endif /* AlphaArchitecture */
#ifdef Mc68020Architecture
#define OptimizedCDebugFlags -O2
#define LinuxMachineDefines -D__mc68000__
#define StandardCppDefines -traditional StandardDefines
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif /* Mc68020Architecture */
#define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
#define ConnectionFlags -DUNIXCONN -DTCPCONN
/* Some of these man page defaults are overriden in the above OS sections */
#ifndef ManSuffix
# define ManSuffix 1x
#endif
#ifndef ManDir
# define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix 3x
#endif
#ifndef LibmanDir
# define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix 5x
#endif
#ifndef FileManDir
# define FileManDir $(MANSOURCEPATH)5
#endif
#define ArchitectureDefines -DLINUX_ARCHITECTURE
#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
#define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
#include <lnxLib.rules>
#include <xfree86.cf>

View file

@ -1,500 +0,0 @@
XCOMM $TOG: lnxLib.rules /main/14 1998/03/16 11:15:30 mgreess $
/*
* Linux shared library rules (DLL & ELF versions)
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib NO
#endif
#define SharedOldX NO
#if UseElfFormat
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <lnxLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -fPIC
#endif
#ifndef ExtraLoadFlags
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
* NOTE: file must be executable, hence "INSTBINFLAGS"
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
(T=`echo Concat($(DESTDIR)dest/lib,libname.so.rev) | sed 's/\.[^\.]*$$//'`;\
$(RM) $$T && $(LN) Concat(lib,libname.so.rev) $$T) @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\
$(LN) Concat(lib,libname.so.rev) Concat($(DESTDIR)dest/lib,libname.so)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; T=`echo $@ | sed 's/\.[^\.]*$$//'`; \
$(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$T solist $(REQUIREDLIBS); \
$(RM) $$T && $(LN) $@ $$T) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
(T=`echo $@ | sed 's/\.[^\.]*$$//'`; \
$(RM) $(BUILDLIBDIR)/$$T; cd $(BUILDLIBDIR); $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/$$T .) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
#else /* UseElfFormat */
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <lnxLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags /**/
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -B/usr/dll/jump/
#endif
/*
* These definitions are now extended to work with the X sources and
* external sources wishing to build shared libs.
*
* A library can create it's own shlibs (.so) or can be incorporated into
* another "host" lib. All libraries generate stub (.sa) files.
* A "host" lib does all the work to generate the stubs for itself and its
* "guests", invoking the "guest" Makefiles to create the objects for
* inclusion into the "host" shlib. A "guest" lib will ask the "host" to
* create the stubfiles, then copy its own into its directory.
* Most external libs are "host" libs; the concept of "guest" is a holdover
* from older libs during the days of scarce shared library address space.
*
* To create a simple "host" shared lib, Xfoo, define:
*
* JUMP_ROOT_Xfoo = <source directory>
* JUMP_IS_HOST_Xfoo = YES
* JUMP_STUBLIBS_Xfoo = libXfoo.sa
* JUMP_DIR_Xfoo = $(JUMP_ROOT_Xfoo)/shared <work directory>
* JUMP_DEFS_Xfoo = -DFOO <defs for jump files>
* JUMP_VARS_Xfoo = $(JUMP_ROOT_Xfoo)/jump_vars <see DLL docs>
* JUMP_FUNCS_Xfoo = $(JUMP_ROOT_Xfoo)/jump_funcs <see DLL docs>
* JUMP_IGNORE_Xfoo = $(JUMP_ROOT_Xfoo)/jump_ignore <see DLL docs>
* JUMP_EXPORT_Xfoo = $(JUMP_DIR_Xfoo)/jump.vars <exported symbols>
* JUMP_IMPORT_Xfoo = $(JUMP_DIR_Xbar) <imported symbols>
* JUMP_ADDRESS_Xfoo = 0xXXXXXXXX <fill in with address>
* JUMP_JUMPTABLESIZE_Xfoo = 0x4000 <adjust if necessary>
* JUMP_GOTSIZE_Xfoo = 4096 <adjust if necessary>
* JUMP_STUBNAMES_Xfoo = libXfoo <and others>
* JUMP_STUBS_IMPORT_Xfoo = /usr/lib/libc.sa <and others>
* JUMP_LDLIBS_Xfoo = `$(CC) --print-libgcc-file-name` -lc <and others>
*
* To create a complex "host", you need to add
* JUMP_SIBARS_Xt = jump/libXbar.a~ <and others>
* These are the archives of the shared objects of the "guest" libs. They
* need to be added to the JUMP_LDLIBS_Xfoo lines.
*
* For further clarification, study the definitions of libXaw, a simple "host"
* lib, libXt, a complex "host" lib, and libXmu, one of libXts "guests".
*
* As a hint of how to start (with the DLL docs), touch jump_vars, jump_funcs
* and jump_ignore, then compile. Then massage the jump.vars and jump.funcs
* files in the shared subdirectory into jump_xxx files.
*/
#ifndef UseInstalled
XCOMM These are only needed to build the server
#if LinuxElfDefault
LIBC_SA = /usr/i486-linuxaout/lib/libc.sa
LIBM_SA = /usr/i486-linuxaout/lib/libm.sa
#else
LIBC_SA = /usr/lib/libc.sa
LIBM_SA = /usr/lib/libm.sa
#endif
JUMP_LDLIBS_libc = `$(CC) --print-libgcc-file-name` -lc
XCOMM libX11.so (X11, SM, ICE)
JUMP_ROOT_X11 = $(XLIBSRC)
JUMP_IS_HOST_X11 = YES
JUMP_STUBLIBS_X11 = libX11.sa libSM.sa libICE.sa
JUMP_SIBDIRS_X11 = $(JUMP_ROOT_SM) $(JUMP_ROOT_ICE)
JUMP_DIR_X11 = $(JUMP_ROOT_X11)/shared
JUMP_DEFS_X11 = $(XDMAUTHDEFS)
JUMP_VARS_X11 = $(JUMP_ROOT_X11)/jump_vars
JUMP_FUNCS_X11 = $(JUMP_ROOT_X11)/jump_funcs
JUMP_IGNORE_X11 = $(JUMP_ROOT_X11)/jump_ignore
JUMP_EXPORT_X11 = $(JUMP_DIR_X11)/jump.vars
JUMP_ADDRESS_X11 = 0x60200000
JUMP_JUMPTABLESIZE_X11 = 0x4000
JUMP_GOTSIZE_X11 = 4096
JUMP_STUBNAMES_X11 = libX11 libSM libICE
JUMP_STUBS_IMPORT_X11 = $(LIBC_SA)
JUMP_SIBARS_X11 = jump/libSM.a~ jump/libICE.a~
JUMP_LDLIBS_X11 = $(JUMP_SIBARS_X11) $(JUMP_LDLIBS_libc)
XCOMM libSM (part of libX11.so)
JUMP_ROOT_SM = $(SMSRC)
JUMP_IS_HOST_SM = NO
JUMP_HOST_SM = $(JUMP_ROOT_X11)
JUMP_DIR_SM = $(JUMP_DIR_X11)
XCOMM libICE (part of libX11.so)
JUMP_ROOT_ICE = $(ICESRC)
JUMP_IS_HOST_ICE = NO
JUMP_HOST_ICE = $(JUMP_ROOT_X11)
JUMP_DIR_ICE = $(JUMP_DIR_X11)
XCOMM libXt.so (Xt, Xmu, Xext, Xi, Xtst)
JUMP_ROOT_Xt = $(TOOLKITSRC)
JUMP_IS_HOST_Xt = YES
JUMP_STUBLIBS_Xt = libXt.sa libXmu.sa libXext.sa libXi.sa libXtst.sa
JUMP_SUBDIRS_Xt = $(JUMP_ROOT_X11)
JUMP_SIBDIRS_Xt = $(JUMP_ROOT_Xmu) $(JUMP_ROOT_Xext) \
$(JUMP_ROOT_Xi) $(JUMP_ROOT_Xtst)
JUMP_DIR_Xt = $(JUMP_ROOT_Xt)/shared
JUMP_VARS_Xt = $(JUMP_ROOT_Xt)/jump_vars
JUMP_FUNCS_Xt = $(JUMP_ROOT_Xt)/jump_funcs
JUMP_IGNORE_Xt = $(JUMP_ROOT_Xt)/jump_ignore
JUMP_EXPORT_Xt = $(JUMP_DIR_Xt)/jump.vars
JUMP_IMPORT_Xt = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_Xt = 0x602a0000
JUMP_JUMPTABLESIZE_Xt = 0x4000
JUMP_GOTSIZE_Xt = 4096
JUMP_STUBNAMES_Xt = libXt libXmu libXext libXi libXtst
JUMP_STUBS_IMPORT_Xt = $(JUMP_STUBS_IMPORT_X11)
JUMP_SIBARS_Xt = jump/libXmu.a~ jump/libXext.a~ jump/libXi.a~ jump/libXtst.a~
JUMP_LDLIBS_Xt = $(JUMP_SIBARS_Xt) $(JUMP_ROOT_ICE)/libICE.sa \
$(JUMP_ROOT_SM)/libSM.sa $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc)
XCOMM libXmu (part of libXt.so)
JUMP_ROOT_Xmu = $(XMUSRC)
JUMP_IS_HOST_Xmu = NO
JUMP_HOST_Xmu = $(JUMP_ROOT_Xt)
JUMP_DIR_Xmu = $(JUMP_DIR_Xt)
XCOMM libXext (part of libXt.so)
JUMP_ROOT_Xext = $(XEXTLIBSRC)
JUMP_IS_HOST_Xext = NO
JUMP_HOST_Xext = $(JUMP_ROOT_Xt)
JUMP_DIR_Xext = $(JUMP_DIR_Xt)
XCOMM libXi (part of libXt.so)
JUMP_ROOT_Xi = $(XILIBSRC)
JUMP_IS_HOST_Xi = NO
JUMP_HOST_Xi = $(JUMP_ROOT_Xt)
JUMP_DIR_Xi = $(JUMP_DIR_Xt)
XCOMM libXtst (part of libXt.so)
JUMP_ROOT_Xtst = $(XTESTLIBSRC)
JUMP_IS_HOST_Xtst = NO
JUMP_HOST_Xtst = $(JUMP_ROOT_Xt)
JUMP_DIR_Xtst = $(JUMP_DIR_Xt)
XCOMM libXaw.so (Xaw)
JUMP_ROOT_Xaw = $(AWIDGETSRC)
JUMP_IS_HOST_Xaw = YES
JUMP_STUBLIBS_Xaw = libXaw.sa
JUMP_SUBDIRS_Xaw = $(JUMP_ROOT_Xt)
JUMP_DIR_Xaw = $(JUMP_ROOT_Xaw)/shared
JUMP_VARS_Xaw = $(JUMP_ROOT_Xaw)/jump_vars
JUMP_FUNCS_Xaw = $(JUMP_ROOT_Xaw)/jump_funcs
JUMP_IGNORE_Xaw = $(JUMP_ROOT_Xaw)/jump_ignore
JUMP_EXPORT_Xaw = $(JUMP_DIR_Xaw)/jump.vars
JUMP_IMPORT_Xaw = $(JUMP_EXPORT_Xt) $(JUMP_EXPORT_X11)
JUMP_ADDRESS_Xaw = 0x60300000
JUMP_JUMPTABLESIZE_Xaw = 0x4000
JUMP_GOTSIZE_Xaw = 4096
JUMP_STUBNAMES_Xaw = libXaw
JUMP_STUBS_IMPORT_Xaw = $(JUMP_STUBS_IMPORT_X11)
JUMP_LDLIBS_Xaw = $(JUMP_ROOT_Xt)/libXt.sa $(JUMP_ROOT_Xt)/libXmu.sa \
$(JUMP_ROOT_Xt)/libXext.sa $(JUMP_ROOT_X11)/libX11.sa \
$(JUMP_LDLIBS_libc)
# libPEX.so (PEX5)
JUMP_ROOT_PEX5 = $(PEXLIBSRC)
JUMP_IS_HOST_PEX5 = YES
JUMP_STUBLIBS_PEX5 = libPEX5.sa
JUMP_SUBDIRS_PEX5 = $(JUMP_ROOT_X11)
JUMP_DIR_PEX5 = $(JUMP_ROOT_PEX5)/shared
JUMP_VARS_PEX5 = $(JUMP_ROOT_PEX5)/jump_vars
JUMP_FUNCS_PEX5 = $(JUMP_ROOT_PEX5)/jump_funcs
JUMP_IGNORE_PEX5 = $(JUMP_ROOT_PEX5)/jump_ignore
JUMP_EXPORT_PEX5 = $(JUMP_DIR_PEX5)/jump.vars
JUMP_IMPORT_PEX5 = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_PEX5 = 0x60b00000
JUMP_JUMPTABLESIZE_PEX5 = 0x4000
JUMP_GOTSIZE_PEX5 = 4096
JUMP_STUBNAMES_PEX5 = libPEX5
JUMP_STUBS_IMPORT_PEX5 = $(JUMP_STUBS_IMPORT_X11) $(LIBM_SA)
JUMP_LDLIBS_PEX5 = $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc) -lm
# libXIE.so (XIE)
JUMP_ROOT_XIE = $(XIELIBSRC)
JUMP_IS_HOST_XIE = YES
JUMP_STUBLIBS_XIE = libXIE.sa
JUMP_SUBDIRS_XIE = $(JUMP_ROOT_X11)
JUMP_DIR_XIE = $(JUMP_ROOT_XIE)/shared
JUMP_VARS_XIE = $(JUMP_ROOT_XIE)/jump_vars
JUMP_FUNCS_XIE = $(JUMP_ROOT_XIE)/jump_funcs
JUMP_IGNORE_XIE = $(JUMP_ROOT_XIE)/jump_ignore
JUMP_EXPORT_XIE = $(JUMP_DIR_XIE)/jump.vars
JUMP_IMPORT_XIE = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_XIE = 0x60be0000
JUMP_JUMPTABLESIZE_XIE = 0x4000
JUMP_GOTSIZE_XIE = 4096
JUMP_STUBNAMES_XIE = libXIE
JUMP_STUBS_IMPORT_XIE = $(JUMP_STUBS_IMPORT_X11) $(LIBM_SA)
JUMP_LDLIBS_XIE = $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc) -lm
#endif /* !UseInstalled */
/*
* SharedLibraryDataTarget - generate rules to create shared data file
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif
/*
* SharedLibraryTarget - generate rules to create a shared library;
* There are two basic flavors of libs: self-generating, which create
* their own (and possibly other) libs, and hosted, which rely on another
* lib for all the work.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
XCOMM This logic is such to compile the libs in their proper order, @@\
XCOMM remain dependent on subsidiary libs, and yet minimize local work @@\
@@\
JUMP_DIR=./jump @@\
JUMP_LIB=Concat(lib,libname) @@\
@@\
XCOMM this is needed for newer gnumake versions @@\
export JUMP_DIR JUMP_LIB @@\
@@\
JUMP_IS_HOST=$(Concat(JUMP_IS_HOST_,libname)) @@\
JUMP_AR=$(JUMP_DIR)/Concat(lib,libname.a~) @@\
JUMP_SA=Concat(lib,libname.sa) @@\
JUMP_SO=Concat(lib,libname.so.rev) @@\
@@\
JUMP_HOST=$(Concat(JUMP_HOST_,libname)) @@\
@@\
INSTSOLIBFLAGS=-m 0555 @@\
@@\
AllTarget($(BUILDLIBDIR)/$(JUMP_SA)) @@\
@@\
$(BUILDLIBDIR)/$(JUMP_SA): $(JUMP_SA) @@\
LinkBuildLibrary($(JUMP_SA)) @@\
@@\
$(JUMP_SA) $(Concat(JUMP_STUBLIBS_,libname)) do_JUMP_SA: \
down/mk_JUMP_SA_$(JUMP_IS_HOST) @@\
@@\
down/mk_JUMP_SA_0:: mk_JUMP_HOST @@\
@@\
down/mk_JUMP_SA_0:: $(JUMP_HOST)/$(JUMP_SA) @@\
$(RM) $(JUMP_SA) @@\
$(LN) $(JUMP_HOST)/$(JUMP_SA) $(JUMP_SA) @@\
touch $@ @@\
@@\
down/mk_JUMP_SA_1:: $(JUMP_SO) @@\
@@\
down/mk_JUMP_SA_1:: down/mk_JUMP_SO_2 @@\
$(RM) $(Concat(JUMP_STUBLIBS_,libname)) @@\
mkstubs -v rev -l $(JUMP_LIB) \
-a $(Concat(JUMP_ADDRESS_,libname)) \
-j $(Concat(JUMP_JUMPTABLESIZE_,libname)) \
-g $(Concat(JUMP_GOTSIZE_,libname)) \
-- $(Concat(JUMP_STUBNAMES_,libname)) @@\
verify-shlib -l $(JUMP_SO) \
$(Concat(JUMP_STUBLIBS_,libname)) @@\
$(MV) verify.out $(JUMP_DIR) @@\
touch $@ @@\
@@\
mk_JUMP_HOST: @@\
@echo checking stub library $(JUMP_SA) in $(JUMP_HOST)... @@\
@(cd $(JUMP_HOST); $(MAKE) $(MFLAGS) $(JUMP_SA)) || exit 1 @@\
@echo ok. continuing in $(Concat(JUMP_ROOT_,libname))... @@\
@@\
$(JUMP_SO): down/mk_JUMP_SO_$(JUMP_IS_HOST) @@\
@@\
down/mk_JUMP_SO_0: @@\
@@\
down/mk_JUMP_SO_1:: $(JUMP_AR) mk_JUMP_SIBDIRS down/mk_JUMP_SO_2 @@\
@@\
down/mk_JUMP_SO_2: down/mk_JUMP_AR $(Concat(JUMP_SIBARS_,libname)) @@\
$(RM) $(JUMP_SO) @@\
mkimage -f -v rev -l $(JUMP_LIB) \
-a $(Concat(JUMP_ADDRESS_,libname)) \
-j $(Concat(JUMP_JUMPTABLESIZE_,libname)) \
-g $(Concat(JUMP_GOTSIZE_,libname)) \
-- $(JUMP_AR) $(Concat(JUMP_LDLIBS_,libname)) @@\
$(RM) $(JUMP_DIR)/__jump.s $(JUMP_DIR)/__jump.o @@\
LinkBuildLibrary($(JUMP_SO)) @@\
touch $@ @@\
@@\
mk_JUMP_SIBDIRS: @@\
@for d in $(Concat(JUMP_SIBDIRS_,libname)); do \
echo checking ar library in $$d...; \
(cd $$d ; $(MAKE) $(MFLAGS) fastdo_JUMP_AR) || exit 1; \
echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...;done@@\
@@\
fastdo_JUMP_AR: $(JUMP_DIR) down/mk_JUMP_AR @@\
@@\
$(JUMP_AR) do_JUMP_AR:: jumpsetup down/mk_JUMP_AR @@\
@@\
jumpsetup: $(JUMP_DIR) jumpsetup_$(JUMP_IS_HOST) @@\
@@\
$(JUMP_DIR): @@\
$(RM) jump @@\
LibMkdir($(Concat(JUMP_DIR_,libname))) @@\
$(LN) $(Concat(JUMP_DIR_,libname)) jump @@\
@@\
jumpsetup_0: @@\
@echo doing jump setup in host $(JUMP_HOST)... @@\
@(cd $(JUMP_HOST); $(MAKE) $(MFLAGS) jumpsetup) || exit 1 @@\
@echo ok. continuing in $(Concat(JUMP_ROOT_,libname))... @@\
@@\
jumpsetup_1:: @@\
@for d in $(Concat(JUMP_SUBDIRS_,libname)); do \
echo checking stub library in $$d...; \
(cd $$d ; $(MAKE) $(MFLAGS) do_JUMP_SA) || exit 1; \
echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...;done@@\
@@\
jumpsetup_1:: $(JUMP_DIR)/jump.funcs $(JUMP_DIR)/jump.vars \
$(JUMP_DIR)/jump.ignore $(JUMP_DIR)/jump.import @@\
@@\
$(JUMP_DIR)/jump.funcs: $(Concat(JUMP_FUNCS_,libname)) @@\
$(RM) $(JUMP_DIR)/jump.funcs @@\
cat $(Concat(JUMP_FUNCS_,libname)) | \
$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@ @@\
@@\
$(JUMP_DIR)/jump.vars: $(Concat(JUMP_VARS_,libname)) @@\
$(RM) $(JUMP_DIR)/jump.vars @@\
cat $(Concat(JUMP_VARS_,libname)) | \
$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@ @@\
@@\
$(JUMP_DIR)/jump.ignore: $(Concat(JUMP_IGNORE_,libname)) @@\
$(RM) $(JUMP_DIR)/jump.ignore @@\
cat $(Concat(JUMP_IGNORE_,libname)) | \
$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@ @@\
@@\
$(JUMP_DIR)/jump.import: $(JUMP_DIR)/stubs.import \
$(Concat(JUMP_IMPORT_,libname)) @@\
$(RM) $(JUMP_DIR)/jump.import @@\
cat $(JUMP_DIR)/stubs.import $(Concat(JUMP_IMPORT_,libname)) > $@ @@\
@@\
$(JUMP_DIR)/stubs.import: $(Concat(JUMP_STUBS_IMPORT_,libname)) @@\
$(RM) $(JUMP_DIR)/stubs.import @@\
nm --no-cplus $(Concat(JUMP_STUBS_IMPORT_,libname)) | grep '__GOT__' | \
sed 's/__GOT__/_/' > $@ @@\
@@\
down/mk_JUMP_AR: solist @@\
$(RM) $(JUMP_AR) @@\
@if [ -s $(JUMP_DIR)/jump.log ]; then \
echo "Error: Leftover globals for shared lib"; \
exit 1; fi @@\
(cd down; $(AR) up/$(JUMP_AR) solist) || exit 1 @@\
$(RANLIB) $(JUMP_AR) @@\
touch $@ @@\
@@\
clean:: jumpclean @@\
@@\
jumpclean: jumpclean_$(JUMP_IS_HOST) @@\
$(RM) $(JUMP_SA) down/mk_JUMP_AR @@\
$(RM) -r $(JUMP_DIR) @@\
@@\
jumpclean_0: @@\
$(RM) down/mk_JUMP_SA_0 @@\
$(RM) $(JUMP_HOST)/$(JUMP_SA) @@\
@@\
jumpclean_1: @@\
$(RM) -r $(JUMP_SO) $(Concat(JUMP_DIR_,libname)) \ @@\
down/mk_JUMP_SA_1 down/mk_JUMP_SO_1 down/mk_JUMP_SO_2
#endif /* SharedLibraryTarget */
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: $(JUMP_SA) $(JUMP_SO) @@\
MakeDir($(DESTDIR)dest) @@\
@if [ "$(JUMP_IS_HOST)" = YES ]; then \
(T=$(DESTDIR)dest/`echo $(JUMP_SO)|sed 's/\.[^\.]*$$//'`;\
set -x; \
$(INSTALL) -s -c $(INSTSOLIBFLAGS) $(JUMP_SO) $(DESTDIR)dest; \
$(RM) $$T && $(LN) $(JUMP_SO) $$T); fi @@\
$(INSTALL) -c $(INSTLIBFLAGS) $(JUMP_SA) $(DESTDIR)dest
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
#endif /* UseElfFormat */

View file

@ -1,37 +0,0 @@
XCOMM $TOG: lnxLib.tmpl /main/7 1998/03/20 14:26:41 mgreess $
/*
* Linux shared library template
*/
/* Linux ELF shared libraries are deficient in link semantics */
#if UseElfFormat
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#else
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIB = -lXmu $(XLIB)
#endif
#endif
#ifndef SharedXReqs
# define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)
#endif
#ifndef SharedXmReqs
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lc
#endif
#ifndef SharedTtReqs
# define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#endif
#define NoMessageCatalog

View file

@ -1,117 +0,0 @@
XCOMM platform: $XConsortium: luna.cf /main/35 1996/09/28 16:11:11 rws $
/*
* Please set the values for OSMajorVerion and OSMinorVersion
* before making makefiles.
*
* The Luna version of the make program doesn't define the standard
* macro MAKE, so you must run it as "make MAKE=make" at top level,
* e.g., "make MAKE=make World"
*/
#ifdef Mc68000Architecture
# ifdef luna2
#ifndef OSName
#define OSName Mach 2.5 Vers 1.40
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 1
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 40
#endif
# else
#ifndef OSName
#define OSName UNIOS-B 4.3BSD UNIX: 2.00
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define DirFailPrefix -
# endif
#else /* Mc88000Architecture */
#ifndef OSName
#define OSName Mach 2.5 Vers 2.00.1
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 1
#endif
#endif
XCOMM operating system: OSName
#define HasBsearch NO
#define HasVoidSignalReturn NO
#define HasGcc YES
#define HasCThreads YES
#define HasThreadSafeAPI NO
#define Malloc0ReturnsNull HasCThreads /* -lthreads fails, -lc works */
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#define BootstrapCFlags -DUSE_CC_E -DNFS_STDOUT_BUG
#define ThreadsLibraries -lthreads -lmach
#define ThreadsCplusplusLibraries -lthreads -lmach
#define PrimaryScreenResolution 100
#define BuildXKB YES
#ifdef Mc68000Architecture
#ifdef luna2
#if ((OSMajorVersion <= 1) && (OSMinorVersion < 40))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#else /* luna1 */
#if ((OSMajorVersion <= 1) && (OSMinorVersion <= 60))
#define StandardDefines -Dluna -Duniosb
#endif
#if ((OSMajorVersion < 2) || ((OSMajorVersion == 2) && (OSMinorVersion < 1)))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#endif /* luna2 */
#if HasGcc
#define OptimizedCDebugFlags -O -traditional
#define ServerCDebugFlags -Dmc68020 -O -traditional
#else /* cc */
#define OptimizedCDebugFlags -O -Z18
#define ServerCDebugFlags -Dmc68020 -O -Z18
#endif /* HasGcc */
#endif /* Mc68000Architecture */
#ifdef Mc88000Architecture
#if ((OSMajorVersion <= 1) && (OSMinorVersion <= 12))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#define HasNdbm YES
#define ExtraLibraries -li18n
#if HasGcc
#define CcCmd gcc -fstrength-reduce
#define PreIncDir /usr/local/lib/gcc/gcc-include
#define OptimizedCDebugFlags -O2 /* -traditional */
#else
#define PreIncDir /usr/lib/ccom/include
#endif
#define PostIncDir /usr/mach/include
#endif
#ifdef Mc68000Architecture
#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
#define BuildPexExt NO
#define XlunaServer YES
#endif
#ifdef Mc88000Architecture
#define BuildPexExt NO
#define XlunaServer YES
#endif
#if ((OSMajorVersion >= 2) && (OSMinorVersion >= 0) && (OSTeenyVersion >= 1))
#define HasWChar32 YES
#endif

View file

@ -1,53 +0,0 @@
XCOMM platform: $XConsortium: macII.cf /main/50 1996/09/28 16:11:19 rws $
#ifndef OSName
#define OSName A/UX 3.0.1
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 1
#endif
XCOMM operating system: OSName
#if HasGcc
#define BootstrapCFlags -DmacII
#endif
#define SystemV YES
#define HasPoll NO
#define NeedBerklib YES
#define ExtraLibraries $(XBSDLIB) -lposix -lm -lmr
#define Malloc0ReturnsNull YES
#define StandardDefines -DmacII -DSYSV
#define ExecableScripts NO
#define RemoveTargetProgramByMoving YES
#define ExpandManNames YES
#define PexShmIPC NO
#define XmacIIServer YES
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#if MacHasc89
#define CcCmd c89 -D_POSIX_SOURCE
#else
#define HasVoidSignalReturn NO
#endif
#if OSMajorVersion <= 2
#define ServerExtraDefines -DSUPPORT_2_0
#endif
#define InstKmemFlags -g sys -m 2711
#define ExtensionOSDefines -DXTESTEXT1
#if !HasGcc
#define DefaultCCOptions -A 3
#define PexCCOptions -A 4
#endif
/*
* If you wish to override the man page directories, do so here using just
* one tab between the parameter name (e.g. ManDirectoryRoot) and the
* value so that cpp doesn't get confused.
*/
#define ManDirectoryRoot /usr/catman/u_man

View file

@ -1,58 +0,0 @@
XCOMM platform: $XConsortium: moto.cf /main/16 1996/09/28 16:11:24 rws $
#if defined(MotoR3Architecture)
#ifndef OSName
#define OSName Motorola R32V2/R3V6.2
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 2
#endif
#define SystemV YES
#define BootstrapCFlags -DSYSV -DMOTOROLA
#define StandardDefines -DSYSV -DUSG -DMOTOROLA
#define Malloc0ReturnsNull YES
#define BuildServer NO
#define UseCCMakeDepend YES
#define OptimizedCDebugFlags /* -O */
#define DefaultUserPath :/bin:/usr/bin:$(BINDIR)
#define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR)
#endif /* MotoR3Architecture */
#if defined(MotoR4Architecture)
#ifndef OSName
#define OSName Motorola R40V4
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 4
#endif
#define SystemV4 YES
#define BootstrapCFlags -DSVR4 -DMOTOROLA
#define StandardDefines -DSVR4 -DMOTOROLA
#define BuildServer NO
#define CppCmd /usr/ccs/lib/cpp
#define LdCmd /usr/ccs/bin/ld
#define LexCmd /usr/ccs/bin/lex
#define MakeCmd /usr/ccs/bin/make
#define YaccCmd /usr/ccs/bin/yacc
#define CcCmd /bin/cc /* a front-end to gcc/CI5 */
#define DefaultCCOptions /* -Xc no longer needed */
#include <sv4Lib.rules>
#endif /* MotoR4Architecture */
XCOMM operating system: OSName

View file

@ -1,114 +0,0 @@
XCOMM platform: $XConsortium: ncr.cf /main/28 1996/09/28 16:11:31 rws $
#ifndef OSName
#define OSName Unix System V Release 4/MP-RAS
#endif
#ifndef OSVendor
#define OSVendor NCR
#endif
XCOMM operating system: OSName
#define BootstrapCFlags -DNCR
#define HasStreams YES
#define XawI18nDefines -DUSE_XWCHAR_STRING
/* Build Flags */
#define StandardDefines -DSVR4 -DNCR -Di386
#define DefaultCCOptions -Xa -Hnocopyr -W0,-asm
#define DefaultCDebugFlags -O3
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#define ServerExtraDefines -DNO_SECONDARY AllocateLocalDefines XFree86ServerDefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
#define ToolkitStringsABIOptions -intelabi
XCOMM This has not been tested, don't turn it on yet.
XCOMM #define ExtensionOSDefines -DXTESTEXT1
#define ExtraLoadFlags -lc -L/usr/ucblib -lucb -lm -lgen -lcmd
/* Setup proper ownership of installed files */
#define StripInstalledPrograms YES
#define InstPgmFlags -s -m 0711 -o bin -g bin
#define InstBinFlags -m 0755 -o bin -g bin
#define InstUidFlags -m 4711 -o root -g bin
#define InstLibFlags -m 0644 -o bin -g bin
#define InstIncFlags -m 0444 -o bin -g bin
#define InstManFlags -m 0444 -o bin -g bin
#define InstDatFlags -m 0444 -o bin -g bin
/* Various Configuration settings */
#define DefaultUserPath /bin:/sbin:/usr/bin:/usr/sbin:$(BINDIR):/usr/ucb
#define DefaultSystemPath /etc:/bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/ucb
#define ExtraFilesToClean *.z
/* Create man pages properly */
#define BookFormatManPages YES
#define ManDirectoryRoot /usr/catman/X115
#define ManSuffix 1X
#define LibManSuffix 3X
#define FileManSuffix 4X
#define ManSourcePath $(MANPATH)/g
#define XmanSearchPath /usr/catman
#define TblCmd /usr/ucb/tbl
#define EqnCmd /usr/ucb/eqn
#define ColCmd /usr/bin/col
#define NeqnCmd /usr/ucb/neqn
#define NroffCmd /usr/ucb/nroff -Tlp
/*
* Man pages need to be formatted when installed, so override the default
* imake rules.
*/
#define InstallManPageLong(file,destdir,dest) @@\
all:: file.z @@\
@@\
file.z:: file.man @@\
@if [ -f file.man ]; \ @@\
then \ @@\
cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
$(RM) /tmp/$$$$.man.z; \ @@\
pack -f /tmp/$$$$.man; \ @@\
cp /tmp/$$$$.man.z file.z; \ @@\
$(RM) /tmp/$$$$.man.z; \ @@\
fi @@\
@@\
file.man:: @@\
@@\
install.man:: @@\
MakeDir($(DESTDIR)destdir) @@\
-@if [ -f file.z ]; \ @@\
then \ @@\
$(INSTALL) -c $(INSTMANFLAGS) file.z $(DESTDIR)destdir/dest.z; \@@\
fi
#define InstallMultipleManSuffix(list,dest,suff) @@\
install.man:: @@\
MakeDir($(DESTDIR)dest) @@\
MakeFlagsToShellFlags(i,set +e); \ @@\
for i in list; do \ @@\
(set -x; \ @@\
cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
pack -f /tmp/$$$$.suff; \ @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff.z $(DESTDIR)dest/$$i.z; \ @@\
$(RM) /tmp/$$$$.suff.z); \ @@\
done
#define InstallMultipleMan(list,dest) @@\
InstallMultipleManSuffix(list,dest,man)
#define InstallManPageAliases(file,destdir,aliases) @@\
install.man:: @@\
@MakeFlagsToShellFlags(i,set +e); \ @@\
for i in aliases; do \ @@\
(set -x; \ @@\
$(RM) $(DESTDIR)destdir/$$i.z;\ @@\
(cd $(DESTDIR)destdir; $(LN) file.z $$i.z);\ @@\
); \ @@\
done
#include <svr4.cf>

View file

@ -1,131 +0,0 @@
XCOMM platform: $XConsortium: nec.cf /main/4 1996/09/28 16:11:37 rws $
#ifdef nec_ews_svr2
# define NecCISCArchitecture
#else /* !defined(nec_ews_svr2) */
# if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)
# define NecRISCArchitecture
# else /* !(defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)) */
# ifdef SX
# define NecSX3Architecture
# else /* !defined(SX) */
# ifdef _nec_ft
# define NecFaultTolerantArchitecture
# else /* !defined(_nec_ft) */
# ifdef PC_UX
# define NecPCArchitecture
# endif /* PC_UX */
# endif /* !defined(_nec_ft) */
# endif /* !defined(SX) */
# endif /* !(defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)) */
#endif /* !defined(nec_ews_svr2) */
#ifdef NecCISCArchitecture
#ifndef OSName
#define OSName EWS-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 10
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
#define HasSharedLibraries NO
#define HasVoidSignalReturn NO
#define HasSockets YES
#define SystemV YES
#define StandardDefines -Dnec_ews -Dnec_ews_svr2 -DUSG -DSYSV
#define StandardCppDefines -Dnec_ews -Dnec_ews_svr2 -DUSG -DSYSV
#define LnCmd ln -s
LEXOPTION = -j
#endif
#ifdef NecRISCArchitecture
# ifdef _nec_up
#ifndef OSName
#define OSName UP-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
# else
#ifndef OSName
#define OSName EWS-UX/V\(Rel4.2\)
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 9
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
# endif
#define HasSharedLibraries YES
#define HasVoidSignalReturn YES
#define SystemV4 YES
#define HasSockets YES
#endif
#ifdef NecSX3Architecture
#ifndef OSName
#define OSName SUPER-UX
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
#define SystemV YES
#define HasSharedLibraries NO
#define HasVoidSignalReturn YES
#endif
#ifdef NecFaultTolerantArchitecture
#ifndef OSName
#define OSName FT-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
#define HasSharedLibraries YES
#define HasVoidSignalReturn YES
#define SystemV4 YES
#define HasSockets YES
#endif
#ifdef NecPCArchitecture
#ifndef OSName
#define OSName PC-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
#define HasSharedLibraries NO
#define HasVoidSignalReturn NO
#define SystemV YES
#endif
#define HasSaberC NO /* for machines that have it */
#define HasGcc NO
#define HasBsearch YES
#define DefaultCCOptions -Wf,-XNp9000,-XNd6000
#define ExtraLibraries -lsocket -lnsl -lw
#define BuildServer NO
/* #define InstallCmd $(INS) */
#define RemoveTargetProgramByMoving YES
#include <necLib.rules>
#define LibraryCCOptions DefaultCCOptions
#define LibraryDefines StandardDefines

View file

@ -1,103 +0,0 @@
XCOMM $XConsortium: necLib.rules /main/4 1996/09/28 16:11:42 rws $
/*
* NECOS shared library rules
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation YES
#endif
#ifndef SharedCodeDef
#define SharedCodeDef
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <necLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags
#endif
#ifndef SeparateSharedCompile
#define SeparateSharedCompile NO
#endif
#define SharedLibObjCompile(options) $(_NULLCMD_)
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
cd $(DESTDIR)/dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so) @@\
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest) @@\
install:: Concat(lib,libname.sa.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.sa.rev) $(DESTDIR)dest @@\
RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,libname.sa.rev))
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
$(CC) -G -o $@~ $(SHLIBLDFLAGS) solist @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
AllTarget(Concat(lib,libname.so)) @@\
@@\
Concat(lib,libname.so): Concat(lib,libname.so.rev) @@\
$(RM) $@ @@\
$(LN) $? $@ @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist) @@\
AllTarget(Concat(lib,libname.sa.rev)) @@\
@@\
Concat(lib,libname.sa.rev): salist $(EXTRALIBRARYDEPS) @@\
$(RM) $@ @@\
$(AR) $@ salist @@\
RanLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sa.rev)
#endif /* SharedLibraryDataTarget */

View file

@ -1,29 +0,0 @@
XCOMM $XConsortium: necLib.tmpl,v 1.1 94/03/26 18:15:22 rws Exp $
/*
* NEC shared library template
*/
#ifndef SharedXlibRev
#define SharedXlibRev 4.10
#endif
#ifndef SharedOldXRev
#define SharedOldXRev 4.10
#endif
#ifndef SharedXtRev
#define SharedXtRev 4.10
#endif
#ifndef SharedXawRev
#define SharedXawRev 5.0
#endif
#ifndef SharedXmuRev
#define SharedXmuRev 4.10
#endif
#ifndef SharedXextRev
#define SharedXextRev 4.10
#endif
#ifndef SharedXinputRev
#define SharedXinputRev 4.10
#endif
#include <sv4Lib.tmpl>

View file

@ -1,109 +0,0 @@
/* You should not use these any more, use new Library.tmpl insead */
XCOMM $XConsortium: oldlib.rules,v 1.2 91/04/09 19:15:13 rws Exp $
/*
* ProfiledLibraryObjectRule - generate make rules to build both profiled
* and "normal" objects.
*/
#ifndef ProfiledLibraryObjectRule
#define ProfiledLibraryObjectRule() @@\
all:: @@\
LibMkdir(profiled) @@\
@@\
.c.o: @@\
ProfiledLibObjCompile(NullParameter) @@\
NormalLibObjCompile(NullParameter) @@\
@@\
clean:: @@\
LibCleanDir(profiled) @@\
#endif /* ProfiledLibraryObjectRule */
/*
* DebuggedLibraryObjectRule - generate make rules to build both debuggable
* and "normal" objects.
*/
#ifndef DebuggedLibraryObjectRule
#define DebuggedLibraryObjectRule() @@\
all:: @@\
LibMkdir(debugger) @@\
@@\
.c.o: @@\
DebuggedLibObjCompile(NullParameter) @@\
NormalLibObjCompile(NullParameter) @@\
@@\
clean:: @@\
LibCleanDir(debugger) @@\
#endif /* DebuggedLibraryObjectRule */
/*
* DebuggedAndProfiledLibraryOjbectRule - generate make rules to build
* debuggable, profiled, and "normal" objects.
*/
#ifndef DebuggedAndProfiledLibraryObjectRule
#define DebuggedAndProfiledLibraryObjectRule() @@\
all:: @@\
LibMkdir(profiled) @@\
LibMkdir(debugger) @@\
@@\
.c.o: @@\
ProfiledLibObjCompile(NullParameter) @@\
DebuggedLibObjCompile(NullParameter) @@\
NormalLibObjCompile(NullParameter) @@\
@@\
clean:: @@\
LibCleanDir(profiled) @@\
LibCleanDir(debugger) @@\
#endif /* DebuggedAndProfiledLibraryObjectRule */
/*
* SpecialProfiledObjectRule - generate rules to compile a file with special
* flags and to make a profiled version.
*/
#ifndef SpecialProfiledObjectRule
#define SpecialProfiledObjectRule(objs,depends,options) @@\
all:: @@\
LibMkdir(profiled) @@\
@@\
objs: depends @@\
ProfiledLibObjCompile(options) @@\
NormalLibObjCompile(options)
#endif /* SpecialProfiledObjectRule */
/*
* SpecialDebuggedObjectRule - generate rules to compile a file with special
* flags and to make a debuggable version.
*/
#ifndef SpecialDebuggedObjectRule
#define SpecialDebuggedObjectRule(objs,depends,options) @@\
all:: @@\
LibMkdir(debugger) @@\
@@\
objs: depends @@\
DebuggedLibObjCompile(options) @@\
NormalLibObjCompile(options)
#endif /* SpecialDebuggedObjectRule */
/*
* SpecialDebuggedAndProfiledObjectRule - generate rules to compile a file
* with special flags and to make debuggable and profiled versions.
*/
#ifndef SpecialDebuggedAndProfiledObjectRule
#define SpecialDebuggedAndProfiledObjectRule(objs,depends,options) @@\
all:: @@\
LibMkdir(profiled) @@\
LibMkdir(debugger) @@\
@@\
objs: depends @@\
ProfiledLibObjCompile(options) @@\
DebuggedLibObjCompile(options) @@\
NormalLibObjCompile(options)
#endif /* SpecialDebuggedAndProfiledObjectRule */

View file

@ -1,203 +0,0 @@
XCOMM platform: $TOG: osf1.cf /main/74 1997/05/27 15:51:24 kaleb $
/* only tested with Digital OSF/1 */
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion)
#define StandardCppDefines -D__osf__ StandardDefines
#define BuildLibPathVar _RLD_ROOT=/dev/null LD_LIBRARY_PATH
#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 CplusplusSystemMTDefines -D_REENTRANT
#define HasPoll YES
#define HasVFork NO
#define HasPlugin YES
#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 MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
#if OSMajorVersion < 4
#define ThreadsLibraries -lpthreads -lmach -lc_r
#define ThreadsCplusplusLibraries -lpthreads -lmach
#define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
#else
#define ThreadsLibraries -lpthread -lmach -lexc -lc
#define ThreadsCplusplusLibraries -lpthread -lmach -lexc
#define LibraryMTDefines -DUSE_TIS_SUPPORT
#endif
#endif
#if ModernOSF1
#ifndef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2 -Olimit 2000
#endif
#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,$(USRLIBDIRPATH),-oldstyle_liblookup
#else
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#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 CplusplusFilt
# define CplusplusFilt /usr/bin/demangle
#endif
#ifndef CplusplusDependIncludes
#define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
#endif
#ifndef CplusplusLibDir
#define CplusplusLibDir /usr/lib/cmplrs/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 */
#ifdef CplusplusLibDir
# define SystemBuildLibPath \
/usr/shlib:/usr/ccs/lib:CplusplusLibDir:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
#else
# define SystemBuildLibPath \
/usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
#endif
#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
/* For DtHelp's TIFF processing routines. */
#define LSBBitOrder YES
#define MotifDefines -DNO_REGCOMP -DNO_REGEX -DSTRINGS_ALIGNED
#define DtSvcDefines -DMULTIBYTE -DMESSAGE_CAT
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
#define DtMailDefines \
-DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
#define ArchitectureDefines -DALPHA_ARCHITECTURE
#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
#define CdeTicDefines -DHAS_KNL -DHAS_KTAB
#define CdeProjectDefines \
-DDEC -DMULTIBYTE -DNLS16 \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion

View file

@ -1,118 +0,0 @@
XCOMM $XConsortium: osfLib.rules /main/16 1996/09/28 16:11:55 rws $
/*
* OSF/1 shared library rules
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SeparateSharedCompile
#define SeparateSharedCompile NO
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <osfLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared -no_archive
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags /**/
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
#ifndef PackageName(libname)
#if ModernOSF1
#define PackageName(libname) /**/
#define Objects(objlist) -all objlist -none
#else
#define PackageName(libname) -package libname
#define Objects(objlist) objlist
#endif
#endif
#if ThreadedX && ModernOSF1 && OSMajorVersion < 4
#define BaseShLibReqs -lc_r -lc
#else
#define BaseShLibReqs -lc
#endif
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#if SeparateSharedCompile
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) PackageName($@) \ @@\
-soname $@ Objects(solist) \ @@\
$(REQUIREDLIBS) BaseShLibReqs) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#else
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
$(LD) -o $@~ $(SHLIBLDFLAGS) PackageName($@) \ @@\
-soname $@ Objects(solist) \ @@\
$(REQUIREDLIBS) BaseShLibReqs @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SeparateSharedCompile */
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */

View file

@ -1,52 +0,0 @@
XCOMM $XConsortium: osfLib.tmpl /main/22 1996/09/28 16:12:00 rws $
/*
* OSF/1 shared library template
*/
#if ThreadedX && ModernOSF1
#if OSMajorVersion < 4
#define SharedX11Reqs -lpthreads -lmach
#endif
#endif
#define SharedOldXReqs $(LDPRELIBS) $(XLIBONLY)
#if ThreadedX && ModernOSF1 && OSMajorVersion < 4
#define SharedThreadReqs -lpthreads -lmach
#else
#define SharedThreadReqs /**/
#endif
#define SharedXtReqs $(LDPRELIBS) $(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs
#if ModernOSF1
#define SharedXawReqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XLIB)
#else
#define SharedXawReqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XLIB) -init _XawFixupVendorShell
#endif
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedXiReqs $(LDPRELIBS) $(XLIB)
#define SharedPexReqs $(LDPRELIBS) $(XLIBONLY) MathLibrary
#define SharedXtstReqs $(LDPRELIBS) $(XLIB)
#define SharedXieReqs $(LDPRELIBS) $(XLIBONLY)
#define SharedSMReqs $(LDPRELIBS) $(ICELIB)
#define SharedXpReqs $(LDPRELIBS) $(XLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs $(LDPOSTLIBS)
#define SharedXmReqs $(LDPRELIBS) SharedXReqs
#define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs
/* #define SharedPamReqs */
#define SharedTtReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB) SharedThreadReqs $(CXXLIB)
#define SharedDtSvcReqs $(LDPRELIBS) $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtSearchReqs $(LDPRELIBS) -lm
#define SharedDtWidgetReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm -liconv
#define SharedDtPrintReqs $(LDPRELIBS) $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtTermReqs $(LDPRELIBS) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMrmReqs $(LDPRELIBS) $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMailReqs $(LDPRELIBS) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv -lm $(CXXLIB)
#define SharedCsaReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
ICONVSYSLIB = -liconv

View file

@ -1,34 +0,0 @@
XCOMM platform: $XConsortium: pegasus.cf /main/38 1996/09/28 16:12:05 rws $
#ifndef OSName
#define OSName UTek 4.0
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define HasNdbm YES
#define HasVoidSignalReturn NO
#define BootstrapCFlags -DM4310 -DUTEK
#define StandardDefines -DM4310 -DUTEK -Dpegasus
#if HasGcc
/* put back all of the -Ds which -ansi removes */
#define CcCmd gcc -ansi -fstrength-reduce -fpcc-struct-return -Dmc68000 -Dtektronix -Dutek -Dunix -Dm68k
#endif
#define BuildServer NO
/* #define XtekServer YES */
#define ServerExtraDefines -DM4310 -DM4317
#define ServerOSDefines -DDDXTIME
#define FontFilters BDFTOSNFFILT SHELLPATH
#define PrimaryScreenResolution 95
.DIRECTORIES: /* Turn off directory search for RCS */

View file

@ -1,72 +0,0 @@
XCOMM platform: $XConsortium: sco.cf /main/5 1996/12/04 10:12:36 swick $
#ifndef OSName
#define OSName SCO OpenServer Release 5
#endif
#ifndef OSVendor
#define OSVendor SCO
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 0
#endif
#if OSMajorVersion < 5 /* Must be 3.2v4 (not fully tested) */
#define StandardDefines -Dsco -Dsco324 -DSYSV -Di386
#else
#define StandardDefines -Dsco -DSYSV -Di386
#define DefaultCCOptions -b elf
#endif
#define CcCmd cc
#define NeedWidePrototypes NO
#define ServerExtraDefines -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV
#define ServerOSDefines -DDDXTIME -DDDXOSINIT -DSERVER_LOCK
#define ToolkitStringsABIOptions -intelabi
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#define ExtraLibraries -lsocket
#define ExtraLoadOptions -b elf
#define ThreadedX NO
#define HasThreadSafeAPI NO
#define HasNdbm YES
#define HasVFork YES
#define ExecableScripts YES
#define HasShadowPasswd YES
XCOMM Uncomment the following line to build static COFF libraries
XCOMM #define ForceNormalLib YES
#define SharedLibXmu NO
#define XnestServer YES
#define SystemV YES
#define LdCombineFlags -r
#define HasLdRunPath YES
#define HasPoll YES
#define PatheticCpp YES
#define Malloc0ReturnsNull YES /* in case -lmalloc used */
#define ArCmdBase ar
#define AsCmd as
#define CppCmd /lib/cpp
#define LdCmd ld
#define LexCmd lex
#define MakeCmd make
#define YaccCmd yacc
#define ConnectionFlags -DUNIXCONN -DLOCALCONN -DTCPCONN -DFD_SETSIZE=256
#include <scoLib.rules> /* minor changes to sv4Lib.rules */
#include <sv4Lib.rules>
#define DtSvcDefines -DMULTIBYTE
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines

View file

@ -1,42 +0,0 @@
XCOMM $XConsortium: scoLib.rules /main/2 1996/09/28 16:12:20 rws $
/*
* SharedLibraryTarget3 - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*
* Work around SCO sh enviroment size problem.
*/
#ifndef SharedLibraryTarget3
#define SharedLibraryTarget3(libname,rev,solist1,solist2,solist3,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist1 solist2 solist3 $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
echo -n $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist1 " " > Concat(down/lib,cmd) @@\
echo -n solist2 " " >> Concat(down/lib,cmd) @@\
echo -n solist3 >> Concat(down/lib,cmd) @@\
(cd down; $(SHELL) Concat(./lib,cmd)) @@\
$(RM) $@ Concat(lib,tmp1) Concat(lib,tmp2) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* Redefine this so we can drop -b elf and build COFF objects for the
* archived library. This assumes -b elf is hanging out in CCOPTIONS
*/
#ifndef UnsharedLibObjCompile
#define UnsharedLibObjCompile(options) RemoveFile($@) @@\
ClearmakeOSName \
$(CC) -c $(CDEBUGFLAGS) $(THREADS_CFLAGS) $(ALLDEFINES) options $*.c @@\
$(MV) $@ unshared/$@
#endif

View file

@ -1,89 +0,0 @@
XCOMM platform: $TOG: sequent.cf /main/5 1999/05/19 16:59:58 mgreess $
/*
* SET VERSION NUMBERS BEFORE MAKING MAKEFILES; also, you'll need to install
* util/scripts/bsdinstall.sh before doing a "make install"
*/
#if defined(DynixPtxArchitecture) || defined(_SEQUENT_)
# ifndef OSName
# define OSName Dynix/ptx
# endif
# ifndef OSMajorVersion
# define OSMajorVersion 2
# endif
# ifndef OSMinorVersion
# define OSMinorVersion 0
# endif
# define SystemV YES
# define SymbolTableFlags
# define DefaultCCOptions SymbolTableFlags
# define SharedLibraryCCOptions DefaultCCOptions
# define StandardDefines -DSYSV
# define MotifDefines -DSTRINGS_ALIGNED -DNO_REGCOMP
# define ExtraLibraries $(XBSDLIB) -lsocket -linet -lnsl -lseq
# define XmExtraLibraries /* -lgen (not official i386 ABI?) */
# define NeedBerklib YES
# define HasShadowPasswd YES
# define InstallXdmConfig YES
# define HasSockets YES
/*
* Plan to remove Prototypes defines and use -Xc with
* Dynix/ptx:
* OSMajorVersion=4
* OSMinorVersion=0
* Using -Xc with Version 4.0 will elliminate most warnings
*/
# define NeedFunctionPrototypes YES
# define NeedNestedPrototypes YES
# define NeedConstPrototypes YES
# define NeedVarargsPrototypes YES
/*
* unfortunately pbmplus uses this...
*/
RANLIB = :
#endif /* defined(DynixPtxArchitecture) || defined(_SEQUENT_) */
#if defined(Dynix3Architecture) || defined(sequent)
# ifndef OSName
# define OSName Dynix 3
# endif
# ifndef OSMajorVersion
# define OSMajorVersion 3
# endif
# ifndef OSMinorVersion
# define OSMinorVersion 2
# endif
# define SymbolTableFlags -W0,-Nn7500 -W0,-Nd10000
# define DefaultCCOptions SymbolTableFlags
# define StandardDefines -DX_NOT_STDC_ENV -DX_NOT_POSIX
# define ExtraLibraries -lseq
# define HasVoidSignalReturn NO
# define HasBsearch NO
# define SetTtyGroup YES
#endif /* defined(Dynix3Architecture) || defined(sequent) */
#define BuildServer NO
#define BuildXInputLib NO
#define BuildPexClients NO
#define BuildMotifConfig NO
#define BuildMotifDemos NO
#define BuildWMLTable NO
#define LnCmd ln -s
/* libgen is not part of the i386 ABI. (Are both architectures i386??) */
#define UseLocalRegex YES

View file

@ -1,258 +0,0 @@
XCOMM platform: $TOG: sgi.cf /main/49 1998/02/26 09:12:19 barstow $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
#if OSMajorVersion < 4
/* We do not guarantee this will work */
#define BootstrapCFlags -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
#define StandardDefines -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
#define SetTtyGroup NO
#else
#define HasPlugin YES
#define SetTtyGroup YES
#define ExtraFilesToClean so_locations
#endif
#if OSMajorVersion < 5
#define SystemV YES
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#else
#define BootstrapCFlags -DSVR4
#define StandardDefines -DSVR4
#define SystemV4 YES
#define HasWChar32 YES
#define HasVFork NO
#if OSMajorVersion < 6
#define XawI18nDefines -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
#else
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#endif
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#ifndef ExtraLoadFlags
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#endif
#endif
/*
* To build 64-bit binaries define Mips64Architecture in your site.def or
* host.def file. This is usually on done at the X Consortium to test
* big endian 64-bit cleanliness.
* To build 32-bit binaries using the old 32-bit mode, define
* NoMipsN32Archtecture in your site.def or host.def file.
* Otherwise the default is to use the "new 32" mode as requested by SGI.
*/
#ifndef MipsN32Architecture
#if !defined(Mips64Architecture) && !defined(NoMipsN32Architecture)
#define MipsN32Architecture YES
#endif
#endif
#ifdef Mips64Architecture
# define BuildLibPathVar _RLD_ROOT=/dev/null LD_LIBRARY64_PATH
# define SystemBuildLibPath /usr/lib64:/lib64
# define LdCmd ld -64
#elif defined(MipsN32Architecture)
# define BuildLibPathVar _RLD_ROOT=/dev/null LD_LIBRARYN32_PATH
# define SystemBuildLibPath /usr/lib32:/lib32
# define LdCmd ld -n32
#else
# define BuildLibPathVar _RLD_ROOT=/dev/null LD_LIBRARY_PATH
# define SystemBuildLibPath /usr/lib:/lib
#endif
#define HasCplusplus YES
#define Malloc0ReturnsNull YES /* IRIX [56].x -lmalloc needs this */
#define HasPutenv YES
#define ExecableScripts YES
#define HasNdbm YES
#define HasPoll YES
#define ExpandManNames YES
#ifndef BuildXInputExt
#define BuildXInputExt YES
#endif
#if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 2)
#define NeedVarargsPrototypes YES
#define NeedConstPrototypes YES
#define NeedWidePrototypes NO
#endif
#include <sgiLib.rules>
#if OSMajorVersion < 5
#define SymbolTables -Wf,-XNp16000,-XNd16000,-XNh2000
#define PexSymbolTables -Wf,-XNp15000,-XNd15000,-XNh2000
#define ServerSymbolTables -Wf,-XNp8000,-XNh2000,-XNd8000
#else
#define SymbolTables
#define PexSymbolTables
#define ServerSymbolTables
#endif
/* this is for floating point, ANSI cpp */
#if OSMajorVersion < 5
/* Extra libraries provide : yp, sysV malloc, shared libc, and widechar */
# define ExtraLibraries -lsun -lmalloc -lc_s -lw
# define sgiCCOptions -xansi -D__STDC__=1 -float
#else
# if OSMajorVersion < 6
# define sgiCCOptions -xansi
# else
# define CppCmd cc -E -cckr
# ifdef Mips64Architecture
/* set Mips64Architecture in host.def. Usually don't need it but we
* (the X Consortium) want a 64-bit big-endian machine to test on. */
# define sgiCCOptions -xansi -mips3 -64
# define DlLibrary /**/
# elif defined(MipsN32Architecture)
/* Set MipsN32Architecture to build "new" 32-bit objs with a 32-bit kernel. */
# define sgiCCOptions -xansi -mips3 -n32
# else
# define sgiCCOptions -xansi
# endif
# if OSMinorVersion == 2
/* if you haven't installed patch 1361, 1403, or 1645 on IRIX 6.2 then you
* must add "#define HasPosixThreads NO" in your site.def or host.def file
*/
# ifndef HasPosixThreads
# define HasPosixThreads YES
# endif
# define ThreadedX HasPosixThreads
# define ThreadsLibraries -lpthread
/*
* Add "#define HasSgiThreadsPatch1403 YES" to your site.def or host.def if
* that's which patch you have.
*/
# ifndef HasSgiThreadsPatch1403
# define HasSgiThreadsPatch1403 NO
# endif
# if (HasSgiThreadsPatch1403)
# define SystemMTDefines -D_POSIX_THREAD_SAFE_FUNCTIONS
# endif
# endif
# endif
/* SGI's -lsocket -lnsl is broken, at least in 5.2, so override here */
# define ExtraLibraries /**/
#endif
#define DefaultCCOptions sgiCCOptions SymbolTables
#define PexCCOptions sgiCCOptions PexSymbolTables
#define ServerCCOptions sgiCCOptions ServerSymbolTables
/* For SGI C++ compiler, need to search extra dirs in make depend */
#ifndef CplusplusDependIncludes
#define CplusplusDependIncludes -I/usr/include/CC
#endif
/* At SGI, we don't need this */
#define ConstructMFLAGS NO /* build MFLAGS from MAKEFLAGS */
/* Used only for compressed fonts */
#define UNCOMPRESSPATH /usr/bsd/uncompress
/* Normally used only to conditionally chose the default font path order */
#define PrimaryScreenResolution 96
/* Override Imake.tmpl's "-X" flag */
#define LdCombineFlags -r
/* Installation Build Parameters */
#define InstKmemFlags -m 2711 -g sys
#define ArCmd ar scq
/* for xdm or anyone else to use */
#define DefaultUserPath :/usr/sbin:/usr/bsd:/usr/bin:/bin:$(BINDIR):/etc:/usr/etc
#define DefaultSystemPath /usr/sbin:/usr/bsd:/bin:/etc:/usr/bin:/usr/etc:$(BINDIR)
#ifndef BuildServer
#define BuildServer NO
#endif
#define ServerOSDefines -DDDXTIME
/* only need this for binary compatibility with their ddx */
#ifndef Mips64Architecture
#define ServerExtraDefines -DNEED_LINEHELPER AllocateLocalDefines
#else
#define ServerExtraDefines -D_XSERVER64 -DNEED_LINEHELPER AllocateLocalDefines
#endif
/* Changed to a single shell command for pmake/smake */
#if OSMajorVersion < 5
/*
* NormalLibObjCompile - compile fragment for a library object file
* do ld -x to remove line number symbols for libraries
*/
#define NormalLibObjCompile(options) ClearmakeOSName \
$(RM) $@ $*.os \ @@\
&& $(CC) -c options $(CFLAGS) $*.c \ @@\
&& $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
&& $(MV) $*.os $@
#endif
#define LibObjCompile(dir,options) ClearmakeOSName \
$(RM) $@ dir/$@ \ @@\
&& $(CC) -c $(CCOPTIONS) $(ALLDEFINES) options $*.c \ @@\
&& $(MV) $@ dir/$@
#ifndef HasMakefileSafeInclude
#define HasMakefileSafeInclude YES
#endif
#ifndef IncludeMakefile
#define IncludeMakefile(file) @@sinclude file
#endif
/* needs to find nroff on the system to work */
#ifndef ManKeywordsTarget
#define ManKeywordsTarget(manpath) @@\
man_keywords:: @@\
/usr/lib/makewhatis -M $(DESTDIR)manpath $(DESTDIR)manpath/whatis
#endif
#define MotifDefines -DSYS_DIR -DPORT_NOVFORK -DNO_REGCOMP
#ifndef CppFileTarget
#define CppFileTarget(dst,src,defs,deplist) @@\
dst:: src deplist @@\
RemoveFile($@) @@\
ClearmakeOSName \
$(CPP) CppNoLineInfoOption defs src 2>/dev/null | CppSedMagic >$@; @@\
@@\
clean:: @@\
RemoveFiles(dst)
#endif /* CppFileTarget */
#ifndef CppScriptTarget
#if ExecableScripts /* can use #! instead of colon */
#define CppScriptTarget(dst,src,defs,deplist) @@\
dst:: src deplist @@\
RemoveFile($@) @@\
ClearmakeOSName \
$(CPP) CppNoLineInfoOption defs src | CppSedMagic >$@ @@\
chmod a+x $@ @@\
@@\
clean:: @@\
RemoveFiles(dst)
#else
#define CppScriptTarget(dst,src,defs,deplist) @@\
dst:: src deplist @@\
RemoveFile($@) @@\
ClearmakeOSName \
echo \: >$@ @@\
sed '1d' src | $(CPP) CppNoLineInfoOption defs | CppSedMagic >>$@ @@\
chmod a+x $@ @@\
@@\
clean:: @@\
RemoveFile(dst)
#endif /* ExecableScripts */
#endif /* CppScriptTarget */

View file

@ -1,166 +0,0 @@
XCOMM $XConsortium: sgiLib.rules /main/16 1996/09/28 18:11:04 rws $
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#if OSMajorVersion < 5
#ifndef SharedDataSeparation
#define SharedDataSeparation YES
#endif
#define SharedCodeDef -DSHAREDCODE
#define SharedLibraryDef -DATTSHAREDLIB
#define PositionIndependentCFlags -G 0
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we don't hose people by having
* the library gone for long periods.
*/
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat3(lib,libname,_s)) @@\
@@\
Concat3(lib,libname,_s): sharedlib.o solist Concat(lib,libname.spec) $(EXTRALIBRARYDEPS) @@\
$(RM) $@ $@.a \ @@\
&& cd down \ @@\
&& mkshlib -s Concat(up/lib,libname.spec) -t up/$@ -h up/$@.a \ @@\
&& ar rs up/$@.a sharedlib.o @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary($@.a) @@\
@@\
clean:: @@\
$(RM) Concat3(lib,libname,_s) Concat3(lib,libname,_s.a)
#define SharedLibraryDataTarget(libname,rev,salist)
/*
* InstallSharedLibrary - generate rules to install the shared library.
* NOTE: file must be executable, hence "INSTBINFLAGS"
*/
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat3(lib,libname,_s) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat3(lib,libname,_s.a) $(DESTDIR)dest @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat3(lib,libname,_s) $(DESTDIR)dest
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#define InstallSharedLibraryData(libname,rev,dest) @@\
InstallTarget(install,Concat3(lib,libname,_s.a),$(INSTLIBFLAGS),dest)
#else /* OSMajorVersion >= 5 */
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <sgiLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#if OSMajorVersion < 6
#define SharedLibraryLoadFlags -shared
#else
#ifndef Mips64Architecture
#define SharedLibraryLoadFlags -shared
#else
#define SharedLibraryLoadFlags -shared -mips3
#endif
#endif
#endif
/* -KPIC is redundant, PIC is always used unless you specify -non_shared */
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -KPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -KPIC
#endif
/*
* SGI's cc passes an undocumented flag to ld that causes it to look for
* -lX11 and force use of libX11.so.1. And it can't be turned off. Sigh.
* So we install one of those, too, in the shared library install target.
*/
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so) @@\
if [ "libname" = X11 ]; then \ @@\
RemoveFile(Concat($(DESTDIR)dest/lib,libname.so.1)); \ @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so.1);\ @@\
fi
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
/*
* SGI's cc passes an undocumented flag to ld that causes it to look for
* -lX11 and force use of libX11.so.1. Sigh. So we make one of those, too,
* in the shared library build target.
*/
#ifndef sgiX11soHack
#ifdef UseInstalled
#define sgiX11soHack(libname) /**/
#else
#define sgiX11soHack(libname) if [ "libname" = X11 ]; then \ @@\
RemoveFile($(BUILDLIBDIR)/Concat(lib,libname.so.1)); \ @@\
cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/$@ Concat(lib,libname.so.1); \ @@\
fi
#endif
#endif /* sgiX11soHack */
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -soname $@ solist $(REQUIREDLIBS)) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
sgiX11soHack(libname) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so) so_locations
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
#endif /* OsMajorVersion < 5 else */

View file

@ -1,14 +0,0 @@
XCOMM $XConsortium: sgiLib.tmpl /main/2 1996/09/28 16:12:44 rws $
/*
* SGI shared library template
*/
#define SharedXtReqs $(LDPRELIBS) $(XLIBONLY) -delay_load $(SMLIB) -delay_load $(ICELIB)
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLONLYLIB)
#define SharedXawReqs -lw
#define SharedXpReqs $(LDPRELIBS) $(XLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) -lgen
#define SharedXmReqs $(LDPRELIBS) SharedXReqs
#define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs

View file

@ -1,92 +0,0 @@
XCOMM site: $TOG: site.def /main/26 1997/09/05 11:31:50 samborn $
/***************************************************************************
* *
* X Consortium In-House Build Parameters *
* Use at Your Own Risk *
* *
***************************************************************************/
#ifndef SiteIConfigFiles
# define SiteIConfigFiles $(IRULESRC)/host.def
# define LocalConfigFiles host.def
#endif
#ifdef BeforeVendorCF
# include <host.def>
/* CDE uses a .C suffix for C++ source, not the default .cxx */
# define CCsuf C
/* We will import x11 and Motif. */
# define ImportX11 YES
# define ImportMotif YES
# ifndef TopLevelProject
# define TopLevelProject DtInfo
# endif
/* On systems where cpp doesn't correctly expand macros in include directives
* the following two macros need to be defined, rather than derived from the
* TopLevelProject macro defined above.
*/
# if defined(SunArchitecture) || defined(AIXArchitecture) \
|| defined(USLArchitecture) || defined(UXPArchitecture)
# ifndef ProjectRulesFile
# define ProjectRulesFile <DtInfo.rules>
# endif
# ifndef ProjectTmplFile
# define ProjectTmplFile <DtInfo.tmpl>
# endif
# endif
# if defined(UXPArchitecture) || defined(USLArchitecture) \
|| defined(AIXArchitecture)
# define HasCplusplus YES
# endif
# ifdef AlphaArchitecture
# define HasDECCplusplus YES
# endif
# ifdef HPArchitecture
# define HasHPCplusplus YES
# define CplusplusExtraDefines -ptr/dev/null -ti,/bin/true -tr,/bin/true
# endif
# ifdef SunArchitecture
# define HasSunCplusplus YES
# endif
# ifdef UXPArchitecture
# define CplusplusExtraDefines -ptr/dev/null
# endif
#endif /* BeforeVendorCF */
#ifdef AfterVendorCF
# ifdef SunArchitecture
# if CplusplusCompilerMajorVersion > 3
/* # define CplusplusExtraDefines -ptr/proj/cde/programs/dtinfo/dtinfo/src */
# ifdef SVR4Architecture
# ifdef StandardDefines
# undef StandardDefines
# endif
# define StandardDefines -DSVR4 -Dsun -DSC3
# endif
# else
# define CplusplusExtraDefines -ptr/dev/null
# endif
# endif
#ifndef X11ProjectRoot
# define X11ProjectRoot /X11
#endif
#ifndef ProjectRoot
# define ProjectRoot /usr/dt
#endif
#endif /* AfterVendorCF */

View file

@ -1,103 +0,0 @@
XCOMM platform: $XConsortium: sony.cf /main/69 1996/09/29 18:19:36 kaleb $
#ifdef SonyBsdArchitecture
#ifndef OSName
#define OSName NEWS-OS 4.2.1C
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 2
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 1
#endif
#define SetTtyGroup YES
#define HasVoidSignalReturn NO
#define HasNdbm YES
#define DirFailPrefix -
#define InstKmemFlags -g kmem -m 2711
#define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
#define DefaultSystemPath /etc:/usr/etc:/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
#ifdef MipsArchitecture
#define ExtraLibraries -lmld
#define LintOpts -ax
#define LintLibFlag -o
#define DefaultCCOptions -Wf,-XNh2000,-XNd6000,-XNp10000 -Olimit 2000
#define PexCCOptions -Wf,-XNh2000,-XNd15000,-XNp15000 -Olimit 2000
#else
#define HasFortran YES
#endif
#if OSMajorVersion >= 4
#define HasShm YES
#define HasPutenv YES
#define HasSecureRPC YES
#define XdmDir /etc/xdm
#if OSMinorVersion >= 1
#define HasBsearch YES
#else
#define HasBsearch NO
#endif
#else
#define StandardDefines -DNOSTDHDRS
#define HasBsearch NO
#endif
#else
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
#define BootstrapCFlags -Dsony
#define SystemV4 YES
#define HasVFork NO
#define CcCmd /usr/bin/cc
#define LdCmd /usr/bin/ld
#if OSMajorVersion >= 6
#define DefaultCCOptions -Xa -Wf,-XNp9000,-XNd6000
#define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
#define SharedLibraryLoadFlags -G -rpath $(USRLIBDIRPATH)
#define PositionIndependentCFlags -K PIC -Wx,-G 0
#define PositionIndependentCplusplusFlags -K PIC -Wx,-G 0
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define FixupLibReferences() /**/
#include <sv4Lib.rules>
#else
#define DefaultCCOptions -Wf,-XNp9000,-XNd6000
#define PexCCOptions -Wf,-XNp15000,-XNd15000
#endif
#endif
/*
* SONY C++ compiler is based on vanilla cfront, which means it
* refuses to compile files unless their names end in ".C". We
* have to completely override .SUFFIXES to avoid using the builtin
* .C to .o rule in cases where the link to foo.C is already there,
* because the builtin rule doesn't use the right compilation flags.
*/
.SUFFIXES:
.SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
#define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
$(CXX) -c $(CXXFLAGS) options $*.C
XCOMM operating system: OSName
#ifndef BuildServer
#define BuildServer NO
#endif

View file

@ -1,367 +0,0 @@
XCOMM platform: $TOG: sun.cf /main/176 1997/12/09 17:27:51 kaleb $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
/*
* Compiler setup. This sun.cf file knows what options to use with
* certain compilers, including Sun C, CenterLine C, and gcc. It
* also understands how to set some of the options for various C++
* compilers, including Sun C++ and CenterLine C++.
*
* === C Compiler Setup ==========================================
*
* For SunPro C, define HasSunC to YES in site.def.
* For CenterLine C, define HasCenterLineC to YES in site.def
* For gcc or gcc2, define HasGcc or HasGcc2 to YES in site.def
* For other compilers, define HasSunC to NO in site.def, then
* provide appropriate values for the various compiler related
* configuration varibles used here.
*
* If you don't tell us which C compiler you have, we assume you have
* the SunPro C compiler under Solaris 2.x, and the bundled /bin/cc
* under SunOS 4.1.x
*
* === C++ Compiler Setup ==========================================
*
* For SunPro C++, define HasSunCplusplus to YES in site.def
* For CenterLine C++, define HasCenterLineCplusplus to YES in site.def
* For Gnu 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.
*
* If you say you have the SunPro C++ compiler, we assume you have
* version 3.0.x of the compiler. If you have version 4.0.x instead,
* define CplusplusCompilerMajorVersion as 4 in site.def.
*
*/
#ifndef HasSunC
# if (HasCenterLineC || HasGcc || HasGcc2 || OSMajorVersion < 5)
# define HasSunC NO
# else
# define HasSunC YES
# endif
#endif
#if HasSunC
# ifndef CCompilerMajorVersion
# define CCompilerMajorVersion DefaultSunProCCompilerMajorVersion
# endif
# ifndef CCompilerMinorVersion
# define CCompilerMinorVersion DefaultSunProCCompilerMinorVersion
# endif
XCOMM SunPro C CCompilerMajorVersion./**/CCompilerMinorVersion
#endif
#if HasSunCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef CplusplusCompilerMajorVersion
# ifdef DefaultSunProCplusplusCompilerMajorVersion
# define CplusplusCompilerMajorVersion DefaultSunProCplusplusCompilerMajorVersion
# else
# define CplusplusCompilerMajorVersion 3
# endif
# endif
# ifndef CplusplusCompilerMinorVersion
# ifdef DefaultSunProCplusplusCompilerMinorVersion
# define CplusplusCompilerMinorVersion DefaultSunProCplusplusCompilerMinorVersion
# else
# define CplusplusCompilerMinorVersion 0
# endif
# endif
XCOMM SunPro C++ CplusplusCompilerMajorVersion./**/CplusplusCompilerMinorVersion
#endif
#if HasCenterLineC
# ifndef CcCmd
# define CcCmd clcc
# endif
#endif
#if HasCenterLineCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef DefaultCplusplusOptions
# define DefaultCplusplusOptions -Xa
# endif
# ifndef CplusplusOptions
# define CplusplusOptions -Xa
# endif
#endif
#if OSMajorVersion < 4 || (OSMajorVersion == 4 && OSMinorVersion < 1)
/* We do not guarantee this will work */
# define BootstrapCFlags -DNOSTDHDRS
# define StandardDefines -DNOSTDHDRS
# define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
#if OSMajorVersion == 4
# if OSMinorVersion == 1
# define HasPoll YES
# endif
# if OSMinorVersion > 1 || (OSMinorVersion == 1 && OSTeenyVersion > 1)
/* You ALSO need this if you have Sun ld patch 100170-06 or later to 4.1.1 */
# define SunPost411FCSLd YES
# endif
#endif
#ifdef i386Architecture
# if OSMajorVersion > 4
# define ServerExtraDefines AllocateLocalDefines XFree86ServerDefines
# define ServerOSDefines XFree86ServerOSDefines
# else
# define ServerExtraDefines AllocateLocalDefines
# define ServerOSDefines -DDDXOSINIT
# endif
#else
# define ServerExtraDefines AllocateLocalDefines
# define ServerOSDefines -DDDXOSINIT
# define HasPlugin YES
#endif
#define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
#if OSMajorVersion > 4
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DLOCALCONN
#if HasSunC
/*
* Assume /opt/SUNWspro/bin/ contains symlinks to the appropriate tools
*/
#ifndef CcCmd
# define CcCmd /opt/SUNWspro/bin/cc
#endif
#ifndef CplusplusCmd
# define CplusplusCmd /opt/SUNWspro/bin/CC
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /opt/SUNWspro/bin/c++filt
#endif
#ifndef CplusplusDependIncludes
#if CplusplusCompilerMajorVersion > 3
# define CplusplusDependIncludes -I/opt/SUNWspro/SC4.0/include/CC
#elif CplusplusCompilerMajorVersion > 2
# define CplusplusDependIncludes -I/opt/SUNWspro/SC3.0/include/CC
#else
# define CplusplusDependIncludes -I/opt/SUNWspro/SC2.0.1/include/CC
#endif
#endif
#endif
# if HasSunC && (CCompilerMajorVersion < 3)
# define BootstrapCFlags -DSVR4
# else
# define BootstrapCFlags /* none needed */
# endif
# ifndef XawI18nDefines
# if OSMinorVersion < 4
# define XawI18nDefines -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
# else
# define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
# endif
# endif
# if OSMinorVersion > 3
# define InstallCmd /usr/ucb/install
# endif
# ifdef i386Architecture
# define StandardDefines -Dsun -Di386 -DSVR4 -D__i386
# define ToolkitStringsABIOptions -intelabi
# else
# define StandardDefines -Dsun -DSVR4
# define ToolkitStringsABIOptions -sparcabi
# endif
# define ExtraLibraries -lsocket -lnsl
# if OSMinorVersion > 1
# define ThreadedX YES
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
# if HasSunC && CCompilerMajorVersion > 2
# define ThreadsCompileFlags -mt
# else
# define SystemMTDefines -D_REENTRANT
# define ThreadsLibraries -lthread
# endif
# if HasSunCplusplus && CplusplusCompilerMajorVersion > 3
# define ThreadsCplusplusCompileFlags -mt
# else
# define CplusplusSystemMTDefines -D_REENTRANT
# define ThreadsCplusplusLibraries -lthread
# endif
# endif /* OSMinorVersion > 1 */
# ifndef UseExportLists
# define UseExportLists YES
# endif
# define HasVFork NO
# define InstKmemFlags -g sys -m 2711
# define ShLibIncludeFile <sunLib.tmpl>
/*
* Set flags for position independent code before including sv4Lib.rules
* if the compiler in use doesn't use standard SVR4 flags
*/
# if HasSunC || HasCenterLineC
# define PositionIndependentCFlags -Kpic
# define LargePositionIndependentCFlags -KPIC
# endif
# if HasSunCplusplus || HasCenterLineCplusplus
# define PositionIndependentCplusplusFlags -pic
# define LargePositionIndependentCplusplusFlags -PIC
# endif
#else /* not OSMajorVersion > 4 */
#define InstKmemFlags -g kmem -m 2711
#include <sunLib.rules>
#endif /* OSMajorVersion > 4 (else) */
#define BuildLibPathVar LD_LIBRARY_PATH
#define HasNdbm YES
#define HasShm YES
#define HasSecureRPC YES
#define SetTtyGroup YES
#define HasPutenv YES
#ifndef i386Architecture
# ifndef Xsun24Server
# define Xsun24Server NO /* color, mono, multiple depths */
# endif
# ifndef XsunServer
# define XsunServer YES /* color and mono, 8 bit only */
# endif
# ifndef XsunMonoServer
# define XsunMonoServer NO /* monochrome only */
# endif
#endif /* not i386Architecture */
#if HasGcc || HasGcc2
# if OSMajorVersion > 4 && defined(i386Architecture)
# ifndef DefaultCCOptions
# define DefaultCCOptions -DNO_ASM
# endif
# endif
# if HasGcc2
# ifndef OptimizedCDebugFlags
# ifdef i386Architecture
# define OptimizedCDebugFlags -m486 DefaultGcc2i386Opt
# else
# define OptimizedCDebugFlags -O2
# endif
# endif
# else
# define SharedLibraryCcCmd cc
# define ExtraLoadFlags -B/usr/bin/
# define AllocateLocalDefines /**/
.c.o:
ClearmakeOSName $(CC) -c $(CFLAGS) $*.c
# endif /* HasGcc2 (else) */
#else /* not HasGcc, not HasGcc2 */
# define AllocateLocalDefines -DINCLUDE_ALLOCA_H
/* Set up compiler-dependent options for Sun C */
# if HasSunC
# ifdef Sun3Architecture
# ifndef DefaultCCOptions
# define DefaultCCOptions -f68881 -pipe
# endif
# else /* not defined(Sun3Architecture) */
# if OSMajorVersion < 5
# ifndef DefaultCCOptions
# define DefaultCCOptions -pipe
# endif
# else /* OSMajorVersion >= 5*/
# ifndef DefaultCCOptions
# define DefaultCCOptions -Xa
# endif
# endif
# endif
# endif
/* Set compiler-dependent options for CenterLine C */
# if HasCenterLineC
# ifndef DefaultCCOptions
# define DefaultCCOptions -Xt -w1 -DANSICPP -U__HIGHC__
# endif
# ifndef NeedConstPrototypes
# define NeedConstPrototypes YES
# endif
# ifndef NeedNestedPrototypes
# define NeedNestedPrototypes YES
# endif
# ifndef NeedVarargsPrototypes
# define NeedVarargsPrototypes YES
# endif
# endif
# define PexCCOptions DefaultCCOptions
#endif /* HasGcc || HasGcc2 (else) */
#if OSMajorVersion < 5
# define SharedAllocateLocalDefines -DINCLUDE_ALLOCA_H
# define LibraryCCOptions /* don't want special floating point */
#endif /* OSMajorVersion < 5 */
#if OSMajorVersion > 4
# include <svr4.cf>
#endif
#ifndef ManKeywordsTarget
# define ManKeywordsTarget(manpath) @@\
man_keywords:: @@\
catman -M $(DESTDIR)manpath -w
#endif
#if !defined(UsePamLibrary)
# if (OSMajorVersion > 5) || ((OSMajorVersion == 5) && (OSMinorVersion >= 4))
# define UsePamLibrary YES
# endif
#endif
#define MotifDefines \
-DNO_ISDIR -DNO_REGCOMP -DNO_ALLOCA -DBOGUS_MB_MAX -DNO_CONST
#define PamUnixDefines -DPAM_NIS
#define TtLargePICTable YES
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
#define baseDtMailDefines \
-DSunOS=OSMajorVersion\#\#OSMinorVersion -DMMAP_NORESERVE -DSPRO_V2
#ifndef i386Architecture
# define DtMailDefines baseDtMailDefines
#else
# define DtMailDefines -DBIG_ENDIAN baseDtMailDefines
#endif
#define ArchitectureDefines -DSUN_ARCHITECTURE
#define TtClientExtraLibs ExtraLibraries -ldl -lintl
#define ExportListGenSource elistgen.sun
#define ShlibExportListOpt(filename) -M filename
#define CdeProjectDefines \
-DMULTIBYTE -DNLS16 -DMESSAGE_CAT -D_XOPEN_VERSION=4 \
-D_XOPEN_SOURCE -D__EXTENSIONS__ \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion

View file

@ -1,111 +0,0 @@
XCOMM $XConsortium: sunLib.rules /main/15 1996/09/28 16:13:16 rws $
/*
* SunOS shared library rules
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation YES
#endif
#ifndef SharedCodeDef
#define SharedCodeDef -DSHAREDCODE
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef -DSUNSHLIB
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <sunLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -assert pure-text
#endif
#ifndef PositionIndependentCFlags
#if HasGcc2
#define PositionIndependentCFlags -fpic
#else
#define PositionIndependentCFlags -pic
#endif
#endif
#ifndef PositionIndependentCplusplusFlags
#if HasGcc2ForCplusplus
#define PositionIndependentCplusplusFlags -fpic
#else
#define PositionIndependentCplusplusFlags -pic
#endif
#endif
/*
* SharedDSLibDependencies - shared library dependencies with data separation
*/
#ifndef SharedDSLibDependencies
#define SharedDSLibDependencies(libname,libsource,revname) _UseCat($(USRLIBDIR)/lib,libsource/lib,libname.sa.$(revname))
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
InstallTarget(install,Concat(lib,libname.so.rev),$(INSTLIBFLAGS),dest)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest) @@\
install:: Concat(lib,libname.sa.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sa.rev) $(DESTDIR)dest @@\
RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,libname.sa.rev))
#endif /* InstallSharedLibraryData */
#if HasPurify
#define PureCleanSharedLibrary(libname,rev) @@\
clean clean.pure:: @@\
$(RM) Concat3(lib,libname,_pure_*.so.rev)
#else
#define PureCleanSharedLibrary(libname,rev) /**/
#endif
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
LinkBuildLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) @@\
@@\
PureCleanSharedLibrary(libname,rev)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist) @@\
AllTarget(Concat(lib,libname.sa.rev)) @@\
@@\
Concat(lib,libname.sa.rev): salist @@\
$(RM) $@ @@\
$(AR) $@ salist @@\
RanLibrary($@) @@\
LinkBuildLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sa.rev)
#endif /* SharedLibraryDataTarget */

View file

@ -1,90 +0,0 @@
XCOMM $TOG: sunLib.tmpl /main/47 1997/12/12 14:53:33 kaleb $
/*
* SunOS shared library template
*/
#if OSMajorVersion <= 4
# if SunPost411FCSLd
# define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
# endif
#ifndef SharedX11Rev
#define SharedX11Rev 4.30
#endif
#ifndef SharedOldXRev
#define SharedOldXRev 4.20
#endif
#ifndef SharedXtRev
#define SharedXtRev 4.20
#endif
#ifndef SharedXawRev
#define SharedXawRev 6.10
#endif
#ifndef SharedXmuRev
#define SharedXmuRev 4.20
#endif
#ifndef SharedXextRev
#define SharedXextRev 4.50
#endif
#ifndef SharedXiRev
#define SharedXiRev 4.20
#endif
#ifndef SharedXtstRev
#define SharedXtstRev 1.20
#endif
#ifndef SharedPexRev
#define SharedPexRev 1.10
#endif
#else /* else it's Solaris */
# if ThreadedX
# if OSMinorVersion > 3
# define SharedThreadReqs /**/
# define SharedX11Reqs /**/
# endif
# endif
# define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
# define FixupLibReferences() /**/
# define SharedPamReqs -ldl
# define SharedPamUnixReqs $(LDPRELIBS) -lpam $(LDPOSTLIBS) -lnsl -lmp -lcmd SharedThreadReqs
# define SharedPamSampleReqs $(LDPRELIBS) -lpam $(LDPOSTLIBS) SharedThreadReqs
# define SharedPamDialAuthReqs $(LDPRELIBS) -lpam $(LDPOSTLIBS) SharedThreadReqs
# define SharedPamRhostsAuthReqs $(LDPRELIBS) -lpam $(LDPOSTLIBS) -lsocket SharedThreadReqs
# define SharedPamDceAuthReqs $(LDPRELIBS) -lpam $(LDPOSTLIBS) -ldce -lnsl -lsocket SharedThreadReqs
# define SharedTtReqs -lnsl -lsocket -lintl -ldl -lc -lw
# define SharedDtSvcReqs $(LDPRELIBS) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS) SharedThreadReqs -lgen -lc -lsocket -lnsl -ldl
# define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS) SharedThreadReqs -lgen -lc -lsocket -lnsl -ldl
# define SharedDtSearchReqs -lm -lc
# define SharedDtWidgetReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) -lintl $(LDPOSTLIBS) -lw -lm -lc
# define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS) -lw -lgen -lm -lc
# define SharedDtPrintReqs $(LDPRELIBS) $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) -lintl $(LDPOSTLIBS) -lw -lm -lc
# define SharedDtTermReqs SharedDtHelpReqs -ldl -lgen
# define SharedDtMrmReqs $(LDPRELIBS) $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS) -lw -lsocket -lnsl -lc
# define SharedDtMailReqs $(LDPRELIBS) -lw $(CXXLIB) -lm -ldl
# define SharedCsaReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXmReqs
# define DtClientExtraLibs -lintl
/* The inbuf paramter to iconv(3) is "const char**", not "char **" */
ICONV_INBUF_DEFINE = -DICONV_INBUF_CONST=const
# if HasCplusplus
# if HasGcc2ForCplusplus
UNSHARED_CXXLIB = -static -lC
# elif HasSunCplusplus
# if CplusplusCompilerMajorVersion > 3
UNSHARED_CXXLIB = -Bstatic -L/opt/SUNWspro/SC4.0/lib -lC -Bdynamic
# else
UNSHARED_CXXLIB = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
# endif
# endif
# endif
# define IafSysLib /**/
# include <sv4Lib.tmpl>
#endif

View file

@ -1,109 +0,0 @@
XCOMM $TOG: sv4Lib.rules /main/19 1999/03/22 16:26:02 mgreess $
/*
* SVR4 shared library rules
*/
#ifndef HasSharedLibraries
# define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
# define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
# define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
# define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
# define ShLibIncludeFile <sv4Lib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -G -z text
#endif
#ifndef PositionIndependentCFlags
# if HasGcc2
# define PositionIndependentCFlags -fPIC
# else
# define PositionIndependentCFlags -K PIC
# endif
#endif
#ifndef PositionIndependentCplusplusFlags
# if HasGcc2ForCplusplus
# define PositionIndependentCplusplusFlags -fpic
# else
# define PositionIndependentCplusplusFlags -K PIC
# endif
#endif
#ifndef UseExportLists
# define UseExportLists NO
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
# define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
# define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
#ifndef LinkWithExports
# if UseExportLists
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist $(REQUIREDLIBS)) @@\
if [ -f Concat(lib,libname.elist) ]; then \ @@\
$(RM) down/$@.exports $@.list; \ @@\
$(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@.list; \ @@\
$(EXPORTLISTGEN) $@~ $@.list > down/$@.exports; \ @@\
(cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ ShlibExportListOpt($@.exports) solist $(REQUIREDLIBS)); \ @@\
$(RM) down/$@.exports $@.list; \ @@\
fi;
# else
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist $(REQUIREDLIBS))
# endif
#endif
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
# define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */

View file

@ -1,72 +0,0 @@
XCOMM $XConsortium: sv4Lib.tmpl /main/23 1996/12/04 10:11:01 swick $
/*
* SVR4 shared library template
*/
/* SVR4 shared libraries are deficient in link semantics */
XMULIBONLY = -lXmu
#ifndef FixupLibReferences
# define FixupLibReferences() @@\
XMULIB = $(XMULIBONLY) -z nodefs
#endif
#ifndef XawClientLibs
# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef SharedICEReqs
# define SharedICEReqs -lsocket
#endif
#if ThreadedX
# ifndef SharedThreadReqs
# define SharedThreadReqs -lthread
# endif
# ifndef SharedX11Reqs
# define SharedX11Reqs -lthread
# endif
#else
# ifndef SharedThreadReqs
# define SharedThreadReqs
# endif
#endif
#ifndef SharedXReqs
# define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs $(LDPOSTLIBS)
#endif
#ifndef SharedXmReqs
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lgen -lsocket -lnsl -lw -lc
#endif
#ifndef SharedMrmReqs
# define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lgen -lsocket -lnsl -lw -lc
#endif
#ifndef SharedUilReqs
# define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lgen -lsocket -lnsl -lw -lc
#endif
#ifndef SharedDtSvcReqs
# define SharedDtSvcReqs $(LDPRELIBS) $(TTLIB) $(XMLIB) SharedXReqs
#endif
#ifndef SharedDtMmdbReqs
# define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs
#endif
#ifndef SharedDtHelpReqs
# define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs
#endif
#ifndef DtClientExtraLibs
# define DtClientExtraLibs -lresolv
#endif
REGEXSYSLIB = -lgen
DYNLIBSYSLIB = -ldl
#ifndef IafSysLib
# define IafSysLib -liaf
#endif
IAFSYSLIB = IafSysLib

View file

@ -1,145 +0,0 @@
XCOMM $TOG: svr4.cf /main/17 1997/06/08 20:08:31 kaleb $
/*
* A default OS name
*/
#ifndef OSName
#ifdef i386Architecture
#define OSName UNIX System V/386 Release 4
#else
#define OSName UNIX System V Release 4
#endif
#endif
#ifndef OSVendor
#define OSVendor /**/
#endif
/*
* The default version will be 4.0.0 which should be
* the least common denominator of all SVR4
*/
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 0
#endif
#ifndef BootstrapCFlags
#ifdef i386Architecture
#define BootstrapCFlags -DSVR4 -Di386
#else
#ifdef SYSV386
#define BootstrapCFlags -DSVR4 -Di386
#else
#define BootstrapCFlags -DSVR4
#endif
#endif
#endif
/* Some stuff that all SVR4s should have */
#define SystemV4 YES
#ifndef HasLdRunPath
#define HasLdRunPath YES
#endif
#define HasPoll YES
#ifndef SVR4Architecture
#define SVR4Architecture
#endif
#ifndef PatheticCpp
#define PatheticCpp YES
#endif
#define Malloc0ReturnsNull YES /* in case -lmalloc used */
/*
* Here are the default paths to use to pick up tools for building.
*/
#ifndef ArCmdBase
#define ArCmdBase /usr/ccs/bin/ar
#endif
#ifndef AsCmd
#define AsCmd /usr/ccs/bin/as
#endif
#ifndef CppCmd
#define CppCmd /usr/ccs/lib/cpp
#endif
#ifndef LdCmd
#define LdCmd /usr/ccs/bin/ld
#endif
#ifndef LexCmd
#define LexCmd /usr/ccs/bin/lex
#endif
#ifndef MakeCmd
#define MakeCmd /usr/ccs/bin/make
#endif
#ifndef YaccCmd
#define YaccCmd /usr/ccs/bin/yacc
#endif
#if (OSMinorVersion == 0)
#ifndef XawI18nDefines
#define XawI18nDefines -DUSE_XWCHAR_STRING
#endif
#endif
#ifdef i386Architecture
#ifndef StandardDefines
#define StandardDefines -DSVR4 -Di386
#endif
#ifndef ToolkitStringsABIOptions
#define ToolkitStringsABIOptions -intelabi
#endif
#ifndef DefaultCCOptions
#if HasGcc2
#if !defined(SunArchitecture)
#define DefaultCCOptions -ansi
#endif
#else
#define DefaultCCOptions -Xa -Dasm=__asm
#endif
#endif
#ifndef DefaultCDebugFlags
#if HasGcc2
#ifdef i386Architecture
#define DefaultCDebugFlags -m486 DefaultGcc2i386Opt
#else
#define DefaultCDebugFlags -O2
#endif
#else
#define DefaultCDebugFlags -O
#endif
#endif
#ifndef ServerOSDefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
#endif
#endif
/*
* The TLI interface is more robust on most SVR4s, so it will be the default.
*/
#if !defined(SunArchitecture)
#ifndef ConnectionFlags
#define ConnectionFlags -DSTREAMSCONN -DUNIXCONN -DLOCALCONN
#endif
#endif
#ifndef ManSuffix
#define ManSuffix 1x
#define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
#define LibManSuffix 3x
#define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
#define FileManSuffix 4
#endif
#ifdef i386Architecture
#include <xfree86.cf>
#endif
#include <sv4Lib.rules>

View file

@ -1,77 +0,0 @@
XCOMM platform: $XConsortium: ultrix.cf /main/68 1996/09/28 16:13:46 rws $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion)
#define HasNdbm YES
#define HasPutenv YES
#define HasShm YES
#define LintLibFlag -o
#define LintOpts -ax
#if HasDECnet
#define ExtraLibraries -ldnet
#endif
#if ThreadedX
/* if you want to experiment, turn this on, but no guarantees */
#define HasThreadSafeAPI NO
#define HasPosixThreads YES
#define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
#define ExtraLibraries -lpthreads -li
#endif
#ifdef VaxArchitecture
#define PexNativeFPFormat PEXDEC_F_Floating
#define NativeFPFormat DEC_F_Float
#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
#define BuildServer NO
#endif
#ifdef MipsArchitecture
#if OSMajorVersion > 4 || (OSMajorVersion == 4 && OSMinorVersion >= 2)
#define XdecServer YES
#define ServerOSDefines -DDDXTIME
/* Even under ultrix 4.2, the compiler miscompiles some alloca calls */
#define AllocateLocalDefines /* -DINCLUDE_ALLOCA_H */
#else
#define BuildServer NO
#define AllocateLocalDefines /**/
#endif
#if !HasGcc
#define NeedFunctionPrototypes YES
#define PexCCOptions -Wf,-XNp15000,-XNd15000
/*
* NormalLibObjCompile - compile fragment for a library object file
* do ld -x to remove line number symbols for libraries
*/
#define NormalLibObjCompile(options) $(RM) $@ $*.os \ @@\
&& $(CC) -c options $(CFLAGS) $*.c \ @@\
&& $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
&& $(MV) $*.os $@
#endif
#endif
#if HasGcc
#ifdef VaxArchitecture
#define CcCmd gcc -ansi -Dvax -Dultrix -fpcc-struct-return
#endif
#ifdef MipsArchitecture
#define CcCmd gcc -ansi -Dmips -Dultrix -fpcc-struct-return
#endif
#define ServerCCOptions /* */
#define AllocateLocalDefines /* */
#endif
#define ServerExtraDefines AllocateLocalDefines
#define HasWChar32 YES
#define MotifDefines -DNO_REGEX -DNO_REGCOMP -DNO_CONST

View file

@ -1,121 +0,0 @@
XCOMM platform: $TOG: usl.cf /main/51 1998/03/23 12:27:39 mgreess $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
#ifndef CcCmd
# define CcCmd /usr/ccs/bin/cc
#endif
#ifndef CplusplusCmd
# define CplusplusCmd /usr/ccs/bin/CC
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /usr/ccs/bin/c++filt
#endif
#ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/usr/include/CC
#endif
#define BootstrapCFlags /* none needed */
#define StandardDefines -DUSL -DSVR4 -Di386
#define NeedWidePrototypes NO /* experimental */
#define ServerExtraDefines -D__USLC__ XFree86ServerDefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
#define ToolkitStringsABIOptions -intelabi
#if OSMajorVersion < 2
#define XawI18nDefines -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
#else
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#endif
#if OSMajorVersion == 2
# if OSMinorVersion == 0
# define ExtraLibraries -lsocket -lnsl -lgen -lw
# else
# define ExtraLibraries -lsocket -lnsl -L/usr/ccs/lib -lgen
# endif
# define ThreadedX YES
# define HasThreadSafeAPI NO
/* UnixWare does not have MT-safe pwd routines. */
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI \
-DXNO_MTSAFE_GRPAPI
# define SystemMTDefines -D_REENTRANT
# define ThreadsLibraries -lthread
# define ThreadsCplusplusLibraries -lthread
# define DefaultCCOptions -W0,-2A -Xa -Dasm=__asm
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#ifndef UseExportLists
# define UseExportLists YES
#endif
#define GencatFlags -m
#include <svr4.cf>
/*
* When generating templates the UnixWare 2.02 C++ compiler leaves
* protected .i files behind. Remove them so other people can
* compile too.
*/
#ifndef ObjectCplusplusCompile
#define ObjectCplusplusCompile(options) RemoveFiles($@ $*.i) @@\
ClearmakeOSName \
$(CXX) -c $(CXXFLAGS) options $*.CCsuf
#endif
/* USL does not have a shared regex library. */
#define UseLocalRegex YES
#define XmDefines \
-DNO_REGCOMP -DNEED_STRCASECMP \
-DSUPPORT_ZERO_WIDTH -DHAS_WIDECHAR_FUNCTIONS
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
#define HasStrcasecmp NO
/* For DtHelp's TIFF processing routines. */
#define LSBBitOrder YES
#define ArchitectureDefines -DUSL_ARCHITECTURE
#define ExportListGenSource elistgen.usl
#define ShlibExportListOpt(filename) Concat(-Bexport:,filename)
/* Remove -lc because select.o is not relocatable. */
/* Remove -lgen (and set UseLocalRegex) because no shared library exists. */
#if OSMajorVersion == 2
# if OSMinorVersion == 0
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lsocket -lnsl -lw
# define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lsocket -lnsl -lw
# define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lsocket -lnsl -lw
# else
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lsocket -lnsl
# define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lsocket -lnsl
# define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lsocket -lnsl
# endif
#endif
/* <X11/Xos_r.h> requires process locking for missing _r functions */
#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
#define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
#define CdeProjectDefines \
-DANSICPP -DMULTIBYTE -DNLS16 -DNEED_STRCASECMP \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion

View file

@ -1,157 +0,0 @@
XCOMM platform: $XConsortium: x386.cf /main/15 1996/09/28 16:14:00 rws $
/*****************************************************************************
* Site-specfic parameters *
*****************************************************************************/
/*
* there are some switches to set appropriate...
*/
#define HasGcc YES /* doesn't work for SVR4 */
#define HasNdbm YES /* correct for GNU dbm & SVR4 */
#define StripInstalledPrograms YES
#define X386Server YES
#define ExtensionOSDefines -DXTESTEXT1
#define MotifBC YES
/*****************************************************************************
* Do not change anything below *
*****************************************************************************/
/* You must manually compute BootstrapCFlags for initial build */
#define BootstrapCFlags OSDefines OSRelease
#define StandardDefines OSDefines OSRelease
#define LdCombineFlags -r
#if defined(i386SVR3Architecture)
#define SystemV YES
#define NeedBerklib YES
#define HasSymLinks NO
/*
* V/386 Release 3.2
*/
#ifdef ISC
/* INTERACTIVE UNIX Version 2.2.1 */
# define OSVendor "Interactive System Corp."
# define OSDefines -DISC
# define LocalLibraries -lpt
# define PosixLibraries -lcposix
# define SocketLibraries -linet
#endif
#ifdef ESIX
#define OSVendor "ESIX System Inc."
#define OSDefines -DESIX
#define LocalLibraries -lpt
#define SocketLibraries -lnet -lnsl_s
#define PosixLibraries /**/
#endif
#ifdef SCO
#define OSDefines -DSCO -DBROKEN_FTOL -DNO_PROTOTYPE -D_SVID
#define OSVendor "Santa Cruz Operation Ltd."
#define LocalLibraries -lpt
#define SocketLibraries -lsocket
#define PosixLibraries /**/
#endif
#ifdef ATT
#define OSDefines -DATT
#define OSVendor "AT&T"
#define LocalLibraries -lpt
#define SocketLibraries -lnet -lnsl_s /* just a guess */
#define PosixLibraries /**/
#endif
#define OSName Unix System V/386 Release 3.2
#define OSMajorVersion 3
#define OSMinorVersion 2
#define OSRelease -DSYSV -DSYSV386
#if HasGcc
# define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
# define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
# define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
#else
# define ShlibDefines /**/
#endif
#if HasSockets
/* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
# define ConnectionFlags -DTCPCONN
# define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
#else
# define ConnectionFlags -DLOCALCONN
# define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
#endif
/* #include <sv3Lib.rules> */ /* not working yet */
/*
* Man pages need to be formatted when installed, so override the default
* imake rules.
*/
#define InstallManPageLong(file,destdir,dest) @@\
install.man:: file.man @@\
$(RM) destdir/dest.$(MANSUFFIX) @@\
cat file.man | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/file.man @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
$(RM) /tmp/file.man
#define InstallMultipleMan(list,dest) @@\
install.man:: list @@\
@MakeFlagsToShellFlags(i,set +e); \ @@\
for i in list; do \ @@\
(set -x; \ @@\
$(RM) dest/$$i; \ @@\
cat $$i | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/$$i; \ @@\
$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \ @@\
$(RM) /tmp/$$i); \ @@\
done
/* If you have trouble with make bombing out in Xlib, try uncommenting this. */
/* You will not get dependencies as a result, but better than nothing. */
/* #define DependTarget3(srcs1,srcs2,srcs3) */
#endif /* i386SVR3Architecture */
/*
* V/386 Release 4.0
*/
#if defined(i386SVR4Architecture)
#define SystemV4 YES
/* this is now just for Dell's one */
#ifdef DELL
#define OSDefines -DDELL
#define OSVendor "DELL Computer Corp."
#endif
#define OSName Unix System V/386 Release 4.0
#define OSMajorVersion 4
#define OSMinorVersion 0
#define OSRelease -DSVR4 -DSYSV386
#if HasGcc
# define CcCmd gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
# if HasSharedLibraries
# define LibraryCcCmd cc -Xa -Di386 -Dasm=__asm
# endif
#else
# define CcCmd cc -Xa -Di386 -Dasm=__asm
#endif
#include <sv4Lib.rules>
#endif /* i386SVR4Architecture */
XCOMM operating system: OSName OSVendor

View file

@ -1,185 +0,0 @@
XCOMM $XConsortium: xf86.rules /main/9 1996/10/31 14:54:26 kaleb $
XCOMM $XFree86: xc/config/cf/xf86.rules,v 3.15 1996/09/24 13:48:46 dawes Exp $
/*
* These rules are needed to build the Xfree86 X Servers
*/
#ifndef CPPOnlyAsm
#define CPPOnlyAsm(basename,options) RemoveFile(basename.i) @@\
$(CPP) AsmDefines $(DEFINES) $(INCLUDES) options basename.s | \ @@\
grep -v '^\#' > basename.i
#endif
#ifndef AssembleObject
#define AssembleObject(flags) CPPOnlyAsm($*,flags) @@\
$(AS) -o $*.o $*.i @@\
RemoveFile($*.i)
#endif
#ifndef NormalAsmObjectRule
#define NormalAsmObjectRule() @@\
.s.o: @@\
AssembleObject($(_NOOP_)) @@\
@@\
.s.i: @@\
CPPOnlyAsm($*,$(_NOOP_))
#endif
#ifndef ObjectFromSpecialAsmSource
#define ObjectFromSpecialAsmSource(dst,src,flags) @@\
dst.s: src.s @@\
RemoveFile($@) @@\
$(LN) $? $@ @@\
@@\
dst.o: dst.s @@\
AssembleObject(flags) @@\
@@\
dst.i: dst.s @@\
CPPOnlyAsm(dst,flags) @@\
@@\
depend:: dst.s @@\
@@\
clean:: @@\
RemoveFile(dst.s)
#endif
#ifndef ObjectFromAsmSource
#define ObjectFromAsmSource(src,flags) @@\
@@\
src.o: src.s @@\
AssembleObject(flags) @@\
@@\
src.i: src.s @@\
CPPOnlyAsm(dst,flags) @@\
@@\
depend:: src.s
#endif
#ifndef ObjectMapIncludeFromSpecialSource
#define ObjectMapIncludeFromSpecialSource(dst,src,flags) @@\
dst.c: src.c @@\
RemoveFile($@) @@\
echo "#include \"mfbmap.h\"" > $@ @@\
echo "#include \"$?\"" >> $@ @@\
@@\
SpecialCObjectRule(dst,NullParameter,flags) @@\
@@\
depend:: dst.c @@\
@@\
clean:: @@\
RemoveFile(dst.c)
#endif
/*
* Rules for building config files from scripts
*/
#ifndef Depend
# define Depend depend
#endif
#ifndef ConfigTargetLong
#define ConfigTargetLong(target,dep,script,args,extra) @@\
all:: Configure @@\
@@\
Configure:: target.o @@\
@@\
target.c: script dep @@\
$(MAKE) $(MFLAGS) Makefile @@\
$(MAKE) $(MFLAGS) extra Concat(Build,target) @@\
@@\
Concat(Build,target): @@\
$(RM) target.c @@\
$(SHELL) script args @@\
@@\
clean:: @@\
$(RM) target.c
#endif
#define ConfigTarget(target,dep,script,args) ConfigTargetLong(target,dep,script,args,Depend)
#define ConfigTargetNoDepend(target,dep,script,args) ConfigTargetLong(target,dep,script,args,)
#if !XF86LinkKit
/*
* Rules for installing LinkKit parts (target is install.linkkit)
*/
#ifndef InstallLinkKitNonExecFile
#define InstallLinkKitNonExecFile(file,dest) @@\
install.linkkit:: file @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
#endif
#ifndef InstallLinkKitLibrary
#define InstallLinkKitLibrary(libname,dest) @@\
install.linkkit:: Concat(lib,libname.a) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) $(DESTDIR)dest @@\
RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,libname.a))
#endif
#ifndef InstallLinkKitNamedLibrary
#define InstallLinkKitNamedLibrary(libname,dlibname,dest) @@\
install.linkkit:: Concat(lib,libname.a) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) \ @@\
Concat($(DESTDIR)dest/lib,dlibname.a) @@\
RanLibrary($(RANLIBINSTFLAGS) Concat($(DESTDIR)dest/lib,dlibname.a))
#endif
#ifndef InstallLinkKitNamedNonExec
#define InstallLinkKitNamedNonExec(srcname,dstname,dest) @@\
install.linkkit:: srcname @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTDATFLAGS) srcname $(DESTDIR)dest/dstname
#endif
#ifndef InstallLinkKitNamedProg
#define InstallLinkKitNamedProg(srcname,dstname,dest) @@\
install.linkkit:: srcname @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c $(INSTBINFLAGS) srcname $(DESTDIR)dest/dstname
#endif
#ifndef InstallLinkKitSubdirs
#define InstallLinkKitSubdirs(dirs) \
NamedTargetSubdirs(install.linkkit,dirs,"installing link kit",DESTDIR='$(DESTDIR)',install.linkkit)
#endif
#ifndef InstallLinkKitMultipleDestFlags
#define InstallLinkKitMultipleDestFlags(list,dest,flags) \
InstallMultipleDestFlags(install.linkkit,list,dest,flags)
#endif
#endif /* !XF86LinkKit */
/*
* DynamicModuleTarget - build a module to be dynamically loaded
*/
#ifndef DynamicModuleTarget
#define DynamicModuleTarget(module,modlist) @@\
AllTarget(module) @@\
@@\
module: modlist @@\
RemoveFile($@) @@\
$(LD) -o $@ $(SHLIBLDFLAGS) modlist @@\
@@\
clean:: @@\
RemoveFile(module)
#endif /* DynamicModuleTarget */
/*
* InstallDynamicModule - install a dynamic module
*/
#ifndef InstallDynamicModule
#define InstallDynamicModule(module,dest) @@\
install:: module @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) -c module $(DESTDIR)dest
#endif

View file

@ -1,581 +0,0 @@
XCOMM $XFree86: xc/config/cf/xfree86.cf,v 3.117 1996/10/19 15:12:31 dawes Exp $
/*
* This configuration file contains all of the configuration
* information for the XFree86 based X Servers.
*
* Most of these settings can be overridden in a vendor.cf or the
* BeforeVendor part of the site.def file.
*/
XCOMM $TOG: xfree86.cf /main/38 1997/10/22 13:01:59 kaleb $
/*
* The LinkKit needs to inherit some settings (from the xc build that
* generated it) before we go too much further...
*/
#ifndef XF86LinkKit
#define XF86LinkKit NO
#endif
#if XF86LinkKit
#include <LinkKit.tmpl>
#endif
/*
* Default settings for which X Servers to build.
*/
#ifndef XF86SVGAServer
# define XF86SVGAServer YES
#endif
#ifndef XF86VGA16Server
# define XF86VGA16Server NO
# ifndef XF86VGA16DualServer
# define XF86VGA16DualServer NO
# endif
#endif
#ifndef XF86MonoServer
# define XF86MonoServer NO
# ifndef XF86MonoDualServer
# define XF86MonoDualServer NO
# endif
#endif
#ifndef XF86S3Server
# define XF86S3Server NO
#endif
#ifndef XF86S3VServer
# define XF86S3VServer NO
#endif
#ifndef XF86I8514Server
# define XF86I8514Server NO
#endif
#ifndef XF86Mach8Server
# define XF86Mach8Server NO
#endif
#ifndef XF86Mach32Server
# define XF86Mach32Server NO
#endif
#ifndef XF86Mach64Server
# define XF86Mach64Server NO
#endif
#ifndef XF86AGXServer
# define XF86AGXServer NO
#endif
#ifndef XF86P9000Server
# define XF86P9000Server NO
#endif
#ifndef XF86W32Server
# define XF86W32Server NO
#endif
#ifndef XF86I128Server
# define XF86I128Server NO
#endif
#ifndef XF86TGAServer
# define XF86TGAServer NO
#endif
#if XF86S3Server
# define XF86S3Dir s3
#else
# define XF86S3Dir /**/
#endif
#if XF86S3VServer
# define XF86S3VDir s3_virge
#else
# define XF86S3VDir /**/
#endif
#if XF86I8514Server
# define XF86I8514Dir ibm8514
#else
# define XF86I8514Dir /**/
#endif
#if XF86Mach8Server
# define XF86Mach8Dir mach8
#else
# define XF86Mach8Dir /**/
#endif
#if XF86Mach32Server
# define XF86Mach32Dir mach32
#else
# define XF86Mach32Dir /**/
#endif
#if XF86Mach64Server
# define XF86Mach64Dir mach64
#else
# define XF86Mach64Dir /**/
#endif
#if XF86P9000Server
# define XF86P9000Dir p9000
#else
# define XF86P9000Dir /**/
#endif
#if XF86AGXServer
# define XF86AGXDir agx
#else
# define XF86AGXDir /**/
#endif
#if XF86W32Server
# define XF86W32Dir et4000w32
#else
# define XF86W32Dir /**/
#endif
#if XF86I128Server
# define XF86I128Dir i128
#else
# define XF86I128Dir /**/
#endif
#if XF86TGAServer
# define XF86TGADir tga
#else
# define XF86TGADir /**/
#endif
#ifndef XF98GANBWAPServer
# define XF98GANBWAPServer NO
#endif
#ifndef XF98NEC480Server
# define XF98NEC480Server NO
#endif
#ifndef XF98NKVNECServer
# define XF98NKVNECServer NO
#endif
#ifndef XF98WABSServer
# define XF98WABSServer NO
#endif
#ifndef XF98SVGAServer
# define XF98SVGAServer NO
#endif
#ifndef XF98TGUIServer
# define XF98TGUIServer NO
#endif
#ifndef XF98EGCServer
# define XF98EGCServer NO
#endif
#ifndef XF98NECS3Server
# define XF98NECS3Server NO
#endif
#ifndef XF98PWSKBServer
# define XF98PWSKBServer NO
#endif
#ifndef XF98PWLBServer
#define XF98PWLBServer NO
#endif
#if XF98NECS3Server
# define XF98NECS3Dir s3nec
#else
# define XF98NECS3Dir /**/
#endif
#if XF98PWSKBServer
# define XF98PWSKBDir s3pwskb
#else
# define XF98PWSKBDir /**/
#endif
#if XF98PWLBServer
# define XF98PWLBDir s3pwlb
#else
# define XF98PWLBDir /**/
#endif
#undef XF86AccelServerDirs
#define XF86AccelServerDirs XF86S3Dir XF86S3VDir XF86I8514Dir \
XF86Mach8Dir XF86Mach32Dir XF86Mach64Dir \
XF86P9000Dir XF86AGXDir XF86W32Dir \
XF86I128Dir XF86TGADir
#undef XF86AccelServer
#if XF86S3Server || XF86S3VServer || XF86I8514Server || XF86Mach8Server || \
XF86Mach32Server || XF86Mach64Server || XF86P9000Server || \
XF86AGXServer || XF86W32Server || XF86I128Server || XF86TGAServer
# define XF86AccelServer YES
#else
# define XF86AccelServer NO
#endif
#undef XF98AccelServerDirs
#define XF98AccelServerDirs XF98NECS3Dir XF98PWSKBDir XF98PWLBDir
#undef XF98AccelServer
#if XF98NECS3Server || XF98PWSKBServer || XF98PWLBServer
# define XF98AccelServer YES
#else
# define XF98AccelServer NO
#endif
/*
* Driver list for several of the X Servers.
*/
#ifndef XF86SvgaDrivers
# define XF86SvgaDrivers nv et4000 et3000 pvga1 gvga ati sis tvga8900 \
cirrus ncr77c22 /*compaq*/ mga oak mx al2101 \
ali cl64xx video7 chips ark realtek apm \
s3_svga generic
#endif
#ifndef XF98SvgaDrivers
# define XF98SvgaDrivers generic
#endif
#ifndef XF86Vga16Drivers
# define XF86Vga16Drivers et4000 ncr77c22 ati sis tvga8900 oak cl64xx \
generic
#endif
#ifndef XF98Vga16Drivers
# define XF98Vga16Drivers generic
#endif
#ifndef XF86Vga2Drivers
# define XF86Vga2Drivers et4000 et3000 pvga1 gvga ati sis tvga8900 \
cirrus ncr77c22 /*compaq*/ oak cl64xx generic
#endif
#ifndef XF86Vga2Banked
# define XF86Vga2Banked YES
#endif
#ifndef XF86MonoDrivers
# define XF86MonoDrivers hgc1280 sigma apollo /*hercules*/
#endif
/* This doesn't do anything (yet) */
#ifndef XF86S3Drivers
# if !defined(AlphaArchitecture)
# define XF86S3Drivers newmmio mmio_928 s3_generic
# else
# define XF86S3Drivers mmio_928 s3_generic newmmio
# endif
#endif
#ifndef XF86S3VDrivers
# define XF86S3VDrivers s3_virge
#endif
#ifndef XF86W32Drivers
# define XF86W32Drivers et4000w32
#endif
#ifndef XF98S3Drivers
# define XF98S3Drivers mmio_928 s3_generic
#endif
/*
* By default, build all of the fonts.
*/
#ifndef Build75Dpi
#define Build75Dpi YES
#endif
#ifndef Build100Dpi
#define Build100Dpi YES
#endif
#ifndef BuildSpeedo
#define BuildSpeedo YES
#endif
#ifndef BuildType1
#define BuildType1 YES
#endif
#ifndef BuildScanpci
#if SystemV || SystemV4 || (defined(LinuxArchitecture) && !defined(Mc68020Architecture)) || defined(i386BsdArchitecture) || defined(LynxOSArchitecture) || defined(OS2Architecture)
#define BuildScanpci YES
#else
#define BuildScanpci NO
#endif
#endif
#ifndef BuildXF86DGA
#define BuildXF86DGA NO
#endif
#ifndef CompressAllFonts
#define CompressAllFonts YES
#endif
#ifndef HasLinuxDoc
#define HasLinuxDoc NO
#endif
#ifndef InstallJapaneseDocs
#define InstallJapaneseDocs NO
#endif
#if BuildXF86DGA
#define XFree86DGADefines -DXFreeXDGA
#else
#define XFree86DGADefines /**/
#endif
/* Server defines required for all OSs */
#ifndef XFree86ServerDefines
#define XFree86ServerDefines -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV LinkKitDefines XFree86DGADefines
#endif
#ifndef XFree86ServerOSDefines
#define XFree86ServerOSDefines -DDDXOSINIT -DSERVER_LOCK
#endif
#ifndef XFree86ConsoleDefines
#ifdef i386BsdArchitecture
#define XFree86ConsoleDefines -DPCCONS_SUPPORT -DSYSCONS_SUPPORT -DPCVT_SUPPORT
#else
#define XFree86ConsoleDefines /**/
#endif
#endif
#ifndef UseServerLock
#define UseServerLock YES
#endif
#ifndef XF86LinkKit
#define XF86LinkKit NO
#endif
#if XF86LinkKit
/*
* Definitions for LinkKit self-containment. This should work whether or not
* UseInstalled is defined.
*/
# ifndef HasLdRunPath
# define HasLdRunPath NO
# endif
# ifndef TopIncludes
# ifdef IncRoot
# define TopIncludes -I$(INCROOT)
# else
# define TopIncludes /**/
# endif
# endif
# ifndef ClientLibDir
# if defined(UsrLibDir) || HasLdRunPath
# define ClientLibDir /**/
# else
# define ClientLibDir -L$(USRLIBDIR)
# endif
# endif
# ifndef LdPreLib
# if defined(LdPostLib) && defined(UsrLibDir) && !HasLdRunPath
# define LdPreLib -L$(USRLIBDIR)
# else
# define LdPreLib /**/
# endif
# endif
# ifndef LdPostLib
# if defined(UsrLibDir) && !HasLdRunPath
# define LdPostLib -L$(USRLIBDIR)
# else
# define LdPostLib /**/
# endif
# endif
#endif
#ifndef LinkKitDefines
#if XF86LinkKit
#define LinkKitDefines -DLINKKIT
#else
#define LinkKitDefines /**/
#endif
#endif
#ifndef ServerExtraDefines
#define ServerExtraDefines XFree86ServerDefines
#endif
#ifndef ServerOSDefines
#define ServerOSDefines XFree86ServerOSDefines
#endif
#ifndef LinkKitDir
#define LinkKitDir $(USRLIBDIR)/Server
#endif
LINKKITDIR = LinkKitDir
XF98LINKKITDIR = LinkKitDir
#ifndef HasDlsymBug
#define HasDlsymBug NO
#endif
/*
* Some commonly refered to directories are defined here.
*/
#if XF86LinkKit
XF86SRC = $(TOP)
XF86ACCELSRC = $(XF86SRC)/lib86
XF86COMSRC = $(XF86SRC)/lib86
XF86CONFIGSRC = $(XF86SRC)
XF86HWSRC = $(XF86SRC)/lib86
XF86OSSRC = $(XF86SRC)/lib86
DRIVERSRC = $(XF86SRC)/drivers
VGADRIVERSRC = $(XF86SRC)/drivers/vga256
VGA16DRIVERSRC = $(XF86SRC)/drivers/vga16
VGA2DRIVERSRC = $(XF86SRC)/drivers/vga2
MONODRIVERSRC = $(XF86SRC)/drivers/mono
S3DRIVERSRC = $(XF86SRC)/drivers/s3
S3VDRIVERSRC = $(XF86SRC)/drivers/s3_virge
XF98SRC = $(TOP)
XF98ACCELSRC = $(XF98SRC)/lib98
XF98COMSRC = $(XF98SRC)/lib98
XF98CONFIGSRC = $(XF98SRC)
XF98HWSRC = $(XF98SRC)/lib98
XF98HWNECSRC = $(XF98SRC)/lib98
XF98HWPWSKBSRC = $(XF98SRC)/lib98
XF98HWPWLBSRC = $(XF98SRC)/lib98
XF98HWGA968SRC = $(XF98SRC)/lib98
XF98OSSRC = $(XF98SRC)/lib98
XF98DRIVERSRC = $(XF98SRC)/drivers98
XF98VGADRIVERSRC = $(XF98SRC)/drivers98/vga256
XF98VGA16DRIVERSRC = $(XF98SRC)/drivers98/vga16
XF98VGA2DRIVERSRC = $(XF98SRC)/drivers98/vga2
XF98MONODRIVERSRC = $(XF98SRC)/drivers98/mono
XF98NECS3DRIVERSRC = $(XF98SRC)/drivers98/s3nec
XF98PWSKBDRIVERSRC = $(XF98SRC)/drivers98/s3pwskb
XF98PWLBDRIVERSRC = $(XF98SRC)/drivers98/s3pwlb
XF98GA968DRIVERSRC = $(XF98SRC)/drivers98/s3ga968
#ifdef SiteIConfigFiles
#undef SiteIConfigFiles
#endif
#define SiteIConfigFiles $(TOP)/xf86site.def $(TOP)/Imakefile $(IRULESSRC)/host.def
#else
XF86SRC = $(SERVERSRC)/hw/xfree86
XF86ACCELSRC = $(XF86SRC)/accel
XF86COMSRC = $(XF86SRC)/common
XF86CONFIGSRC = $(XF86COMSRC)
XF86HWSRC = $(XF86SRC)/common_hw
XF86OSSRC = $(XF86SRC)/os-support
VGADRIVERSRC = $(XF86SRC)/vga256/drivers
VGA16DRIVERSRC = $(XF86SRC)/vga16/drivers
VGA2DRIVERSRC = $(XF86SRC)/vga2/drivers
MONODRIVERSRC = $(XF86SRC)/mono/drivers
S3DRIVERSRC = $(XF86SRC)/accel/s3/drivers
S3VDRIVERSRC = $(XF86SRC)/accel/s3_virge/drivers
XF98SRC = $(SERVERSRC)/hw/xfree98
XF98ACCELSRC = $(XF98SRC)/accel
XF98COMSRC = $(XF98SRC)/common
XF98CONFIGSRC = $(XF98COMSRC)
XF98HWSRC = $(XF98SRC)/common_hw/generic
XF98HWNECSRC = $(XF98SRC)/common_hw/nec
XF98HWPWSKBSRC = $(XF98SRC)/common_hw/pwskb
XF98HWPWLBSRC = $(XF98SRC)/common_hw/pwlb
XF98OSSRC = $(XF98SRC)/os-support
XF98VGADRIVERSRC = $(XF98SRC)/vga256/drivers
XF98VGA16DRIVERSRC = $(XF98SRC)/vga16/drivers
XF98VGA2DRIVERSRC = $(XF98SRC)/vga2/drivers
XF98MONODRIVERSRC = $(XF98SRC)/mono/drivers
XF98NECS3DRIVERSRC = $(XF98SRC)/accel/s3nec/drivers
XF98PWSKBDRIVERSRC = $(XF98SRC)/accel/s3pwskb/drivers
XF98PWLBDRIVERSRC = $(XF98SRC)/accel/s3pwlb/drivers
#endif
/*
* Installed location of the XFree86 documentation
*/
XFREE86DOCDIR = $(LIBDIR)/doc
XFREE86PSDOCDIR = $(XFREE86DOCDIR)/PostScript
XFREE86HTMLDOCDIR = $(XFREE86DOCDIR)/html
XFREE86JAPANESEDOCDIR = $(XFREE86DOCDIR)/Japanese
/*
* Other stuff used in the X Server source.
*/
#ifndef AsmDefines
#define AsmDefines /**/
#endif
#ifndef XFree86Version
#define XFree86Version 3310
#endif
#ifndef XVendorString
#define XVendorString "The Open Group / The XFree86 Project, Inc"
#endif
#if 0
#ifndef XVendorRelease
#define XVendorRelease XFree86Version
#endif
#endif
#ifndef UseRgbTxt
#define UseRgbTxt YES
#endif
/*
* GNU Compiler stuff
*/
#ifndef HasGcc2
#define HasGcc2 NO
#endif
#ifndef HasGcc
#define HasGcc HasGcc2
#endif
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus HasGcc2
#endif
#if HasGcc
#ifndef DefaultCCOptions
#ifdef UseInstalled
#define DefaultCCOptions -ansi
#else
#define DefaultCCOptions -ansi -pedantic
#endif
#endif
#endif
#if HasGcc2 && defined(i386Architecture)
#ifndef DefaultGcc2i386Opt
#define DefaultGcc2i386Opt -O2 -fno-strength-reduce
#endif
#endif
#ifndef BuildLBXCompatible
#define BuildLBXCompatible NO
#endif
#if BuildLBXCompatible
#define LbxDefines -DLBX_COMPAT
#endif
#define VidTuneExtensionDefines -DXF86VIDMODE
#include <xf86.rules>

View file

@ -3,6 +3,7 @@ XCOMM $XConsortium: Imakefile /main/7 1996/08/21 15:56:17 drk $
XCOMM These tools are used during "make includes".
includes:: all
NormalCplusplusObjectRule()
NormalLibraryObjectRule()
AllTarget(dfiles)
NormalProgramTarget(dfiles,dfiles.o,,,)
@ -18,7 +19,7 @@ msgsets.o : msgsets.C
SimpleCPlusPlusProgram(msgsets,msgsets.o,)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
SRCS = dfiles.c pmaker.c msgsets.C
DependTarget()

View file

@ -22,6 +22,7 @@
*/
/* $XConsortium: dfiles.c /main/3 1996/06/11 17:40:25 cde-hal $ */
#include <stdio.h>
#include <stdlib.h>
main(argc, argv)
int argc ;

View file

@ -42,7 +42,7 @@
#ifdef __cplusplus
#include <stdlib.h>
#if !defined(__DECCXX) && !defined(USL) && !defined(CSRG_BASED)
#if !defined(__DECCXX) && !defined(USL) && !defined(linux) && !defined(CSRG_BASED)
#include <osfcn.h>
#else
#include <unistd.h>
@ -195,12 +195,13 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
/* All Rights Reserved */
#include <string.h>
#include <strstream>
#include <sstream>
#include <iostream>
using namespace std;
#define BUFFER_INCR_UNIT 64
std::ostrstream **sets;
std::ostringstream **sets;
int sets_cnt = 0; /* number of sets slots occupied */
int sets_max = 0; /* total number of sets slots */
@ -510,14 +511,14 @@ case 1:
sets_max += BUFFER_INCR_UNIT;
if (sets_cnt == 0) {
sets = (std::ostrstream **)
malloc(sizeof(std::ostrstream *) * sets_max);
sets = (std::ostringstream **)
malloc(sizeof(std::ostringstream *) * sets_max);
set_nums = (int *)
malloc(sizeof(int) * sets_max);
}
else {
sets = (std::ostrstream **)
realloc(sets, sizeof(std::ostrstream *) * sets_max);
sets = (std::ostringstream **)
realloc(sets, sizeof(std::ostringstream *) * sets_max);
set_nums = (int *)
realloc(set_nums, sizeof(int) * sets_max);
}
@ -529,7 +530,7 @@ case 1:
}
if (cur_set >= 0)
*sets[cur_set] << '\0';
sets[cur_set = sets_cnt++] = new std::ostrstream;
sets[cur_set = sets_cnt++] = new std::ostringstream;
*sets[cur_set] << (char*)yytext;
@ -1151,7 +1152,7 @@ main()
}
for (i = 0; i < sets_cnt; i++) {
const char* record = sets[sorted[i]]->str();
const char* record = sets[sorted[i]]->str().c_str();
std::cout << record << '\n' << std::flush;
}

View file

@ -4,11 +4,12 @@
/* All Rights Reserved */
#include <string.h>
#include <strstream.h>
#include <sstream>
using namespace std;
#define BUFFER_INCR_UNIT 64
ostrstream **sets;
ostringstream **sets;
int sets_cnt = 0; /* number of sets slots occupied */
int sets_max = 0; /* total number of sets slots */
@ -32,14 +33,14 @@ int* sorted;
sets_max += BUFFER_INCR_UNIT;
if (sets_cnt == 0) {
sets = (ostrstream **)
malloc(sizeof(ostrstream *) * sets_max);
sets = (ostringstream **)
malloc(sizeof(ostringstream *) * sets_max);
set_nums = (int *)
malloc(sizeof(int) * sets_max);
}
else {
sets = (ostrstream **)
realloc(sets, sizeof(ostrstream *) * sets_max);
sets = (ostringstream **)
realloc(sets, sizeof(ostringstream *) * sets_max);
set_nums = (int *)
realloc(set_nums, sizeof(int) * sets_max);
}
@ -51,7 +52,7 @@ int* sorted;
}
if (cur_set >= 0)
*sets[cur_set] << '\0';
sets[cur_set = sets_cnt++] = new ostrstream;
sets[cur_set = sets_cnt++] = new ostringstream;
*sets[cur_set] << (char*)yytext;
@ -136,7 +137,7 @@ main()
}
for (i = 0; i < sets_cnt; i++) {
const char* record = sets[sorted[i]]->str();
const char* record = sets[sorted[i]]->str().c_str();
cout << record << '\n' << flush;
}

View file

@ -22,6 +22,7 @@
*/
/* $XConsortium: pmaker.c /main/3 1996/06/11 17:40:31 cde-hal $ */
#include <stdio.h>
#include <stdlib.h>
main(argc, argv)
int argc ;