15c51f124SMoriah Waterland# 25c51f124SMoriah Waterland# CDDL HEADER START 35c51f124SMoriah Waterland# 45c51f124SMoriah Waterland# The contents of this file are subject to the terms of the 55c51f124SMoriah Waterland# Common Development and Distribution License (the "License"). 65c51f124SMoriah Waterland# You may not use this file except in compliance with the License. 75c51f124SMoriah Waterland# 85c51f124SMoriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95c51f124SMoriah Waterland# or http://www.opensolaris.org/os/licensing. 105c51f124SMoriah Waterland# See the License for the specific language governing permissions 115c51f124SMoriah Waterland# and limitations under the License. 125c51f124SMoriah Waterland# 135c51f124SMoriah Waterland# When distributing Covered Code, include this CDDL HEADER in each 145c51f124SMoriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155c51f124SMoriah Waterland# If applicable, add the following below this CDDL HEADER, with the 165c51f124SMoriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying 175c51f124SMoriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner] 185c51f124SMoriah Waterland# 195c51f124SMoriah Waterland# CDDL HEADER END 205c51f124SMoriah Waterland# 215c51f124SMoriah Waterland 225c51f124SMoriah Waterland# 235c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 245c51f124SMoriah Waterland# Use is subject to license terms. 255c51f124SMoriah Waterland# 265c51f124SMoriah Waterland 275c51f124SMoriah WaterlandPROG= libinst.a 285c51f124SMoriah Waterland 295c51f124SMoriah WaterlandOBJS= copyf.o dockdeps.o echo.o eptstat.o \ 305c51f124SMoriah Waterland finalck.o findscripts.o fixpath.o flex_dev.o \ 315c51f124SMoriah Waterland isreloc.o lockinst.o mntinfo.o nblk.o \ 325c51f124SMoriah Waterland ocfile.o pathdup.o pkgdbmerg.o procmap.o \ 339ab815e1SGarrett D'Amore pkgobjmap.o ptext.o putparam.o \ 345c51f124SMoriah Waterland qreason.o qstrdup.o setadmin.o setlist.o \ 355c51f124SMoriah Waterland srcpath.o scriptvfy.o stub.o doulimit.o \ 365c51f124SMoriah Waterland dryrun.o listmgr.o is_local_host.o cvtpath.o \ 375c51f124SMoriah Waterland depchk.o pkgops.o sml.o log.o \ 385c51f124SMoriah Waterland setup_temporary_directory.o open_package_datastream.o \ 395c51f124SMoriah Waterland unpack_package_from_stream.o 405c51f124SMoriah WaterlandSRCS = $(OBJS:.o=.c) 415c51f124SMoriah Waterland 425c51f124SMoriah Waterlandinclude $(SRC)/cmd/Makefile.cmd 435c51f124SMoriah Waterland 445c51f124SMoriah Waterland# 455c51f124SMoriah Waterland# For messaging catalog 465c51f124SMoriah WaterlandPOFILE = libinst.po 475c51f124SMoriah WaterlandMSGFILES=$(OBJS:%.o=%.i) 485c51f124SMoriah Waterland 495c51f124SMoriah WaterlandCPPFLAGS += -I$(SRC)/cmd/svr4pkg/hdrs \ 505c51f124SMoriah Waterland -I$(SRC)/lib/libpkg/common \ 515c51f124SMoriah Waterland -I$(SRC)/lib/libinstzones/common \ 525c51f124SMoriah Waterland -D_FILE_OFFSET_BITS=64 535c51f124SMoriah Waterland 5424e7a8c7SPaul Wernau# For VERBOSE mode 5524e7a8c7SPaul Wernau#CPPFLAGS += -DVERBOSE 5624e7a8c7SPaul Wernau 5724e7a8c7SPaul Wernau# For stop-in-your-tracks debugging 5824e7a8c7SPaul Wernau#CPPFLAGS += -DBUG_DEBUG 5924e7a8c7SPaul Wernau 605c51f124SMoriah Waterland# Lint flags 615c51f124SMoriah Waterland# 625c51f124SMoriah WaterlandLINTFLAGS += -un 635c51f124SMoriah Waterland 64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-clobbered 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 69*7014882cSRichard Lowe 705c51f124SMoriah Waterland.KEEP_STATE: 715c51f124SMoriah Waterland 725c51f124SMoriah Waterlandall: $(PROG) 735c51f124SMoriah Waterland 745c51f124SMoriah Waterland$(PROG): $(OBJS) 755c51f124SMoriah Waterland $(RM) $@ 765c51f124SMoriah Waterland $(AR) $(ARFLAGS) $@ $(OBJS) 775c51f124SMoriah Waterland $(POST_PROCESS_A) 785c51f124SMoriah Waterland 795c51f124SMoriah Waterlandinstall: all 805c51f124SMoriah Waterland @echo "$(PROG) is a static library and will not be installed." 815c51f124SMoriah Waterland 825c51f124SMoriah Waterland$(POFILE): $(MSGFILES) 835c51f124SMoriah Waterland $(BUILDPO.msgfiles) 845c51f124SMoriah Waterland 855c51f124SMoriah Waterland_msg: $(MSGDOMAINPOFILE) 865c51f124SMoriah Waterland 875c51f124SMoriah Waterlandclean: 885c51f124SMoriah Waterland $(RM) $(OBJS) $(MSGFILES) 895c51f124SMoriah Waterland 905c51f124SMoriah Waterlandclobber: clean 915c51f124SMoriah Waterland $(RM) $(PROG) $(POFILE) 925c51f124SMoriah Waterland 935c51f124SMoriah Waterlandinclude $(SRC)/Makefile.msg.targ 94