1*9b9d39d2SRichard Lowe# 2*9b9d39d2SRichard Lowe# CDDL HEADER START 3*9b9d39d2SRichard Lowe# 4*9b9d39d2SRichard Lowe# The contents of this file are subject to the terms of the 5*9b9d39d2SRichard Lowe# Common Development and Distribution License, Version 1.0 only 6*9b9d39d2SRichard Lowe# (the "License"). You may not use this file except in compliance 7*9b9d39d2SRichard Lowe# with the License. 8*9b9d39d2SRichard Lowe# 9*9b9d39d2SRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*9b9d39d2SRichard Lowe# or http://www.opensolaris.org/os/licensing. 11*9b9d39d2SRichard Lowe# See the License for the specific language governing permissions 12*9b9d39d2SRichard Lowe# and limitations under the License. 13*9b9d39d2SRichard Lowe# 14*9b9d39d2SRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each 15*9b9d39d2SRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*9b9d39d2SRichard Lowe# If applicable, add the following below this CDDL HEADER, with the 17*9b9d39d2SRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying 18*9b9d39d2SRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner] 19*9b9d39d2SRichard Lowe# 20*9b9d39d2SRichard Lowe# CDDL HEADER END 21*9b9d39d2SRichard Lowe# 22*9b9d39d2SRichard Lowe# 23*9b9d39d2SRichard Lowe# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*9b9d39d2SRichard Lowe# Use is subject to license terms. 25*9b9d39d2SRichard Lowe# 26*9b9d39d2SRichard Lowe 27*9b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools 28*9b9d39d2SRichard Loweinclude $(SRC)/lib/libuutil/Makefile.shared.com 29*9b9d39d2SRichard Lowe 30*9b9d39d2SRichard LoweSRCDIR = $(SRC)/lib/libuutil/common 31*9b9d39d2SRichard Lowe 32*9b9d39d2SRichard Lowe# This must be re-set to avoid proto area references 33*9b9d39d2SRichard LoweLDLIBS = -lc 34*9b9d39d2SRichard LoweNATIVE_LIBS += libc.so 35*9b9d39d2SRichard Lowe 36*9b9d39d2SRichard LoweCPPFLAGS += -I. -DNATIVE_BUILD 37*9b9d39d2SRichard Lowe 38*9b9d39d2SRichard Lowe# 39*9b9d39d2SRichard Lowe# We must use the build's avl headers, to match the common avl.c 40*9b9d39d2SRichard Lowe# 41*9b9d39d2SRichard LoweAVLDIR = $(SRC)/common/avl 42*9b9d39d2SRichard LoweAVLHEADERS = sys/avl.h sys/avl_impl.h 43*9b9d39d2SRichard LoweCLOBBERFILES += $(AVLHEADERS) $(LIBS) 44*9b9d39d2SRichard Lowe 45*9b9d39d2SRichard LoweLIBLINKS = libuutil.so 46*9b9d39d2SRichard Lowe 47*9b9d39d2SRichard Loweinclude $(SRC)/Makefile.native 48*9b9d39d2SRichard Lowe 49*9b9d39d2SRichard Lowe.KEEP_STATE: 50*9b9d39d2SRichard Lowe 51*9b9d39d2SRichard Loweall: $(LIBS) 52*9b9d39d2SRichard Lowe 53*9b9d39d2SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/$(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 54*9b9d39d2SRichard Lowe 55*9b9d39d2SRichard Lowe$(PICS): $(AVLHEADERS) 56*9b9d39d2SRichard Lowe 57*9b9d39d2SRichard Lowesys/%: $(SRC)/uts/common/sys/% 58*9b9d39d2SRichard Lowe @mkdir -p sys 59*9b9d39d2SRichard Lowe cp -f $< $@ 60*9b9d39d2SRichard Lowe 61*9b9d39d2SRichard Lowepics/%.o: $(SRCDIR)/%.c 62*9b9d39d2SRichard Lowe $(COMPILE.c) -o $@ $< 63*9b9d39d2SRichard Lowe $(POST_PROCESS_O) 64*9b9d39d2SRichard Lowe 65*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(DYNLIB): $(ROOTONBLDLIBMACH) $(DYNLIB) 66*9b9d39d2SRichard Lowe $(INS.file) $(DYNLIB) 67*9b9d39d2SRichard Lowe 68*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(DYNLIB) 69*9b9d39d2SRichard Lowe @$(RM) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 70*9b9d39d2SRichard Lowe $(SYMLINK) $(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 71*9b9d39d2SRichard Lowe 72*9b9d39d2SRichard Loweinclude $(SRC)/lib/Makefile.targ 73*9b9d39d2SRichard Loweinclude $(SRC)/lib/libuutil/Makefile.shared.targ 74