4
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group , Inc.
5
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
6
* the full copyright text.
8
* (c) Copyright 1996 Digital Equipment Corporation.
9
* (c) Copyright 1996 Hewlett-Packard Company.
10
* (c) Copyright 1996 International Business Machines Corp.
11
* (c) Copyright 1996 Sun Microsystems, Inc.
12
* (c) Copyright 1996 Novell, Inc.
13
* (c) Copyright 1996 FUJITSU LIMITED.
14
* (c) Copyright 1996 Hitachi.
16
XCOMM $Xorg: cde.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
18
/* Note whether we are the top level project. */
19
#ifndef SeenTopLevelProject
20
# define SeenTopLevelProject YES
21
# define CDEIsTopLevelProject YES
23
# define CDEIsTopLevelProject NO
26
/* Include the Motif project rules file. */
27
#include <Motif.rules>
30
/* Use the in-tree CDE by default. */
31
#ifndef UseInstalledCDE
32
# define UseInstalledCDE NO
35
# undef UseInstalledCDE
36
# define UseInstalledCDE YES
41
# define ImportCDE YES
51
/* If CDE has a different ProjectRoot we need to search the regular ones too. */
53
# define CUsrLibDirPath Concat(MUsrLibDirPath,:$(CDEPROJECTROOT)/lib)
55
# define CUsrLibDirPath MUsrLibDirPath
60
#define UsrLibDirPath CUsrLibDirPath
63
# define CLdPreLibs -L$(CDELIBSRC)
64
#elif defined(UseInstalledCDE) && defined(CDEProjectRoot)
65
# define CLdPreLibs -L$(CDEPROJECTROOT)/lib
67
# define CLdPreLibs /**/
72
#define LdPreLibs LdPreLib CLdPreLibs MLdPreLibs XLdPreLibs
75
# define CLdPostLibs -L$(CDEPROJECTROOT)/lib
77
# define CLdPostLibs /**/
82
#define LdPostLibs LdPostLib CLdPostLibs MLdPostLibs XLdPostLibs
87
#define TopIncludes TopInclude $(TOP_CDE_INCLUDES) $(TOP_MOTIF_INCLUDES) $(TOP_X_INCLUDES)
89
#if UseInstalledCDE && defined(CDEProjectRoot)
90
# define CDEBuildLibPath $(CDEPROJECTROOT)/lib
92
# define CDEBuildLibPath $(USRLIBDIR)
94
# define CDEBuildLibPath $(CDELIBSRC)
96
# define CDEBuildLibPath $(TOP)/exports/lib
101
#ifdef SystemBuildLibPath
102
# define BuildLibPath \
103
$(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR):$(SYSTEMENVLIBDIR)
105
# define BuildLibPath $(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR)
109
#ifndef CdeInstallationTop
110
# define CdeInstallationTop /usr/dt
112
#ifndef CdeConfigurationTop
113
# define CdeConfigurationTop /etc/dt
115
#ifndef CdeLogFilesTop
116
# define CdeLogFilesTop /var/dt
119
# define CdeUserTop .dt
122
#ifndef CdeProjectDefines
123
# define CdeProjectDefines \
124
-DANSICPP -DMULTIBYTE -DNLS16 \
125
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion
127
#ifdef ProjectDefines
128
# undef ProjectDefines
130
#define ProjectDefines X11ProjectDefines MotifProjectDefines CdeProjectDefines
132
#ifndef CdeCplusplusProjectDefines
133
# define CdeCplusplusProjectDefines CdeProjectDefines
135
#ifdef CplusplusProjectDefines
136
# undef CplusplusProjectDefines
138
#define CplusplusProjectDefines \
139
X11CplusplusProjectDefines MotifCplusplusProjectDefines CdeCplusplusProjectDefines
146
* MakeSdlVolume - generate rules to create an SDL volume, in the specified
147
* directory, from an SGML source doc.
148
* Note: the volume name must match the directory name.
150
#ifndef MakeSdlVolume
151
#define MakeSdlVolume(vol,dir,env,opts,dep) @@\
152
all:: dir/vol.sdl @@\
156
env $(DTDOCBOOK) $(DTDOCBOOKOPTIONS) opts -o dir/vol.sdl vol/book.sgm @@\
159
$(RM) dir/vol.sdl vol/book.log
163
* MakeTocFile - generate rules to create an SGML TOC file.
164
* Note: the volume name must match the directory name.
167
#define MakeTocFile(vol,env,opts,ttle,ident,dep) @@\
168
all:: vol/TOC.sgm @@\
171
MakeDir($(DTINFOGENTMPDIR)) @@\
172
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
179
#define MakeTocFile3(vol,env,opts,ttle,ident,dep1,dep2,dep3) @@\
180
all:: vol/TOC.sgm @@\
182
vol/TOC.sgm: dep1 @@\
183
vol/TOC.sgm: dep2 @@\
184
vol/TOC.sgm: dep3 @@\
185
MakeDir($(DTINFOGENTMPDIR)) @@\
186
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
193
* TocFileDep - generate TOC file dependency rule
196
#define TocFileDep(vol,dep) @@\
201
* MakeInfolib - generate rules to create an infolib.
204
#define MakeInfolib(infolib,bkcase,env,opts,dep) @@\
205
all:: infolib/bkcase/dtsearch/dtsearch.ocf @@\
207
infolib/bkcase/dtsearch/dtsearch.ocf: dep @@\
208
MakeDir($(DTINFOGENTMPDIR)) @@\
210
env $(DTINFOGEN) build -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -l infolib bookcase.bc
214
* InfolibDep - generate infolib dependency rule - Highly depending on MMDB!
217
#define InfolibDep(infolib,bkcase,dep) @@\
218
infolib/bkcase/dtsearch/dtsearch.ocf: dep
222
#define InfolibDep3(infolib,bkcase,dep1,dep2,dep3) @@\
223
infolib/bkcase/dtsearch/dtsearch.ocf: dep1 @@\
224
infolib/bkcase/dtsearch/dtsearch.ocf: dep2 @@\
225
infolib/bkcase/dtsearch/dtsearch.ocf: dep3