Makefile revision 9781:ccf49524d5dc
1174698Sdas#
2174698Sdas# CDDL HEADER START
3174698Sdas#
4174698Sdas# The contents of this file are subject to the terms of the
5174698Sdas# Common Development and Distribution License (the "License").
6174698Sdas# You may not use this file except in compliance with the License.
7174698Sdas#
8174698Sdas# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9174698Sdas# or http://www.opensolaris.org/os/licensing.
10174698Sdas# See the License for the specific language governing permissions
11174698Sdas# and limitations under the License.
12174698Sdas#
13174698Sdas# When distributing Covered Code, include this CDDL HEADER in each
14174698Sdas# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15174698Sdas# If applicable, add the following below this CDDL HEADER, with the
16174698Sdas# fields enclosed by brackets "[]" replaced with your own identifying
17174698Sdas# information: Portions Copyright [yyyy] [name of copyright owner]
18174698Sdas#
19174698Sdas# CDDL HEADER END
20174698Sdas#
21174698Sdas
22174698Sdas#
23174698Sdas# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24174698Sdas# Use is subject to license terms.
25174698Sdas#
26174698Sdas
27174698SdasPROG= libinst.a
28174698Sdas
29174698SdasOBJS=	copyf.o         dockdeps.o      echo.o          eptstat.o       \
30174698Sdas	finalck.o       findscripts.o   fixpath.o       flex_dev.o      \
31174698Sdas	isreloc.o       lockinst.o      mntinfo.o       nblk.o          \
32174698Sdas	ocfile.o        pathdup.o       pkgdbmerg.o     procmap.o       \
33174698Sdas	pkgobjmap.o     psvr4ck.o       ptext.o         putparam.o      \
34174698Sdas	qreason.o       qstrdup.o       setadmin.o      setlist.o       \
35174698Sdas	srcpath.o       scriptvfy.o     stub.o          doulimit.o      \
36174698Sdas	dryrun.o        listmgr.o       is_local_host.o cvtpath.o       \
37213337Sdim	depchk.o        pkgops.o        sml.o           log.o           \
38174698Sdas	setup_temporary_directory.o     open_package_datastream.o       \
39174698Sdas	unpack_package_from_stream.o
40174698SdasSRCS = $(OBJS:.o=.c)
41174698Sdas
42174698Sdasinclude	$(SRC)/cmd/Makefile.cmd
43174698Sdas
44217108Skib#
45217108Skib# For messaging catalog
46POFILE = libinst.po
47MSGFILES=$(OBJS:%.o=%.i) 
48
49CPPFLAGS +=	-I$(SRC)/cmd/svr4pkg/hdrs \
50		-I$(SRC)/lib/libpkg/common \
51		-I$(SRC)/lib/libinstzones/common \
52		-D_FILE_OFFSET_BITS=64
53
54# Lint flags 
55#
56LINTFLAGS += -un
57
58.KEEP_STATE:
59
60all: $(PROG)
61
62$(PROG): $(OBJS)
63	$(RM) $@
64	$(AR) $(ARFLAGS) $@ $(OBJS)
65	$(POST_PROCESS_A)
66
67install: all
68	@echo "$(PROG) is a static library and will not be installed."
69
70$(POFILE): $(MSGFILES)
71	$(BUILDPO.msgfiles)
72
73_msg: $(MSGDOMAINPOFILE)
74
75clean:
76	$(RM) $(OBJS) $(MSGFILES)
77
78clobber: clean
79	$(RM) $(PROG) $(POFILE)
80
81include	$(SRC)/Makefile.msg.targ
82