xref: /titanic_52/usr/src/lib/libdtrace/Makefile (revision 9a016c63ca347047a236dff12f0da83aac8981d1)
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# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28include ../Makefile.lib
29
30HDRS = dtrace.h
31HDRDIR = common
32
33SUBDIRS = $(MACH)
34$(BUILD64)SUBDIRS += $(MACH64)
35
36all := TARGET = all
37clean := TARGET = clean
38clobber := TARGET = clobber
39install := TARGET = install
40lint := TARGET = lint
41yydebug := TARGET = yydebug
42
43.KEEP_STATE:
44
45all clean clobber: spec .WAIT $(SUBDIRS)
46
47install: install_h spec .WAIT $(SUBDIRS)
48
49lint yydebug: $(SUBDIRS)
50
51$(ROOTHDRS) := GROUP = bin
52
53install_h: $(ROOTHDRS)
54
55check: $(CHECKHDRS)
56
57spec $(SUBDIRS): FRC
58	@cd $@; pwd; $(MAKE) $(TARGET)
59
60FRC:
61
62include ../Makefile.targ
63
64#
65# Cross-reference customization: build the cross-reference only over the
66# source directories, and ignore Makefiles and machine-generated source.
67#
68XRDIRS = common i386 sparc sparcv9
69XRDEL = dt_lex.c dt_grammar.c Makefile*
70