1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:41:52 cpqbld Exp $
XCOMM $XFree86: xc/config/util/Imakefile,v 3.49 2003/10/21 17:41:45 tsi Exp $
CCMDEP_PROG = ccmakedep
#ifdef ExportListGenSource
EXPORTLISTGEN = exportlistgen
#endif
#if defined(Win32Architecture) && !defined(CrossCompiling)
CMKDIRHIER = mkdirhier.exe
#endif
GCCMDEP_PROG = gccmakedep
#if HasSymLinks
#if CrossCompiling
LNDIR_PROG = HostProgramTargetName(lndir)
#else
LNDIR_PROG = ProgramTargetName(lndir)
#endif
#endif
#if CrossCompiling
MAKESTRS_PROG = HostProgramTargetName(makestrs)
REVPATH_PROG = HostProgramTargetName(revpath)
#else
MAKESTRS_PROG = ProgramTargetName(makestrs)
REVPATH_PROG = ProgramTargetName(revpath)
#endif
#if BuildRman
RMAN_PROG = HostProgramTargetName(rman)
#endif
PROGRAMS = $(RMAN_PROG) $(LNDIR_PROG) $(MAKESTRS_PROG) \
$(REVPATH_PROG) $(EXPORTLISTGEN) $(CMKDIRHIER)
DEPLIBS =
#ifndef Win32Architecture
EXTRA_LIBRARIES =
#endif
#ifdef LinuxArchitecture
PREPROCESSCMD_MKDEPEND = PreProcessCmd StandardCppDefines $(PROJECT_DEFINES)
#else
PREPROCESSCMD_MKDEPEND = $(PREPROCESSCMD)
#endif
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 =
#if CrossCompiling
LDPOSTLIBS =
LDPOSTLIB =
#endif
all:: xmkmf mergelib $(CCMDEP_PROG) $(GCCMDEP_PROG) $(PROGRAMS)
makedependonly:: $(CCMDEP_PROG) $(GCCMDEP_PROG)
#if HasGcc
GCCCMD = $(CC)
#else
GCCCMD = gcc
#endif
#if CrossCompiling
includes:: HostProgramTargetName(makestrs)
#else
includes:: ProgramTargetName(makestrs)
#endif
#ifdef ExportListGenSource
CppScriptTarget(exportlistgen,ExportListGenSource,-DCXXFILT=$(CXXFILT),)
InstallNamedProg(exportlistgen,exportlistgen,$(BINDIR))
#endif
CppScriptTarget(xmkmf,xmkmf.cpp,-DCONFIGDIRSPEC='"'"-I$(CONFIGDIR)"'"',$(ICONFIGFILES))
CppScriptTarget(ccmakedep,mdepend.cpp,-DPREPROC='"'"$(PREPROCESSCMD_MKDEPEND)"'"',$(ICONFIGFILES))
CppScriptTarget(mergelib,mergelib.cpp,"-DARCMD=$(AR)" "-DRANLIB=$(RANLIB)",$(ICONFIGFILES))
CppScriptTarget(gccmakedep,gccmdep.cpp,-DCCCMD='"'"$(GCCCMD)"'"' -DRMCMD='"'"$(RM)"'"' -DLNCMD='"'"$(LN)"'"' -DMVCMD='"'"$(MV)"'"',$(ICONFIGFILES))
#ifndef OpenBSDArchitecture
#if HasSymLinks
#if CrossCompiling
SimpleHostProgramTarget_2(lndir)
#else
AllTarget(lndir)
SimpleProgramTarget_2(lndir)
#endif
#endif
#endif
#if defined(Win32Architecture) && !defined(CrossCompiling)
AllTarget(ProgramTargetName(mkdirhier))
SimpleProgramTarget_3(mkdirhier)
#endif
#if CrossCompiling
AllTarget(HostProgramTargetName(makestrs))
SimpleHostProgramTarget_1(makestrs)
AllTarget(HostProgramTargetName(revpath))
SimpleHostProgramTarget_4(revpath)
#else
AllTarget(ProgramTargetName(makestrs))
SimpleProgramTarget_1(makestrs)
AllTarget(ProgramTargetName(revpath))
SimpleProgramTarget_4(revpath)
#endif
#if BuildRman
rmanonly:: $(RMAN_PROG)
VOLLIST="1:2:3:4:5:6:7:8:9:o:l:n:p"
MANTITLEPRINTF="%s(%s) manual page"
MANREFPRINTF="%s.%s.html"
RMANVERSION="3.0.8+X.Org"
#if CrossCompiling
AllTarget(HostProgramTargetName(rman))
SimpleHostProgramTarget_3(rman)
#else
AllTarget(ProgramTargetName(rman))
SimpleProgramTarget_5(rman)
#endif
SpecialCObjectRule(rman,NullParameter,-DVOLLIST='$(VOLLIST)' -DMANTITLEPRINTF='$(MANTITLEPRINTF)' -DMANREFPRINTF='$(MANREFPRINTF)' -DPOLYGLOTMANVERSION='$(RMANVERSION)' -DXOrg)
LinkSourceFile(rman.c,$(TOP)/extras/rman)
LinkFile(rman.man,$(TOP)/extras/rman/rman.1)
#endif
InstallManPage(xmkmf,$(MANDIR))
InstallNamedProg(xmkmf,xmkmf,$(BINDIR))
InstallNamedProg(mkdirhier.sh,mkdirhier,$(BINDIR))
InstallManPage(mkdirhier,$(MANDIR))
InstallNamedProg(gccmakedep,gccmakedep,$(BINDIR))
InstallManPage(gccmakedep,$(MANDIR))
#if defined(QNX4Architecture) || defined(NTOArchitecture)
InstallNamedProg(install.sh,install,$(BINDIR))
#endif
InstallDriverSDKNamedProg(mkdirhier.sh,mkdirhier.sh,$(DRIVERSDKDIR)/config/util)
InstallDriverSDKNamedProg(gccmakedep,gccmakedep,$(DRIVERSDKDIR)/config/util)
InstallNamedProg(mergelib,mergelib,$(BINDIR))
InstallManPage(mergelib,$(MANDIR))
InstallNamedProg(makeg.sh,makeg,$(BINDIR))
InstallManPage(makeg,$(MANDIR))
InstallNamedProg(cleanlinks.sh,cleanlinks,$(BINDIR))
InstallManPage(cleanlinks,$(MANDIR))
#if HasPerl
InstallNamedProg(mkhtmlindex.pl,mkhtmlindex,$(BINDIR))
#else
InstallNamedProg(mkhtmlindex.sh,mkhtmlindex,$(BINDIR))
#endif
InstallManPage(mkhtmlindex,$(MANDIR))
InstallNamedProg(ccmakedep,ccmakedep,$(BINDIR))
InstallManPage(ccmakedep,$(MANDIR))
InstallDriverSDKNamedProg(ccmakedep,ccmakedep,$(DRIVERSDKDIR)/config/util)
#if SystemV || SystemV4
InstallNamedProg(bsdinst.sh,bsdinst,$(BINDIR))
InstallDriverSDKNamedProg(bsdinst.sh,bsdinst.sh,$(DRIVERSDKDIR)/config/util)
#endif
InstallDriverSDKNamedProg(revpath,revpath,$(DRIVERSDKDIR)/config/util)
#ifdef OS2Architecture
InstallNamedProg(makedef.cmd,makedef.cmd,$(BINDIR))
#endif
|