view usr/src/cmd/svr4pkg/libinst/Makefile @ 13240:74a59768760e

403 remove support for SVR3 packaging Reviewed by: a.eremin@nexenta.com Reviewed by: peter.tribble@gmail.com Approved by: gwr@nexenta.com
author Garrett D'Amore <garrett@nexenta.com>
date Tue, 09 Nov 2010 10:20:47 -0800
parents 34b6acf6dcb8
children 58bc6f85b799
line wrap: on
line source

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

PROG= libinst.a

OBJS=	copyf.o         dockdeps.o      echo.o          eptstat.o       \
	finalck.o       findscripts.o   fixpath.o       flex_dev.o      \
	isreloc.o       lockinst.o      mntinfo.o       nblk.o          \
	ocfile.o        pathdup.o       pkgdbmerg.o     procmap.o       \
	pkgobjmap.o     ptext.o         putparam.o                      \
	qreason.o       qstrdup.o       setadmin.o      setlist.o       \
	srcpath.o       scriptvfy.o     stub.o          doulimit.o      \
	dryrun.o        listmgr.o       is_local_host.o cvtpath.o       \
	depchk.o        pkgops.o        sml.o           log.o           \
	setup_temporary_directory.o     open_package_datastream.o       \
	unpack_package_from_stream.o
SRCS = $(OBJS:.o=.c)

include	$(SRC)/cmd/Makefile.cmd

#
# For messaging catalog
POFILE = libinst.po
MSGFILES=$(OBJS:%.o=%.i) 

CPPFLAGS +=	-I$(SRC)/cmd/svr4pkg/hdrs \
		-I$(SRC)/lib/libpkg/common \
		-I$(SRC)/lib/libinstzones/common \
		-D_FILE_OFFSET_BITS=64

# For VERBOSE mode
#CPPFLAGS +=	-DVERBOSE

# For stop-in-your-tracks debugging
#CPPFLAGS +=	-DBUG_DEBUG

# Lint flags 
#
LINTFLAGS += -un

.KEEP_STATE:

all: $(PROG)

$(PROG): $(OBJS)
	$(RM) $@
	$(AR) $(ARFLAGS) $@ $(OBJS)
	$(POST_PROCESS_A)

install: all
	@echo "$(PROG) is a static library and will not be installed."

$(POFILE): $(MSGFILES)
	$(BUILDPO.msgfiles)

_msg: $(MSGDOMAINPOFILE)

clean:
	$(RM) $(OBJS) $(MSGFILES)

clobber: clean
	$(RM) $(PROG) $(POFILE)

include	$(SRC)/Makefile.msg.targ