Makefile revision 5a7763bf3e9db4cfe6cb523b096cb74af71e3793
472N/A#
472N/A# CDDL HEADER START
1356N/A#
472N/A# The contents of this file are subject to the terms of the
1515N/A# Common Development and Distribution License (the "License").
472N/A# You may not use this file except in compliance with the License.
472N/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# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
919N/A#ident "%Z%%M% %I% %E% SMI"
472N/A#
472N/A#
472N/A# cmd/fwflash/plugins/transport/sparc
472N/A#
493N/A
472N/ASRCS= ses.c
970N/A
970N/AOBJECTS= $(SRCS:%.c=%.o)
970N/APLUGINS= $(SRCS:%.c=%.so)
970N/APOFILES= ses.po
1003N/AIDENTPOFILE= fwflash_transport_identify_ses.po
1003N/ALINTFILE= ses.ln
1003N/A
1003N/ACLEANFILES= $(OBJECTS)
1356N/ACLOBBERFILES= $(PLUGINS) $(POFILES) $(IDENTPOFILE) $(LINTFILE)
1356N/A
1515N/A
1356N/A
493N/Aall: $(PLUGINS)
493N/A_msg msg: $(IDENTPOFILE)
493N/A
493N/A
493N/Ainclude $(SRC)/Makefile.master
472N/Ainclude $(SRC)/cmd/fwflash/Makefile.com
472N/A
472N/ACFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS
472N/ADYNFLAGS += -Bdynamic
1451N/ALDLIBS += -L$(ROOT)/usr/lib/scsi -ldevinfo -lumem -lc -lscsi -lses
1451N/ALDFLAGS += -R/usr/lib/scsi
1451N/A
1451N/ABUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(LDFLAGS) $(LDLIBS)
1466N/A
1466N/A$(PLUGINS) := FILEMODE = 0555
493N/A
472N/A
1466N/Ainstall: $(ROOTLIBFWFLASHPLUGINS) \
1466N/A $(ROOTLIBFWFLASHPLUGINS)/ses.so
1466N/A
1466N/Aclobber clean:
1466N/A $(RM) $(CLEANFILES) $(CLOBBERFILES)
851N/A
472N/Alint: lint_SRCS
970N/A
970N/A%.o: ../common/%.c
970N/A $(COMPILE.c) $<
472N/A $(POST_PROCESS_O)
472N/A
%.so: %.o
$(BUILD.SO) $<
#
# Message catalog
#
$(POFILES): ../common/$(SRCS)
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) \
`($(GREP) -l gettext ../common/ses.c || echo /dev/null)`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
$(IDENTPOFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
lint_SRCS: ../common/$(SRCS:%.c=%.ln)
msg: $(IDENTPOFILE)