blob: 5845a4c77c65ca67fc9d3c9b9bd9bd449c7b9054 (
plain)
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
|
# $Xorg: Makefile,v 1.5 2000/08/17 19:41:44 cpqbld Exp $
# $Id: Makefile,v 1.5 2005/12/14 23:41:52 alanc Exp $
# $XFree86: xc/Makefile,v 3.28tsi Exp $
# Luna users will need to either run make as "make MAKE=make"
# or add "MAKE = make" to this file.
RELEASE = "Release $(shell cat ../VERSION)"
SHELL = /bin/sh
RM = rm -f
MV = mv
WORLDOPTS =
WIN32WORLDOPTS = -i
TOP = .
CURRENT_DIR = .
CONFIGSRC = $(TOP)/config
IRULESRC = $(CONFIGSRC)/cf
IMAKE = imake
IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
MAKE_OPTS = -f xmakefile
MAKE_CMD = $(MAKE) $(MAKE_OPTS)
all:
@${MAKE_CMD} xmakefile-exists || $(MAKE) all-initial
@${MAKE_CMD} $@
all-initial:
@echo Please use make World, or on NT use nmake World.Win32.
@echo
@echo Read the release notes carefully before proceeding.
@echo Do not name your log file make.log or it will be deleted.
World:
@echo ""
@echo Building $(RELEASE).
@echo ""
@date
@echo ""
if [ ! -f xmakefile ]; then ${MAKE} ${MFLAGS} BuildEnv; fi
${MAKE_CMD} $(MFLAGS) $(WORLDOPTS) World
@echo ""
@date
@echo ""
@echo Full build of $(RELEASE) complete.
@echo ""
CleanEnv:
@if [ -f xmakefile ]; then \
${MAKE_CMD} -k distclean || \
${MAKE_CMD} -k clean || \
$(RM) xmakefile; \
fi
@rm -f $(IRULESRC)/date.def; echo "" > $(IRULESRC)/date.def;
${MAKE} $(MFLAGS) xmakefile
${MAKE_CMD} $(MFLAGS) VerifyOS
${MAKE_CMD} $(MFLAGS) Makefiles
${MAKE_CMD} $(MFLAGS) BOOTSTRAPSUBDIRS= clean
BuildEnv: CleanEnv BuildIncludes BuildDependsOnly
BuildIncludes: CleanEnv
${MAKE_CMD} $(MFLAGS) includes
BuildDependsOnly:
${MAKE_CMD} $(MFLAGS) depend
.PRECIOUS: Makefile
# This is just a sequence of bootstrapping steps we have to do.
# The steps are listed as separate targets so clearmake can wink in
# the Makefile.proto files.
Makefile::
$(MAKE) $(MFLAGS) xmakefile
xmakefile: Imakefile
@if [ -f xmakefile ]; then set -x; \
$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak; \
else exit 0; fi
@rm -f $(IRULESRC)/date.def; echo "" > $(IRULESRC)/date.def;
$(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
# don't allow any default rules in this Makefile
.SUFFIXES:
# quiet "make" programs that display a message if suffix list empty
.SUFFIXES: .Dummy
# a copy of every rule that might be invoked at top level
clean:
-${MAKE_CMD} $@
find config lib programs include -type f -name Makefile | while read makefile; do rm -f $$makefile; done
dangerous_strip_clean:
${MAKE_CMD} $@
distclean:
-${MAKE_CMD} $@
$(RM) xmakefile
depend:
${MAKE_CMD} $@
Everything:
${MAKE_CMD} $@
external.ln:
${MAKE_CMD} $@
includes:
${MAKE_CMD} $@
install.sdk:
${MAKE_CMD} $@
install.ln:
${MAKE_CMD} $@
install.man:
${MAKE_CMD} $@
install:
${MAKE_CMD} $@
Makefiles:
${MAKE_CMD} $@
man_keywords:
${MAKE_CMD} $@
tags:
${MAKE_CMD} $@
VerifyOS:
${MAKE_CMD} $@
|