59 all.prereq := TARGET= all
60 install := TARGET= install
61 install.prereq := TARGET= all
62 clean := TARGET= clean
63 clobber := TARGET= clobber
64 lint := TARGET= lint
65 lint.prereq := TARGET= lint
66 modlintlib := TARGET= modlintlib
67 modlist := TARGET= modlist
68 modlist := NO_STATE= -K $$MODSTATE$$$$
69 clean.lint := TARGET= clean.lint
70 check := TARGET= check
71 install_h := TARGET= install_h
72 install_h.prereq := TARGET= install_h
73
74 .KEEP_STATE:
75
76 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
77 $(CLOSED_XMODS) config $(LINT_DEPS)
78
79 def all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) \
80 $(SVVS) $(XMODS) $(CLOSED_XMODS) config
81
82
83 #
84 # Privilege constants
85 #
86 # NOTE: The rules for generating priv_const.c file are shared between all
87 # processor architectures and and should be kept in sync. If they are changed in
88 # this file make sure that sparc rules are updated as well.
89 #
90 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
91
92 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
93 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
94
95 #
96 # Prerequisites
97 #
98 # The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
99 # i86xpv and intel are all built in parallel. This requires building certain
100 # parts before the parallel build can start. The uts/Makefile appends the
101 # '.prereq' string to the original target and executes this Makefile to build
102 # any prerequisites needed before the full parallel build can start. After that
103 # make continues with normal targets.
104 #
105 # Any build prerequisites for x86 builds should be described here.
106 #
107 # genassym is used to build intel/dtrace and genunix, so it should be built
108 # first.
109 #
110 # priv_const.c is required to build genunix.
111 #
112 # genunix is used by everyone to ctf-merge with. Genunix is CTF-merged with
113 # intel/ip so as a side effect this dependency builds intel/ip as part of the
114 # prerequisites.
115 #
116 # intel/dtrace depends on i86pc/genassym, so we need to build both
117 # i86pc/genassym and intel/genassym.
118 #
119 all.prereq install.prereq def.prereq: genunix FRC
120 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
121
122 #
123 # i86pc lint libraries should be built first
124 #
125 lint.prereq: FRC
126 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
127
128 #
129 # Nothing to do for any other prerequisite targets.
130 #
131 %.prereq:
132
133 genunix: $(PRIVS_C)
134
135 modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
136 $(XMODS) $(CLOSED_XMODS)
137
138 $(KMODS) $(SUBDIRS) config: FRC
139 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
140
141 $(CLOSED_KMODS): FRC
142 cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
143
144 $(XMODS): FRC
145 @if [ -f $@/Makefile ]; then \
146 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
147 else \
148 true; \
149 fi
150
151 $(SVVS) $(CLOSED_XMODS): FRC
152 @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
153 cd $(CLOSED)/uts/intel/$@; pwd; \
154 $(MAKE) $(NO_STATE) $(TARGET); \
155 else \
156 true; \
157 fi
158
|
59 all.prereq := TARGET= all
60 install := TARGET= install
61 install.prereq := TARGET= all
62 clean := TARGET= clean
63 clobber := TARGET= clobber
64 lint := TARGET= lint
65 lint.prereq := TARGET= lint
66 modlintlib := TARGET= modlintlib
67 modlist := TARGET= modlist
68 modlist := NO_STATE= -K $$MODSTATE$$$$
69 clean.lint := TARGET= clean.lint
70 check := TARGET= check
71 install_h := TARGET= install_h
72 install_h.prereq := TARGET= install_h
73
74 .KEEP_STATE:
75
76 .PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
77 $(CLOSED_XMODS) config $(LINT_DEPS)
78
79 def all install clean clobber modlist: genassym $(KMODS) $(CLOSED_KMODS) \
80 $(SVVS) $(XMODS) $(CLOSED_XMODS) config
81
82
83 #
84 # Privilege constants
85 #
86 # NOTE: The rules for generating priv_const.c file are shared between all
87 # processor architectures and and should be kept in sync. If they are changed in
88 # this file make sure that sparc rules are updated as well.
89 #
90 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
91
92 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
93 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
94
95 #
96 # Prerequisites
97 #
98 # The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
99 # i86xpv and intel are all built in parallel. This requires building certain
100 # parts before the parallel build can start. The uts/Makefile appends the
101 # '.prereq' string to the original target and executes this Makefile to build
102 # any prerequisites needed before the full parallel build can start. After that
103 # make continues with normal targets.
104 #
105 # Any build prerequisites for x86 builds should be described here.
106 #
107 # genassym is used to build intel/dtrace and genunix, so it should be built
108 # first.
109 #
110 # priv_const.c is required to build genunix.
111 #
112 # genunix is used by everyone to ctf-merge with. Genunix is CTF-merged with
113 # intel/ip so as a side effect this dependency builds intel/ip as part of the
114 # prerequisites.
115 #
116 # intel/dtrace depends on i86pc/genassym, so we need to build both
117 # i86pc/genassym and intel/genassym.
118 #
119 all.prereq install.prereq def.prereq: genassym genunix FRC
120 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
121
122 #
123 # i86pc lint libraries should be built first
124 #
125 lint.prereq: FRC
126 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
127
128 #
129 # Nothing to do for any other prerequisite targets.
130 #
131 %.prereq:
132
133 genunix: $(PRIVS_C)
134
135 modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
136 $(XMODS) $(CLOSED_XMODS)
137
138 genassym $(KMODS) $(SUBDIRS) config: FRC
139 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
140
141 $(CLOSED_KMODS): FRC
142 cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
143
144 $(XMODS): FRC
145 @if [ -f $@/Makefile ]; then \
146 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
147 else \
148 true; \
149 fi
150
151 $(SVVS) $(CLOSED_XMODS): FRC
152 @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
153 cd $(CLOSED)/uts/intel/$@; pwd; \
154 $(MAKE) $(NO_STATE) $(TARGET); \
155 else \
156 true; \
157 fi
158
|