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