xref: /titanic_51/usr/src/cmd/svr4pkg/libinst/Makefile (revision 1dbc1fed8be6e82e676ff3f124628dc470058bfb)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27PROG= libinst.a
28
29OBJS=	copyf.o         dockdeps.o      echo.o          eptstat.o       \
30	finalck.o       findscripts.o   fixpath.o       flex_dev.o      \
31	isreloc.o       lockinst.o      mntinfo.o       nblk.o          \
32	ocfile.o        pathdup.o       pkgdbmerg.o     procmap.o       \
33	pkgobjmap.o     psvr4ck.o       ptext.o         putparam.o      \
34	qreason.o       qstrdup.o       setadmin.o      setlist.o       \
35	srcpath.o       scriptvfy.o     stub.o          doulimit.o      \
36	dryrun.o        listmgr.o       is_local_host.o cvtpath.o       \
37	depchk.o        pkgops.o        sml.o           log.o           \
38	setup_temporary_directory.o     open_package_datastream.o       \
39	unpack_package_from_stream.o
40SRCS = $(OBJS:.o=.c)
41
42include	$(SRC)/cmd/Makefile.cmd
43
44#
45# 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# For VERBOSE mode
55#CPPFLAGS +=	-DVERBOSE
56
57# For stop-in-your-tracks debugging
58#CPPFLAGS +=	-DBUG_DEBUG
59
60# Lint flags
61#
62LINTFLAGS += -un
63
64.KEEP_STATE:
65
66all: $(PROG)
67
68$(PROG): $(OBJS)
69	$(RM) $@
70	$(AR) $(ARFLAGS) $@ $(OBJS)
71	$(POST_PROCESS_A)
72
73install: all
74	@echo "$(PROG) is a static library and will not be installed."
75
76$(POFILE): $(MSGFILES)
77	$(BUILDPO.msgfiles)
78
79_msg: $(MSGDOMAINPOFILE)
80
81clean:
82	$(RM) $(OBJS) $(MSGFILES)
83
84clobber: clean
85	$(RM) $(PROG) $(POFILE)
86
87include	$(SRC)/Makefile.msg.targ
88