xref: /titanic_44/usr/src/uts/sparc/dada/Makefile (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/sparc/dada/Makefile
24#
25# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28
29#ident	"%Z%%M%	%I%	%E% SMI"
30
31#
32#	Path to the base of the uts directory tree (usually /usr/src/uts).
33#
34UTSBASE	= ../..
35
36#
37#	Define the module and object file sets.
38#
39MODULE		= dada
40OBJECTS		= $(DADA_OBJS:%=$(OBJS_DIR)/%)
41LINTS		= $(DADA_OBJS:%.o=$(LINTS_DIR)/%.ln)
42ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
43
44#
45#	Include common rules.
46#
47include $(UTSBASE)/sparc/Makefile.sparc
48
49
50#
51#	Define targets
52#
53ALL_TARGET	= $(BINARY)
54LINT_TARGET	= $(MODULE).lint
55INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56
57#
58#	Overrides.
59#
60CFLAGS		+= $(CCVERBOSE)
61
62#
63#	Default build targets.
64#
65.KEEP_STATE:
66
67all:		$(ALL_DEPS)
68
69def:		$(DEF_DEPS)
70
71clean:		$(CLEAN_DEPS)
72
73clobber:	$(CLOBBER_DEPS)
74
75lint:		$(LINT_DEPS)
76
77modlintlib:	$(MODLINTLIB_DEPS) lint64
78
79clean.lint:	$(CLEAN_LINT_DEPS)
80
81install:	$(INSTALL_DEPS)
82
83#
84#	Include common targets.
85#
86include $(UTSBASE)/sparc/Makefile.targ
87
88#
89#	Defines for local commands.
90#
91WLCC		= wlcc
92TOUCH		= touch
93
94#
95#	Warlock targets
96#
97WARLOCK_OBJECTS	= $(DADA_OBJS:%.o=%.ll)
98
99warlock: $(MODULE).ok $(WARLOCK_OBJECTS)
100
101%.ok: $(WARLOCK_OBJECTS)
102	$(TOUCH) $@
103
104%.ll: $(UTSBASE)/sun/io/dada/impl/%.c
105	$(WLCC) $(CPPFLAGS) -o $@ $<
106
107%.ll: $(UTSBASE)/sun/io/dada/conf/%.c
108	$(WLCC) $(CPPFLAGS) -o $@ $<
109