xref: /titanic_41/usr/src/uts/sun4u/boston/Makefile (revision d291d9f21e8c0417aec99de243dd48bc400002d0)
1#
2# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7# uts/sun4u/boston/Makefile
8#
9#	This makefile drives the production of the sun4u boston platform
10#	module.
11#
12#	sun4u implementation architecture dependent
13#
14
15#
16#	Path to the base of the uts directory tree (usually /usr/src/uts).
17#
18UTSBASE	= ../..
19
20#
21#	Include common rules.
22#
23include $(UTSBASE)/sun4u/boston/Makefile.boston
24
25def		:=	TARGET= def
26all		:=	TARGET= all
27install		:=	TARGET= install
28install_h	:=	TARGET= install_h
29clean		:=	TARGET= clean
30clobber		:=	TARGET= clobber
31lint		:=	TARGET= lint
32lintlib		:=	TARGET= lintlib
33modlintlib	:=	TARGET= modlintlib
34clean.lint	:=	TARGET= clean.lint
35check		:=	TARGET= check
36
37#
38#	Default build targets.
39#
40.KEEP_STATE:
41
42def all clean clean.lint clobber: $(BOSTON_KMODS)
43
44modlintlib:	$(BOSTON_KMODS)
45
46# EXPORT DELETE START
47#
48# aes256 is delivered in the SUNWcryr package which is removed from
49# the EXPORT_SRC build.
50#
51BOSTON_CRYPTO_LINKS	+= aes256
52# EXPORT DELETE END
53
54install:	$(ROOT_BOSTON_DIR) \
55		$(USR_BOSTON_DIR) \
56		$(USR_BOSTON_INC_DIR) \
57		$(USR_BOSTON_SBIN_EEPROM) \
58		$(USR_BOSTON_SBIN_PRTDIAG) \
59		$(USR_BOSTON_SBIN_TRAPSTAT) \
60		$(USR_BOSTON_LIB_DIR) \
61		$(BOSTON_CRYPTO_LINKS) \
62		.WAIT $(BOSTON_KMODS)
63
64check install_h:
65
66lint:		modlintlib
67
68#
69# The 'lint.platmod' target lints the boston platform module against the sun4u
70# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
71# of minutes.  Due to the low ROI, it's not run by default, but it's a good
72# idea to run this if you change os/boston.c.
73#
74LINT_LIBS	 = $(LINT_LIB) \
75		   -L$(BOSTON_LINT_LIB_DIR) \
76		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
77		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
78
79lint.platmod:	modlintlib
80	@-$(ECHO) "\nBoston Platform-dependent module: global crosschecks:"
81	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
82
83$(BOSTON_KMODS): FRC
84	@cd $@; pwd; $(MAKE) $(TARGET)
85
86$(BOSTON_CRYPTO_LINKS): $(ROOT_BOSTON_CRYPTO_DIR_64)
87	-$(RM) $(ROOT_BOSTON_CRYPTO_DIR_64)/$@;
88	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_BOSTON_CRYPTO_DIR_64)/$@
89
90# EXPORT DELETE START
91
92EXPORT_SRC:
93	$(RM) Makefile+
94	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
95	    < Makefile > Makefile+
96	$(MV) Makefile+ Makefile
97	$(CHMOD) 444 Makefile
98
99# EXPORT DELETE END
100
101#
102#
103#	Include common targets.
104#
105include $(UTSBASE)/sun4u/boston/Makefile.targ
106