Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / lib / udapl / libdat / Makefile
blob9b079d19c2fd0473de23f529e2b59452d42ee3f5
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
28 include ../../Makefile.lib
30 HDRS = \
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
42 HDRDIR = include/dat
43 ROOTHDRDIR = $(ROOT)/usr/include/dat
45 ROOTETC = $(ROOT)/etc
46 ROOTETCDAT = $(ROOTETC)/dat
47 ETCDATFILES = dat.conf
48 ROOTETCDATFILES = $(ETCDATFILES:%=$(ROOTETCDAT)/%)
50 SUBDIRS = $(MACH)
51 $(BUILD64)SUBDIRS += $(MACH64)
53 all := TARGET= all
54 install := TARGET= install
55 clean := TARGET= clean
56 clobber := TARGET= clobber
57 debug := TARGET= debug
59 .KEEP_STATE:
61 all debug install: $(ROOTETCDATFILES) .WAIT $(SUBDIRS)
63 $(ROOTETCDATFILES): $(ROOTETCDAT)
65 clean clobber: $(SUBDIRS)
67 install_h: $(ROOTHDRDIR) .WAIT $(ROOTHDRS)
69 check: $(CHECKHDRS)
71 $(SUBDIRS): FRC
72 @cd $@; pwd; $(MAKE) $(TARGET)
74 $(ROOTHDRDIR):
75 $(INS.dir)
77 $(ROOTETCDAT)/%: %
78 $(INS.file)
80 $(ROOTETCDAT):
81 $(INS.dir)
83 include ../../Makefile.targ
85 FRC: