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