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