xref: /illumos-gate/usr/src/lib/udapl/libdat/Makefile (revision 241c90a0)
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
26include ../../Makefile.lib
27
28HDRS =	\
29	dat.h \
30	dat_error.h \
31	dat_redirection.h \
32	dat_registry.h \
33	dat_vendor_specific.h \
34	dat_platform_specific.h \
35	udat.h \
36	udat_redirection.h \
37	udat_vendor_specific.h \
38	udat_config.h
39
40HDRDIR = include/dat
41ROOTHDRDIR = $(ROOT)/usr/include/dat
42
43ROOTETC =	$(ROOT)/etc
44ROOTETCDAT =	$(ROOTETC)/dat
45ETCDATFILES =	dat.conf
46ROOTETCDATFILES =	$(ETCDATFILES:%=$(ROOTETCDAT)/%)
47
48SUBDIRS =	$(MACH)
49$(BUILD64)SUBDIRS += $(MACH64)
50
51all :=		TARGET= all
52install :=	TARGET= install
53clean :=	TARGET= clean
54clobber :=	TARGET= clobber
55debug :=	TARGET= debug
56
57.KEEP_STATE:
58
59all debug install: $(ROOTETCDATFILES) .WAIT $(SUBDIRS)
60
61$(ROOTETCDATFILES): $(ROOTETCDAT)
62
63clean clobber: $(SUBDIRS)
64
65install_h: $(ROOTHDRDIR) .WAIT $(ROOTHDRS)
66
67check: $(CHECKHDRS)
68
69$(SUBDIRS): FRC
70	@cd $@; pwd; $(MAKE) $(TARGET)
71
72$(ROOTHDRDIR):
73	$(INS.dir)
74
75$(ROOTETCDAT)/%: %
76	$(INS.file)
77
78$(ROOTETCDAT):
79	$(INS.dir)
80
81include ../../Makefile.targ
82
83FRC:
84
85