xref: /titanic_44/usr/src/uts/sun4u/seattle/Makefile.targ (revision f56c1286e5113aa46bd6e723da14d30c123153f2)
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#	Common targets for sun4u implementation specific modules.
8#
9
10.KEEP_STATE:
11
12IMPLEMENTED_PLATFORM   = SUNW,Sun-Fire-V215
13#
14# Rules for implementation subdirectories.
15#
16$(ROOT_SEATTLE_DIR): $(ROOT_PLAT_DIR)
17	-$(INS.dir.root.sys)
18
19$(ROOT_SEATTLE_MOD_DIR): $(ROOT_SEATTLE_DIR)
20	-$(INS.dir.root.sys)
21
22$(ROOT_SEATTLE_MISC_DIR_32): $(ROOT_SEATTLE_MOD_DIR)
23	-$(INS.dir.root.sys)
24
25$(ROOT_SEATTLE_MISC_DIR_64): $(ROOT_SEATTLE_MISC_DIR_32)
26	-$(INS.dir.root.sys)
27
28$(ROOT_SEATTLE_DRV_DIR_32): $(ROOT_SEATTLE_MOD_DIR)
29	-$(INS.dir.root.sys)
30
31$(ROOT_SEATTLE_DRV_DIR_64): $(ROOT_SEATTLE_DRV_DIR_32)
32	-$(INS.dir.root.sys)
33
34$(ROOT_SEATTLE_CRYPTO_DIR_32): $(ROOT_SEATTLE_MOD_DIR)
35	-$(INS.dir.root.sys)
36
37$(ROOT_SEATTLE_CRYPTO_DIR_64): $(ROOT_SEATTLE_CRYPTO_DIR_32)
38	-$(INS.dir.root.sys)
39
40$(USR_SEATTLE_DIR): $(USR_PLAT_DIR)
41	-$(INS.dir.root.sys)
42
43$(USR_SEATTLE_INC_DIR): $(USR_SEATTLE_DIR)
44	-$(INS.slink4)
45
46$(USR_SEATTLE_SBIN_DIR): $(USR_SEATTLE_DIR)
47	$(INS.dir.root.bin)
48
49$(USR_SEATTLE_SBIN_EEPROM): $(USR_SEATTLE_SBIN_DIR)
50	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/eeprom $@ $(CHOWNLINK) $(CHGRPLINK)
51
52$(USR_SEATTLE_SBIN_PRTDIAG): $(USR_SEATTLE_SBIN_DIR)
53	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@ $(CHOWNLINK) $(CHGRPLINK)
54
55$(USR_SEATTLE_SBIN_TRAPSTAT): $(USR_SEATTLE_SBIN_DIR)
56	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@ $(CHOWNLINK) $(CHGRPLINK)
57
58$(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%): $(ROOT_PLAT_DIR)
59	$(INS.slink3)
60
61$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%): $(USR_PLAT_DIR)
62	$(INS.slink3)
63
64$(USR_SEATTLE_LIB_DIR): $(USR_SEATTLE_DIR)
65	-$(INS.dir.root.bin)
66
67$(USR_SEATTLE_ISYS_DIR): $(USR_SEATTLE_INC_DIR)
68	$(INS.dir.root.bin)
69
70$(ROOT_SEATTLE_MOD_DIR)/%: $(OBJS_DIR)/% $(ROOT_SEATTLE_MOD_DIR)
71	$(INS.file)
72
73$(ROOT_SEATTLE_MISC_DIR)/%: $(OBJS_DIR)/% $(ROOT_SEATTLE_MISC_DIR)
74	$(INS.file)
75
76$(ROOT_SEATTLE_DRV_DIR)/%: $(OBJS_DIR)/% $(ROOT_SEATTLE_DRV_DIR)
77	$(INS.file)
78
79#
80#	Include common targets.
81#
82include $(UTSBASE)/sun4u/seattle/Makefile.rules
83include $(UTSBASE)/sun4u/Makefile.targ
84