xref: /illumos-gate/usr/src/lib/libmlrpc/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
13299f39fSGordon Ross#
23299f39fSGordon Ross# CDDL HEADER START
33299f39fSGordon Ross#
43299f39fSGordon Ross# The contents of this file are subject to the terms of the
53299f39fSGordon Ross# Common Development and Distribution License (the "License").
63299f39fSGordon Ross# You may not use this file except in compliance with the License.
73299f39fSGordon Ross#
83299f39fSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93299f39fSGordon Ross# or http://www.opensolaris.org/os/licensing.
103299f39fSGordon Ross# See the License for the specific language governing permissions
113299f39fSGordon Ross# and limitations under the License.
123299f39fSGordon Ross#
133299f39fSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
143299f39fSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153299f39fSGordon Ross# If applicable, add the following below this CDDL HEADER, with the
163299f39fSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
173299f39fSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
183299f39fSGordon Ross#
193299f39fSGordon Ross# CDDL HEADER END
203299f39fSGordon Ross#
213299f39fSGordon Ross#
223299f39fSGordon Ross# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
233299f39fSGordon Ross# Use is subject to license terms.
243299f39fSGordon Ross#
253299f39fSGordon Ross# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
263299f39fSGordon Ross#
273299f39fSGordon Ross
283299f39fSGordon Rossinclude $(SRC)/lib/Makefile.lib
293299f39fSGordon Ross
303299f39fSGordon RossHDRS=		libmlrpc.h ndr.h ndrtypes.ndl rpcpdu.ndl
313299f39fSGordon RossHDRDIR=		common
323299f39fSGordon Ross
333299f39fSGordon RossROOTHDRDIR=	$(ROOT)/usr/include/libmlrpc
343299f39fSGordon RossROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
353299f39fSGordon Ross
363299f39fSGordon Ross# ISA targets
373299f39fSGordon RossSUBDIRS = $(MACH)
383299f39fSGordon Ross$(BUILD64)SUBDIRS += $(MACH64)
393299f39fSGordon Ross
403299f39fSGordon Rossall :=		TARGET = all
413299f39fSGordon Rossinstall :=	TARGET = install
423299f39fSGordon Rossclean :=	TARGET = clean
433299f39fSGordon Rossclobber :=	TARGET = clobber
443299f39fSGordon Ross
453299f39fSGordon Ross.KEEP_STATE:
463299f39fSGordon Ross
47*241c90a0SRichard Loweall install clean clobber: $(SUBDIRS)
483299f39fSGordon Ross
493299f39fSGordon Rossinstall_h: $(ROOTHDRDIR) $(ROOTHDRS)
503299f39fSGordon Ross
513299f39fSGordon Rosscheck: $(CHECKHDRS)
523299f39fSGordon Ross
533299f39fSGordon Ross$(ROOTHDRDIR)/%: %
543299f39fSGordon Ross	$(INS.file)
553299f39fSGordon Ross
563299f39fSGordon Ross$(ROOTHDRDIR):
573299f39fSGordon Ross	$(INS.dir)
583299f39fSGordon Ross
593299f39fSGordon Ross$(SUBDIRS): FRC
603299f39fSGordon Ross	@cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET)
613299f39fSGordon Ross
623299f39fSGordon RossFRC:
633299f39fSGordon Ross
643299f39fSGordon Rossinclude $(SRC)/lib/Makefile.targ
65