Merge commit 'cb41b9c565d4eec9e1f06e24d429696f59f2f07d'
[unleashed.git] / usr / src / uts / i86pc / Makefile
blob8eea2f0a8b7322882af8148a498c49d7b3158419
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # This makefile drives the production of all implementation architecture
26 # dependent modules for the i86pc architecture.
29 UTSBASE = ..
31 include Makefile.i86pc
33 def := TARGET= def
34 all := TARGET= all
35 install := TARGET= install
36 install_h := TARGET= install_h
37 clean := TARGET= clean
38 clobber := TARGET= clobber
39 modlist := TARGET= modlist
40 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
41 check := TARGET= check
43 .KEEP_STATE:
45 .PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
47 INITIAL_TARGETS = \
48 genassym \
49 unix \
50 cpu/scripts
52 def all clean clobber: setup genassym unix .WAIT \
53 $(KMODS) $(XMODS)
55 install: install_platforms setup genassym unix .WAIT \
56 $(KMODS) $(XMODS)
58 # list the modules under i86pc.
59 modlist: unix $(KMODS) $(XMODS)
61 # list the modules for Install -k i86pc.
62 modlist.karch: modlist modlist.intel
64 modlist.intel:
65 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
67 genassym unix $(KMODS): FRC
68 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
70 setup: FRC
71 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
73 $(XMODS): FRC
74 @if [ -f $@/Makefile ]; then \
75 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
76 else \
77 true; \
80 install_h check: FRC
83 # Definitions for the /platform directory aliases.
84 # Currently none for i86pc.
86 PLAT_LINKS =
89 # Make the /platform directories. This is hardwired here because
90 # the first stage of the project (KBI) only implements the userland
91 # changes, but the only reasonable place to record the aliases is
92 # here in kernel land.
94 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
95 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
96 $(OEM_USR_PLAT_LINKS)
98 include ../Makefile.targ