1*5c51f124SMoriah Waterland# 2*5c51f124SMoriah Waterland# CDDL HEADER START 3*5c51f124SMoriah Waterland# 4*5c51f124SMoriah Waterland# The contents of this file are subject to the terms of the 5*5c51f124SMoriah Waterland# Common Development and Distribution License (the "License"). 6*5c51f124SMoriah Waterland# You may not use this file except in compliance with the License. 7*5c51f124SMoriah Waterland# 8*5c51f124SMoriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5c51f124SMoriah Waterland# or http://www.opensolaris.org/os/licensing. 10*5c51f124SMoriah Waterland# See the License for the specific language governing permissions 11*5c51f124SMoriah Waterland# and limitations under the License. 12*5c51f124SMoriah Waterland# 13*5c51f124SMoriah Waterland# When distributing Covered Code, include this CDDL HEADER in each 14*5c51f124SMoriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5c51f124SMoriah Waterland# If applicable, add the following below this CDDL HEADER, with the 16*5c51f124SMoriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying 17*5c51f124SMoriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner] 18*5c51f124SMoriah Waterland# 19*5c51f124SMoriah Waterland# CDDL HEADER END 20*5c51f124SMoriah Waterland# 21*5c51f124SMoriah Waterland 22*5c51f124SMoriah Waterland# 23*5c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*5c51f124SMoriah Waterland# Use is subject to license terms. 25*5c51f124SMoriah Waterland# 26*5c51f124SMoriah Waterland 27*5c51f124SMoriah WaterlandPROG= libinst.a 28*5c51f124SMoriah Waterland 29*5c51f124SMoriah WaterlandOBJS= copyf.o dockdeps.o echo.o eptstat.o \ 30*5c51f124SMoriah Waterland finalck.o findscripts.o fixpath.o flex_dev.o \ 31*5c51f124SMoriah Waterland isreloc.o lockinst.o mntinfo.o nblk.o \ 32*5c51f124SMoriah Waterland ocfile.o pathdup.o pkgdbmerg.o procmap.o \ 33*5c51f124SMoriah Waterland pkgobjmap.o psvr4ck.o ptext.o putparam.o \ 34*5c51f124SMoriah Waterland qreason.o qstrdup.o setadmin.o setlist.o \ 35*5c51f124SMoriah Waterland srcpath.o scriptvfy.o stub.o doulimit.o \ 36*5c51f124SMoriah Waterland dryrun.o listmgr.o is_local_host.o cvtpath.o \ 37*5c51f124SMoriah Waterland depchk.o pkgops.o sml.o log.o \ 38*5c51f124SMoriah Waterland setup_temporary_directory.o open_package_datastream.o \ 39*5c51f124SMoriah Waterland unpack_package_from_stream.o 40*5c51f124SMoriah WaterlandSRCS = $(OBJS:.o=.c) 41*5c51f124SMoriah Waterland 42*5c51f124SMoriah Waterlandinclude $(SRC)/cmd/Makefile.cmd 43*5c51f124SMoriah Waterland 44*5c51f124SMoriah Waterland# 45*5c51f124SMoriah Waterland# For messaging catalog 46*5c51f124SMoriah WaterlandPOFILE = libinst.po 47*5c51f124SMoriah WaterlandMSGFILES=$(OBJS:%.o=%.i) 48*5c51f124SMoriah Waterland 49*5c51f124SMoriah WaterlandCPPFLAGS += -I$(SRC)/cmd/svr4pkg/hdrs \ 50*5c51f124SMoriah Waterland -I$(SRC)/lib/libpkg/common \ 51*5c51f124SMoriah Waterland -I$(SRC)/lib/libinstzones/common \ 52*5c51f124SMoriah Waterland -D_FILE_OFFSET_BITS=64 53*5c51f124SMoriah Waterland 54*5c51f124SMoriah Waterland# Lint flags 55*5c51f124SMoriah Waterland# 56*5c51f124SMoriah WaterlandLINTFLAGS += -un 57*5c51f124SMoriah Waterland 58*5c51f124SMoriah Waterland.KEEP_STATE: 59*5c51f124SMoriah Waterland 60*5c51f124SMoriah Waterlandall: $(PROG) 61*5c51f124SMoriah Waterland 62*5c51f124SMoriah Waterland$(PROG): $(OBJS) 63*5c51f124SMoriah Waterland $(RM) $@ 64*5c51f124SMoriah Waterland $(AR) $(ARFLAGS) $@ $(OBJS) 65*5c51f124SMoriah Waterland $(POST_PROCESS_A) 66*5c51f124SMoriah Waterland 67*5c51f124SMoriah Waterlandinstall: all 68*5c51f124SMoriah Waterland @echo "$(PROG) is a static library and will not be installed." 69*5c51f124SMoriah Waterland 70*5c51f124SMoriah Waterland$(POFILE): $(MSGFILES) 71*5c51f124SMoriah Waterland $(BUILDPO.msgfiles) 72*5c51f124SMoriah Waterland 73*5c51f124SMoriah Waterland_msg: $(MSGDOMAINPOFILE) 74*5c51f124SMoriah Waterland 75*5c51f124SMoriah Waterlandclean: 76*5c51f124SMoriah Waterland $(RM) $(OBJS) $(MSGFILES) 77*5c51f124SMoriah Waterland 78*5c51f124SMoriah Waterlandclobber: clean 79*5c51f124SMoriah Waterland $(RM) $(PROG) $(POFILE) 80*5c51f124SMoriah Waterland 81*5c51f124SMoriah Waterlandinclude $(SRC)/Makefile.msg.targ 82