xref: /illumos-gate/usr/src/lib/libads/Makefile (revision 241c90a0)
1b3700b07SGordon Ross#
2b3700b07SGordon Ross# CDDL HEADER START
3b3700b07SGordon Ross#
4b3700b07SGordon Ross# The contents of this file are subject to the terms of the
5b3700b07SGordon Ross# Common Development and Distribution License (the "License").
6b3700b07SGordon Ross# You may not use this file except in compliance with the License.
7b3700b07SGordon Ross#
8b3700b07SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b3700b07SGordon Ross# or http://www.opensolaris.org/os/licensing.
10b3700b07SGordon Ross# See the License for the specific language governing permissions
11b3700b07SGordon Ross# and limitations under the License.
12b3700b07SGordon Ross#
13b3700b07SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
14b3700b07SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b3700b07SGordon Ross# If applicable, add the following below this CDDL HEADER, with the
16b3700b07SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
17b3700b07SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
18b3700b07SGordon Ross#
19b3700b07SGordon Ross# CDDL HEADER END
20b3700b07SGordon Ross#
21b3700b07SGordon Ross#
22b3700b07SGordon Ross# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23b3700b07SGordon Ross# Use is subject to license terms.
24b3700b07SGordon Ross#
25b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
26b3700b07SGordon Ross#
27b3700b07SGordon Ross
28b3700b07SGordon Rossinclude $(SRC)/lib/Makefile.lib
29b3700b07SGordon Ross
30b3700b07SGordon RossHDRS=		dsgetdc.h
31b3700b07SGordon RossHDRDIR=		common
32b3700b07SGordon Ross
33b3700b07SGordon RossROOTHDRDIR=	$(ROOT)/usr/include/ads
34b3700b07SGordon RossROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
35b3700b07SGordon Ross
36b3700b07SGordon Ross# ISA targets
37b3700b07SGordon RossSUBDIRS	=	$(MACH)
38b3700b07SGordon Ross$(BUILD64)SUBDIRS += $(MACH64)
39b3700b07SGordon Ross
40b3700b07SGordon RossDERIVED_FILES=  \
41b3700b07SGordon Ross	common/ads_priv.h \
42b3700b07SGordon Ross	common/adspriv_xdr.c
43b3700b07SGordon Ross
44b3700b07SGordon RossRPCGENFLAGS = -CMN
45b3700b07SGordon Ross
46b3700b07SGordon RossCLEANFILES += $(DERIVED_FILES)
47b3700b07SGordon Ross
48*241c90a0SRichard Loweall :=		TARGET = all
49b3700b07SGordon Rossclean :=	TARGET = clean
50b3700b07SGordon Rossclobber :=	TARGET = clobber
51b3700b07SGordon Rossinstall	:=	TARGET = install
52b3700b07SGordon Ross
53b3700b07SGordon Ross.KEEP_STATE:
54b3700b07SGordon Ross
55b3700b07SGordon Rossall:	$(DERIVED_FILES) .WAIT $(SUBDIRS)
56b3700b07SGordon Ross
57b3700b07SGordon Rossinstall: all .WAIT $(SUBDIRS)
58b3700b07SGordon Ross
59b3700b07SGordon Rossinstall_h: $(DERIVED_FILES) $(ROOTHDRS)
60b3700b07SGordon Ross
61*241c90a0SRichard Loweclean clobber: $(SUBDIRS)
62b3700b07SGordon Ross
63b3700b07SGordon Rosscheck:		$(CHECKHDRS)
64b3700b07SGordon Ross
65b3700b07SGordon Rosscommon/ads_priv.h: $(HDRDIR)/ads_priv.x
66b3700b07SGordon Ross	$(RPCGEN) $(RPCGENFLAGS) -h $(HDRDIR)/ads_priv.x > $@
67b3700b07SGordon Ross
68b3700b07SGordon Rosscommon/adspriv_xdr.c: $(HDRDIR)/ads_priv.x
69b3700b07SGordon Ross	$(RPCGEN) $(RPCGENFLAGS) -c $(HDRDIR)/ads_priv.x > $@
70b3700b07SGordon Ross
71b3700b07SGordon Ross$(SUBDIRS): FRC
72b3700b07SGordon Ross	@cd $@; pwd; $(MAKE) $(TARGET)
73b3700b07SGordon Ross
74b3700b07SGordon RossFRC:
75b3700b07SGordon Ross
76b3700b07SGordon Rossinclude $(SRC)/Makefile.msg.targ
77b3700b07SGordon Rossinclude $(SRC)/lib/Makefile.targ
78