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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # uts/sun4u/makaha/Makefile
27 # This makefile drives the production of all Makaha system
28 # dependent modules for the sun4u architecture.
32 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 # Include common rules.
39 include $(UTSBASE
)/sun4u
/makaha
/Makefile.makaha
43 install := TARGET
= install
44 install_h
:= TARGET
= install_h
45 clean := TARGET
= clean
46 clobber := TARGET
= clobber
47 modlist
:= TARGET
= modlist
48 modlist
:= NO_STATE
= -K
$$MODSTATE$$$$
49 check := TARGET
= check
52 # Default build targets.
56 def
all clean clobber modlist
: $(MAKAHA_KMODS
)
58 install: $(ROOT_MAKAHA_DIR
) $(USR_MAKAHA_DIR
) \
59 $(USR_MAKAHA_INC_DIR
) \
60 $(USR_MAKAHA_SBIN_DIR
) \
61 $(USR_MAKAHA_LIB_DIR
) \
62 $(ROOT_SPUTNIK_DIR
) $(USR_SPUTNIK_DIR
) \
63 $(USR_SPUTNIK_INC_DIR
) \
64 $(USR_SPUTNIK_SBIN_DIR
) \
65 $(USR_SPUTNIK_LIB_DIR
) \
66 .WAIT
$(MAKAHA_KMODS
) \
68 acebus.conf se.conf scsb.conf \
69 ttymux_dacf ttymux.conf
71 acebus.conf
: $(ROOT_MAKAHA_DRV_DIR
)
72 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR
)/$@
73 $(CP
) $(UTSBASE
)/sun4u
/makaha
/io
/$@ \
74 $(ROOT_MAKAHA_DRV_DIR
)/$@
75 $(CHMOD
) $(CFILEMODE
) $(ROOT_MAKAHA_DRV_DIR
)/$@
77 pcf8574
: $(ROOT_MAKAHA_DRV_DIR_64
)
78 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR_64
)/$@
79 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK_64
)/$@ \
80 $(ROOT_MAKAHA_DRV_DIR_64
)/$@
82 acebus
: $(ROOT_MAKAHA_DRV_DIR_64
)
83 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR_64
)/$@
84 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK_64
)/$@ \
85 $(ROOT_MAKAHA_DRV_DIR_64
)/$@
87 scsb
: $(ROOT_MAKAHA_DRV_DIR_64
)
88 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR_64
)/$@
89 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK_64
)/$@ \
90 $(ROOT_MAKAHA_DRV_DIR_64
)/$@
92 scsb.conf
: $(ROOT_MAKAHA_DRV_DIR
)
93 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR
)/$@
94 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK
)/$@ \
95 $(ROOT_MAKAHA_DRV_DIR
)/$@
97 se.conf
: $(ROOT_MAKAHA_DRV_DIR
)
98 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR
)/$@
99 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK
)/$@ \
100 $(ROOT_MAKAHA_DRV_DIR
)/$@
102 ttymux_dacf
: $(ROOT_MAKAHA_DACF_DIR_64
) \
103 $(ROOT_SPUTNIK_DACF_DIR_64
)
104 -@
$(RM
) $(ROOT_MAKAHA_DACF_DIR_64
)/$@
105 -@
$(RM
) $(ROOT_SPUTNIK_DACF_DIR_64
)/$@
106 $(SYMLINK
) $(ROOT_MAKAHA_DACF_LINK_64
)/$@ \
107 $(ROOT_MAKAHA_DACF_DIR_64
)/$@
108 $(SYMLINK
) $(ROOT_SPUTNIK_DACF_LINK_64
)/$@ \
109 $(ROOT_SPUTNIK_DACF_DIR_64
)/$@
112 ttymux.conf
: $(ROOT_MAKAHA_DRV_DIR
) \
113 $(ROOT_SPUTNIK_DRV_DIR
)
114 -@
$(RM
) $(ROOT_MAKAHA_DRV_DIR
)/$@
115 -@
$(RM
) $(ROOT_SPUTNIK_DRV_DIR
)/$@
116 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK
)/$@ \
117 $(ROOT_MAKAHA_DRV_DIR
)/$@
118 $(SYMLINK
) $(ROOT_MAKAHA_DRV_LINK
)/$@ \
119 $(ROOT_SPUTNIK_DRV_DIR
)/$@
124 @cd
$@
; pwd
; $(MAKE
) $(NO_STATE
) $(TARGET
)
127 # Include common targets.
129 include $(UTSBASE
)/sun4u
/makaha
/Makefile.targ