xref: /illumos-gate/usr/src/uts/sun4u/daktari/Makefile (revision baa111a1)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# uts/sun4u/daktari/Makefile
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	This makefile drives the production of all Daktari system
27#	dependent modules for the sun4u architecture.
28#
29
30
31#
32#	Path to the base of the uts directory tree (usually /usr/src/uts).
33#
34UTSBASE = ../..
35
36#
37#	Include common rules.
38#
39include $(UTSBASE)/sun4u/daktari/Makefile.daktari
40
41def		:=	TARGET= def
42all		:=	TARGET= all
43install		:=	TARGET= install
44install_h	:=	TARGET= install_h
45clean		:=	TARGET= clean
46clobber		:=	TARGET= clobber
47modlist		:=	TARGET= modlist
48modlist		:=	NO_STATE= -K $$MODSTATE$$$$
49check		:=	TARGET= check
50
51#
52#	Default build targets.
53#
54.KEEP_STATE:
55
56def all clean clobber modlist: $(DAKTARI_KMODS)
57
58IMPLEMENTED_PLATFORM	= SUNW,Sun-Fire-880
59
60LINKED_PLATFORMS	= SUNW,Sun-Fire-V890
61
62install:	$(ROOT_DAKTARI_DIR) $(USR_DAKTARI_DIR) \
63		$(USR_DAKTARI_INC_DIR) \
64		$(USR_DAKTARI_SBIN_DIR) \
65		$(USR_DAKTARI_LIB_DIR) \
66		$(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
67		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) \
68		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/include) \
69		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/sbin) \
70		$(DAKTARI_CRYPTO_LINKS) \
71		.WAIT $(DAKTARI_KMODS)
72
73$(DAKTARI_CRYPTO_LINKS): $(ROOT_DAKTARI_CRYPTO_DIR_64)
74	-$(RM) $(ROOT_DAKTARI_CRYPTO_DIR_64)/$@;
75	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_DAKTARI_CRYPTO_DIR_64)/$@
76
77install_h check:	FRC
78	@cd sys; pwd; $(MAKE) $(TARGET)
79
80$(DAKTARI_KMODS):	FRC
81	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
82
83#
84#
85#	Include common targets.
86#
87include $(UTSBASE)/sun4u/daktari/Makefile.targ
88