Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Makefile | |
4 | # Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. | |
6 | # | |
7 | # The above named program is free software; you can redistribute it and/or | |
8 | # modify it under the terms of the GNU General Public | |
9 | # License version 2 as published by the Free Software Foundation. | |
10 | # | |
11 | # The above named program is distributed in the hope that it will be | |
12 | # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public | |
17 | # License along with this work; if not, write to the Free Software | |
18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | # | |
20 | # ========== Copyright Header End ============================================ | |
21 | # | |
22 | # uts/sun4v/hsimd/Makefile | |
23 | # Copyright (c) 2003 by Sun Microsystems, Inc. | |
24 | # | |
25 | #ident "@(#)Makefile 1.1 06/02/06 SMI" | |
26 | # | |
27 | # This makefile drives the production of the hsimd driver kernel module. | |
28 | # | |
29 | # sun4v implementation architecture dependent | |
30 | # | |
31 | ||
32 | # | |
33 | # Path to the base of the uts directory tree (usually /usr/src/uts). | |
34 | # | |
35 | UTSBASE = ../.. | |
36 | ||
37 | # | |
38 | # Define the module and object file sets. | |
39 | # | |
40 | MODULE = hsimd | |
41 | OBJECTS = $(HSIMD_OBJS:%=$(OBJS_DIR)/%) | |
42 | LINTS = $(HSIMD_OBJS:%.o=$(LINTS_DIR)/%.ln) | |
43 | ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) | |
44 | ||
45 | # | |
46 | # Include common rules. | |
47 | # | |
48 | include $(UTSBASE)/sun4v/Makefile.sun4v | |
49 | ||
50 | # | |
51 | # Override defaults to build a unique, local modstubs.o. | |
52 | # | |
53 | MODSTUBS_DIR = $(OBJS_DIR) | |
54 | ||
55 | CLEANFILES += $(MODSTUBS_O) | |
56 | ||
57 | # | |
58 | # Define targets | |
59 | # | |
60 | ALL_TARGET = $(BINARY) | |
61 | LINT_TARGET = $(MODULE).lint | |
62 | INSTALL_TARGET = $(BINARY) $(ROOTMODULE) | |
63 | ||
64 | # | |
65 | # lint pass one enforcement | |
66 | # | |
67 | CFLAGS += $(CCVERBOSE) | |
68 | ||
69 | # | |
70 | # Default build targets. | |
71 | # | |
72 | .KEEP_STATE: | |
73 | ||
74 | def: $(DEF_DEPS) | |
75 | ||
76 | all: $(ALL_DEPS) | |
77 | ||
78 | clean: $(CLEAN_DEPS) | |
79 | ||
80 | clobber: $(CLOBBER_DEPS) | |
81 | ||
82 | lint: $(LINT_DEPS) | |
83 | ||
84 | modlintlib: $(MODLINTLIB_DEPS) | |
85 | ||
86 | clean.lint: $(CLEAN_LINT_DEPS) | |
87 | ||
88 | install: $(INSTALL_DEPS) | |
89 | ||
90 | # | |
91 | # Include common targets. | |
92 | # | |
93 | include $(UTSBASE)/$(PLATFORM)/Makefile.targ |