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