Makefile revision 9444c26f4faabda140242c3986089704c4073ced
561N/A#
561N/A# CDDL HEADER START
1339N/A#
561N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
561N/A# Use is subject to license terms.
561N/A#
561N/A
561N/APROG = mfstscan
561N/A
561N/AOBJS = mfstscan.o \
970N/A manifest_find.o \
970N/A manifest_hash.o
970N/A
1339N/ASRCS = mfstscan.c \
970N/A ../common/manifest_find.c \
561N/A ../common/manifest_hash.c
1043N/A
837N/APOFILES = $(SRCS:.c=.po)
911N/A
1043N/AROOTLIBSVCBINPROG = $(ROOT)/lib/svc/bin/$(PROG)
1043N/A
911N/Ainclude ../../Makefile.cmd
837N/A
837N/APOFILE = $(PROG)_all.po
561N/ACPPFLAGS += -I../common
561N/ALDLIBS += -lscf -luutil -lmd5
837N/ACLOBBERFILES += $(POFILES)
lint := LINTFLAGS = -ux -erroff=E_GLOBAL_COULD_BE_STATIC2
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
$(POFILE): $(POFILES)
cat $(POFILES) > $(POFILE)
install: all $(ROOTLIBSVCBINPROG)
$(ROOTLIBSVCBIN)/%: %
$(INS.file)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
%.o: ../common/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK)
$(POST_PROCESS_O)
include ../../Makefile.targ