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# 232e10def1SPeter Tribble# Copyright (c) 2017 Peter Tribble. 245c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 255c51f124SMoriah Waterland# Use is subject to license terms. 265c51f124SMoriah Waterland# 27*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 285c51f124SMoriah Waterland 295c51f124SMoriah WaterlandPROG= libinst.a 305c51f124SMoriah Waterland 315c51f124SMoriah WaterlandOBJS= copyf.o dockdeps.o echo.o eptstat.o \ 325c51f124SMoriah Waterland finalck.o findscripts.o fixpath.o flex_dev.o \ 335c51f124SMoriah Waterland isreloc.o lockinst.o mntinfo.o nblk.o \ 345c51f124SMoriah Waterland ocfile.o pathdup.o pkgdbmerg.o procmap.o \ 359ab815e1SGarrett D'Amore pkgobjmap.o ptext.o putparam.o \ 365c51f124SMoriah Waterland qreason.o qstrdup.o setadmin.o setlist.o \ 372e10def1SPeter Tribble srcpath.o scriptvfy.o doulimit.o \ 385c51f124SMoriah Waterland dryrun.o listmgr.o is_local_host.o cvtpath.o \ 395c51f124SMoriah Waterland depchk.o pkgops.o sml.o log.o \ 405c51f124SMoriah Waterland setup_temporary_directory.o open_package_datastream.o \ 415c51f124SMoriah Waterland unpack_package_from_stream.o 425c51f124SMoriah WaterlandSRCS = $(OBJS:.o=.c) 435c51f124SMoriah Waterland 445c51f124SMoriah Waterlandinclude $(SRC)/cmd/Makefile.cmd 455c51f124SMoriah Waterland 465c51f124SMoriah Waterland# 475c51f124SMoriah Waterland# For messaging catalog 485c51f124SMoriah WaterlandPOFILE = libinst.po 495c51f124SMoriah WaterlandMSGFILES=$(OBJS:%.o=%.i) 505c51f124SMoriah Waterland 515c51f124SMoriah WaterlandCPPFLAGS += -I$(SRC)/cmd/svr4pkg/hdrs \ 525c51f124SMoriah Waterland -I$(SRC)/lib/libpkg/common \ 535c51f124SMoriah Waterland -I$(SRC)/lib/libinstzones/common \ 545c51f124SMoriah Waterland -D_FILE_OFFSET_BITS=64 555c51f124SMoriah Waterland 5624e7a8c7SPaul Wernau# For VERBOSE mode 5724e7a8c7SPaul Wernau#CPPFLAGS += -DVERBOSE 5824e7a8c7SPaul Wernau 5924e7a8c7SPaul Wernau# For stop-in-your-tracks debugging 6024e7a8c7SPaul Wernau#CPPFLAGS += -DBUG_DEBUG 6124e7a8c7SPaul Wernau 627014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 647014882cSRichard LoweCERRWARN += -_gcc=-Wno-clobbered 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 667014882cSRichard Lowe 67*5661bb76SJohn Levon# too many issues 68*5661bb76SJohn LevonSMATCH=off 69*5661bb76SJohn Levon 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