xref: /titanic_41/usr/src/lib/udapl/libdat/Makefile (revision f808c858fa61e7769218966759510a8b1190dfcf)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include ../../Makefile.lib
29
30HDRS =	\
31	dat.h \
32	dat_error.h \
33	dat_redirection.h \
34	dat_registry.h \
35	dat_vendor_specific.h \
36	dat_platform_specific.h \
37	udat.h \
38	udat_redirection.h \
39	udat_vendor_specific.h \
40	udat_config.h
41
42HDRDIR = include/dat
43ROOTHDRDIR = $(ROOT)/usr/include/dat
44
45ROOTETC = 	$(ROOT)/etc
46ROOTETCDAT =	$(ROOTETC)/dat
47ETCDATFILES =	dat.conf
48ROOTETCDATFILES =	$(ETCDATFILES:%=$(ROOTETCDAT)/%)
49
50SUBDIRS =	$(MACH)
51$(BUILD64)SUBDIRS += $(MACH64)
52
53all :=		TARGET= all
54install :=	TARGET= install
55clean :=	TARGET= clean
56clobber :=	TARGET= clobber
57lint :=		TARGET= lint
58debug :=	TARGET= debug
59
60.KEEP_STATE:
61
62all debug install: $(ROOTETCDATFILES) .WAIT $(SUBDIRS)
63
64$(ROOTETCDATFILES): $(ROOTETCDAT)
65
66clean clobber lint: $(SUBDIRS)
67
68install_h: $(ROOTHDRDIR) .WAIT $(ROOTHDRS)
69
70check: $(CHECKHDRS)
71
72$(SUBDIRS): FRC
73	@cd $@; pwd; $(MAKE) $(TARGET)
74
75$(ROOTHDRDIR):
76	$(INS.dir)
77
78$(ROOTETCDAT)/%: %
79	$(INS.file)
80
81$(ROOTETCDAT):
82	$(INS.dir)
83
84include ../../Makefile.targ
85
86FRC:
87
88