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]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # uts/sun4u/sys/Makefile
29 # include global definitions
31 include ..
/Makefile.sun4u
99 I2CHDRS
= clients
/max1617.h misc
/i2c_svc.h clients
/i2c_client.h \
100 clients
/hpc3130.h clients
/lm75.h \
101 clients
/pcf8591.h clients
/ssc050.h
103 I2C_DIRS
= clients misc
104 USR_PSM_ISYS_I2C_ROOT
= $(USR_PSM_ISYS_DIR
)/i2c
105 USR_PSM_ISYS_I2C_DIRS
= $(USR_PSM_ISYS_I2C_ROOT
) \
106 $(I2C_DIRS
:%=$(USR_PSM_ISYS_I2C_ROOT
)/%)
108 ROOTI2CHDRS
= $(I2CHDRS
:%=$(USR_PSM_ISYS_I2C_ROOT
)/%)
111 #MONHDRS= eeprom.h idprom.h keyboard.h password.h
113 USR_PSM_MON_DIR
= $(USR_PSM_ISYS_DIR
)/mon
115 ROOTHDRS
= $(HDRS
:%=$(USR_PSM_ISYS_DIR
)/%)
117 SUN4_ROOTHDRS
= $(SUN4_HDRS
:%=$(USR_PSM_ISYS_DIR
)/%)
119 ROOTMONHDRS
= $(MONHDRS
:%=$(USR_PSM_MON_DIR
)/%)
121 ROOTDIR
= $(ROOT
)/usr
/share
/src
122 ROOTDIRS
= $(ROOTDIR
)/uts
$(ROOTDIR
)/uts
/$(PLATFORM
)
124 ROOTLINK
= $(ROOTDIR
)/uts
/$(PLATFORM
)/sys
125 LINKDEST
= ..
/..
/..
/..
/platform
/$(PLATFORM
)/include/sys
127 CHECKHDRS
= $(HDRS
:%.h
=%.
check) \
128 $(MONHDRS
:%.h
=mon
/%.
check) \
129 $(SUN4_HDRS
:%.h
=%.cmncheck
)
133 .PARALLEL
: $(CHECKHDRS
) $(ROOTHDRS
) $(ROOTMONHDRS
) $(SUN4_ROOTHDRS
)
135 install_h
: $(ROOTDIRS
) $(USR_PSM_ISYS_I2C_DIRS
) .WAIT \
136 $(ROOTHDRS
) $(ROOTI2CHDRS
) \
138 $(SUN4_ROOTHDRS
) $(ROOTLINK
)
145 $(USR_PSM_MON_DIR
): $(USR_PSM_ISYS_DIR
)
148 $(USR_PSM_ISYS_I2C_DIRS
):
151 $(USR_PSM_ISYS_DIR
)/%: ..
/..
/sfmmu
/sys
/% $(USR_PSM_ISYS_DIR
)
154 $(USR_PSM_ISYS_DIR
)/%: ..
/..
/sun4
/sys
/% $(USR_PSM_ISYS_DIR
)
157 $(USR_PSM_MON_DIR
)/%: mon
/% $(USR_PSM_MON_DIR
)
163 # -r because this used to be a directory and is now a link.
164 $(ROOTLINK
): $(ROOTDIRS
)
165 -$(RM
) -r
$@
; $(SYMLINK
) $(LINKDEST
) $@
170 %.
check: ..
/..
/sfmmu
/sys
/%.h
172 %.cmncheck
: ..
/..
/sun4
/sys
/%.h
177 include ..
/..
/Makefile.targ