mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Merge branch 'cde-next' of ssh://git.code.sf.net/p/cdesktopenv/code into cde-next
This commit is contained in:
commit
780ec11b8a
11 changed files with 60 additions and 25 deletions
|
@ -131,7 +131,7 @@ Makefile.boot: imake.proto $(DEPENDSRC)/Makefile.proto depend.bootstrap $(IMAKES
|
||||||
|
|
||||||
imake.proto:
|
imake.proto:
|
||||||
cd $(IMAKESRC) && $(MAKE) $(FLAGS)
|
cd $(IMAKESRC) && $(MAKE) $(FLAGS)
|
||||||
$(RM) $(DEPENDSRC)/Makefile.proto
|
$(RM) $(DEPENDSRC)/Makefile.proto $(DEPENDSRC)/.depend
|
||||||
|
|
||||||
$(DEPENDSRC)/Makefile.proto:
|
$(DEPENDSRC)/Makefile.proto:
|
||||||
$(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)
|
$(IMAKE_CMD) -s $(DEPENDSRC)/Makefile.proto -f $(DEPENDSRC)/Imakefile -DTOPDIR=$(DEPENDTOP) -DCURDIR=$(DEPENDSRC)
|
||||||
|
|
|
@ -73,11 +73,8 @@ USE_GCC = UseGcc
|
||||||
# define HasGcc2 YES
|
# define HasGcc2 YES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Use installed X11 includes/libs on FreeBSD 11+ */
|
/* Use installed X11 includes/libs */
|
||||||
#if (OSMajorVersion >= 11)
|
|
||||||
#define UseInstalledX11 YES
|
#define UseInstalledX11 YES
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* For DtHelp TIFF processing routines. */
|
/* For DtHelp TIFF processing routines. */
|
||||||
#ifdef AMD64Architecture
|
#ifdef AMD64Architecture
|
||||||
|
@ -179,14 +176,31 @@ USE_GCC = UseGcc
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
|
/* Suppress warnings dependant from compiler versions */
|
||||||
#ifndef DefaultGcc2i386Opt
|
#ifndef DefaultGcc2i386Opt
|
||||||
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
|
# if defined(__clang__) && defined(__clang_major__) && defined(__clang_minor__)
|
||||||
#define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
|
# if (__clang_major__ > 3) || \
|
||||||
-Wno-unused-result
|
(__clang_major__ == 3 && __clang_minor__ >= 4)
|
||||||
#endif
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
|
||||||
|
-Wno-unused-result
|
||||||
|
# else
|
||||||
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
|
||||||
|
-Wno-unused-result
|
||||||
|
# endif
|
||||||
|
# elif defined(__GNUC__) && defined(__GNUC_MINOR__)
|
||||||
|
# if (__GNUC__ > 4) || \
|
||||||
|
(__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
||||||
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
|
||||||
|
-Wno-unused-result -Wno-deprecated
|
||||||
|
# else
|
||||||
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef OptimizedCDebugFlags
|
#ifndef OptimizedCDebugFlags
|
||||||
# if defined(i386Architecture) || defined(AMD64Architecture)
|
# if defined(i386Architecture) || defined(AMD64Architecture)
|
||||||
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
||||||
|
@ -210,6 +224,11 @@ ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else ec
|
||||||
|
|
||||||
#define StandardDefines -DCSRG_BASED
|
#define StandardDefines -DCSRG_BASED
|
||||||
#define StandardIncludes -I/usr/local/include
|
#define StandardIncludes -I/usr/local/include
|
||||||
|
|
||||||
|
#ifndef TopMotifInclude
|
||||||
|
#define TopMotifInclude /usr/local/include
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BuildLibPathVar LD_LIBRARY_PATH
|
#define BuildLibPathVar LD_LIBRARY_PATH
|
||||||
|
|
||||||
#define DefaultUserPath /bin:/usr/bin:/usr/local/bin:$(BINDIR)
|
#define DefaultUserPath /bin:/usr/bin:/usr/local/bin:$(BINDIR)
|
||||||
|
|
|
@ -653,7 +653,7 @@ clean:: @@\
|
||||||
|
|
||||||
/* Search the Motif ProjectRoot too if it is different. */
|
/* Search the Motif ProjectRoot too if it is different. */
|
||||||
#ifdef MotifProjectRoot
|
#ifdef MotifProjectRoot
|
||||||
# define MUsrLibDirPath Concat(XUsrLibDirPath,:$(MPROJECTROOT)/lib)
|
# define MUsrLibDirPath Concat($(MPROJECTROOT)/lib,:XUsrLibDirPath)
|
||||||
#else
|
#else
|
||||||
# define MUsrLibDirPath XUsrLibDirPath
|
# define MUsrLibDirPath XUsrLibDirPath
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -73,7 +73,7 @@ XCOMM $TOG: Motif.tmpl /main/6 1999/05/19 17:00:05 mgreess $
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MTop
|
#ifndef MTop
|
||||||
# if ImportMotif
|
# if ImportMotif || UseInstalledMotif
|
||||||
# define MTop $(TOP)/imports/motif
|
# define MTop $(TOP)/imports/motif
|
||||||
# else
|
# else
|
||||||
# define MTop $(TOP)
|
# define MTop $(TOP)
|
||||||
|
|
|
@ -106,6 +106,8 @@ XCOMM operating system: OSName
|
||||||
#define GccGasOption -DGCCUSESGAS
|
#define GccGasOption -DGCCUSESGAS
|
||||||
#define AsmDefines -DUSE_GAS
|
#define AsmDefines -DUSE_GAS
|
||||||
|
|
||||||
|
/* Use installed X11 includes/libs */
|
||||||
|
#define UseInstalledX11 YES
|
||||||
|
|
||||||
#ifdef i386Architecture
|
#ifdef i386Architecture
|
||||||
# ifndef OptimizedCDebugFlags
|
# ifndef OptimizedCDebugFlags
|
||||||
|
|
|
@ -148,10 +148,8 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Use installed versions of Xm and X11 */
|
/* Use installed X11 includes/libs */
|
||||||
#if OSMajorVersion >= 6
|
|
||||||
# define UseInstalledX11 YES
|
# define UseInstalledX11 YES
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compiler Features
|
* Compiler Features
|
||||||
|
@ -1050,8 +1048,13 @@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Suppress warnings dependant from compiler versions */
|
||||||
#if !defined(GccWarningOptions)
|
#if !defined(GccWarningOptions)
|
||||||
# define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result
|
# if (defined __clang__)
|
||||||
|
# define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result
|
||||||
|
# else
|
||||||
|
# define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
|
#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
|
||||||
|
|
|
@ -21,9 +21,11 @@ XCOMM site: $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
|
||||||
/* CDE uses a .C suffix for C++ source, not the default .cxx */
|
/* CDE uses a .C suffix for C++ source, not the default .cxx */
|
||||||
# define CCsuf C
|
# define CCsuf C
|
||||||
|
|
||||||
/* We will import x11 and Motif. */
|
/* We will import x11. */
|
||||||
# define ImportX11 YES
|
# define ImportX11 YES
|
||||||
# define ImportMotif YES
|
|
||||||
|
/* We will use installed Motif. */
|
||||||
|
# define UseInstalledMotif YES
|
||||||
|
|
||||||
# ifndef TopLevelProject
|
# ifndef TopLevelProject
|
||||||
# define TopLevelProject cde
|
# define TopLevelProject cde
|
||||||
|
|
|
@ -376,7 +376,10 @@ man_keywords:: @@\
|
||||||
#define DependDefines -D__BUILTIN_VA_ARG_INCR
|
#define DependDefines -D__BUILTIN_VA_ARG_INCR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LdPreLib -L/usr/X11/lib -L$(BUILDLIBDIR)
|
/* Use installed X11 includes/libs */
|
||||||
|
#define UseInstalledX11 YES
|
||||||
|
|
||||||
|
#define LdPreLib -L$(BUILDLIBDIR)
|
||||||
#define PamUnixDefines -DPAM_NIS
|
#define PamUnixDefines -DPAM_NIS
|
||||||
#define TtLargePICTable YES
|
#define TtLargePICTable YES
|
||||||
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
|
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
|
||||||
|
@ -406,7 +409,7 @@ man_keywords:: @@\
|
||||||
#define TtClientExtraLibs ExtraLibraries -ldl -lintl
|
#define TtClientExtraLibs ExtraLibraries -ldl -lintl
|
||||||
|
|
||||||
#ifndef TopMotifInclude
|
#ifndef TopMotifInclude
|
||||||
# define TopMotifInclude /usr/X11/include
|
# define TopMotifInclude $(MPROJECTROOT)/include
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ShlibExportListOpt(filename) -M filename
|
#define ShlibExportListOpt(filename) -M filename
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
BOOTSTRAPCFLAGS =
|
BOOTSTRAPCFLAGS =
|
||||||
CC = cc
|
CC = cc
|
||||||
CDEBUGFLAGS = -O
|
CDEBUGFLAGS = -O
|
||||||
INCLUDES = -I../../include -I/usr/local/include/X11 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I../../imports/x11/include/X11
|
INCLUDES = -I../../include -I/usr/local/include/X11 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/X11R7/include/X11
|
||||||
CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES)
|
CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES)
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
@ -47,7 +47,7 @@ relink:
|
||||||
clean:
|
clean:
|
||||||
$(RM) ccimake imake.o imake
|
$(RM) ccimake imake.o imake
|
||||||
$(RM_CMD) \#*
|
$(RM_CMD) \#*
|
||||||
$(RM) -r Makefile.proto Makefile Makefile.dep bootstrap
|
$(RM) -r Makefile.proto Makefile Makefile.dep bootstrap .depend
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
|
||||||
|
|
|
@ -734,7 +734,7 @@ FindDialog::compareMessage(DtMailMessageHandle handle)
|
||||||
// See if string 'toFind' is anyware in string 'str'.
|
// See if string 'toFind' is anyware in string 'str'.
|
||||||
// A case-insensitive version of strstr().
|
// A case-insensitive version of strstr().
|
||||||
//
|
//
|
||||||
static const char *
|
const char *
|
||||||
FindDialog::strcasestr(const char *str, const char *toFind)
|
FindDialog::strcasestr(const char *str, const char *toFind)
|
||||||
{
|
{
|
||||||
const char *result = NULL; // Default to not found.
|
const char *result = NULL; // Default to not found.
|
||||||
|
|
|
@ -62,6 +62,12 @@ M4 = /bin/m4
|
||||||
|
|
||||||
#if defined(LinuxArchitecture) || defined(BSDArchitecture)
|
#if defined(LinuxArchitecture) || defined(BSDArchitecture)
|
||||||
|
|
||||||
|
#if defined(__llvm__)
|
||||||
|
NOIMPLTEMPLATES =
|
||||||
|
#else
|
||||||
|
NOIMPLTEMPLATES = -fno-implicit-templates
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* put cpp directives here rather than in CXXDEFINES because
|
* put cpp directives here rather than in CXXDEFINES because
|
||||||
* for some reason the CXXDEFINES aren't passed to the link phase
|
* for some reason the CXXDEFINES aren't passed to the link phase
|
||||||
|
@ -69,12 +75,12 @@ M4 = /bin/m4
|
||||||
*/
|
*/
|
||||||
CXXOPTIONS = \
|
CXXOPTIONS = \
|
||||||
-DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST \
|
-DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST \
|
||||||
-DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST -fno-implicit-templates
|
-DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST $(NOIMPLTEMPLATES)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flags passed into compile step when doing manual template instantiation.
|
* Flags passed into compile step when doing manual template instantiation.
|
||||||
*/
|
*/
|
||||||
CXXTEMPLATEFLAGS = -fno-implicit-templates
|
CXXTEMPLATEFLAGS = $(NOIMPLTEMPLATES)
|
||||||
|
|
||||||
M4 = /usr/bin/m4
|
M4 = /usr/bin/m4
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue