home *** CD-ROM | disk | FTP | other *** search
- XCOMM platform: $XConsortium: sco.cf,v hess Exp $
-
- /* SCO MODIFICATION HISTORY
- *
- * S001, 31-Mar-95, hiramc
- * OK to set -DSCO too, MIT patches use this define for SCO items
- * S000, 28-Apr-94, hess
- * created from x386.cf
- */
-
- /*****************************************************************************
- * Site-specfic parameters *
- *****************************************************************************/
-
- /*
- * there are some switches to set appropriate...
- */
-
- #define HasGcc NO /* doesn't work for SVR4 */
- #define HasNdbm NO /* correct for GNU dbm & SVR4 */
- #define StripInstalledPrograms YES
- #define X386Server NO
- #define ExtensionOSDefines -DXTESTEXT1
- #define MotifBC NO
-
-
- /*****************************************************************************
- * Do not change anything below *
- *****************************************************************************/
-
- /* You must manually compute BootstrapCFlags for initial build */
- #define BootstrapCFlags OSDefines OSRelease
-
- #define StandardDefines OSDefines OSRelease
- #define LdCombineFlags -r
-
-
- #define SystemV YES
-
- #define NeedBerklib YES
- #define HasSymLinks YES
-
- /*
- * V/386 Release 3.2
- */
- /* #define OSDefines -DSCO -DBROKEN_FTOL -D_NO_PROTOTYPE -D_SVID
- * changes by hess to the above line.
- * SCO changed to "sco"
- * BROKEN_FTOL not used in the code base
- * _SVID causes problems with memory.h
- * _NO_PROTOTYPE avoids problems that we want to find out about.
- * ANSICPP gets us the correct macro token concat operation.
- */
- #define OSDefines -Dsco -DSCO -DSVR4
- #define OSVendor "The Santa Cruz Operation"
- #define LocalLibraries -lpt
- #define SocketLibraries -lsocket -lmalloc
- #define PosixLibraries /**/
-
- #define SharedLibraryLoadFlags -G
-
- #define OSName Everest Build Environment
- #define OSMajorVersion 5
- #define OSMinorVersion 0
- #define OSRelease -DSYSV
-
- /* for the brave
- #define OptimizedCDebugFlags -O -DUSE_INLINE_CODE
- */
- #define OptimizedCDebugFlags -g
-
- /* for hess debug fresco */
- #define LibraryCplusplusDebugFlags -g
-
- # define ShlibDefines /**/
-
- /* -DLOCALCONN causes build to fail in x11trans.c, looking for
- * sockaddr_un in the routine FillAddrInfo
- */
- # define ConnectionFlags -DTCPCONN -DPSEUDOCONN
- /* # define ExtraLibraries SocketLibraries LocalLibraries PosixLibraries
- */
- # define ExtraLibraries SocketLibraries
-
- #define InstallCmd sh $(TOP)/config/util/install.sh
-
- #define YaccCmd byacc
-
- /* Xserver flags */
- /* this just causes the common dirs to get built, not a final server */
- #define XnonServer YES
- /* end Xserver flags */
-
-
- /* some stuff for Fresco */
- REQUIREDLIBS=-lX11 -lm
-
- #define SystemLibraries -lm
- SYS_LIBRARIES=-lm
-
- #define HasCplusplus YES
- #define BuildFresco YES
- #define CplusplusCmd CC +.cxx -b elf +d
- #define ExtraFilesToClean *..c *..dbx
-
- /* sco CC needs the -o arg escaped to cc's arg list ( via -ec arg to CC)
- * what a joke, CC can't name it's object file, and the -ec won't pass
- * the name along to 'cc' properly
- */
- #define SpecialCplusplusObjectRename(baseobj,basedep,options) @@\
- baseobj.Osuf: basedep.CCsuf @@\
- RemoveFile($@) @@\
- $(CXX) -c $(CXXFLAGS) options basedep.CCsuf @@\
- $(MV) `basename basedep`.o $@
-
- #define NormalSharedCplusplusObjectRename(baseobj,basedep) @@\
- baseobj.Osuf: basedep.CCsuf @@\
- RemoveFile($@) @@\
- $(CXX) -c $(CXXFLAGS) basedep.CCsuf @@\
- $(MV) `basename basedep`.o $@
-
- #define SharedCplusplusLibraryTarget(libname,rev,solist,down,up,notused) @@\
- AllTarget(Concat(lib,libname.so.rev)) @@\
- @@\
- Concat(lib,libname.so.rev): solist @@\
- $(RM) $@~ @@\
- (cd down; $(LDSO) -o up/$@~ $(SHLIBLDFLAGS) -h $@ solist $(REQUIREDLIBS)) @@\
- $(RM) $@ @@\
- $(MV) $@~ $@ @@\
- $(RM) Concat(lib,libname.so) @@\
- $(LN) $@ Concat(lib,libname.so) @@\
- @@\
- clean:: @@\
- $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
-
-
-
- /* end Fresco */
-
- XCOMM this version of ld will allow us to build DLL's with C++ modules
- LDSO=$(TOP)/build/Unix/config/util/ldso
- /* to make a DLL, look in here for ideas */
- #include <sv4Lib.rules>
-
- /*
- * 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 -man >/tmp/file.man @@\
- $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
- $(RM) /tmp/file.man
-
- #define InstallMultipleMan(list,dest) @@\
- install.man:: list @@\
- @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
- for i in list; do \ @@\
- (set -x; \ @@\
- $(RM) dest/$$i; \ @@\
- cat $$i | neqn | nroff -man >/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) */
-
- #define ContribDir $(TOP)/contrib
-
- XCOMM operating system: OSName OSVendor
-