Makefile revision 9e39c5ba00a55fa05777cc94b148296af305e135
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# CDDL HEADER START
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# The contents of this file are subject to the terms of the
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Common Development and Distribution License (the "License").
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# You may not use this file except in compliance with the License.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# or http://www.opensolaris.org/os/licensing.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# See the License for the specific language governing permissions
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# and limitations under the License.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# When distributing Covered Code, include this CDDL HEADER in each
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# If applicable, add the following below this CDDL HEADER, with the
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# fields enclosed by brackets "[]" replaced with your own identifying
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# information: Portions Copyright [yyyy] [name of copyright owner]
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger#
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# CDDL HEADER END
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger#
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c17bbcd502afbae7853d791a028cd863b736f469Kryštof Tulinger# Use is subject to license terms.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# cmd/fwflash/plugins/transport/i386
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerSRCS= ses.c tavor.c hermon.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerOBJECTS= $(SRCS:%.c=%.o)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerPLUGINS= $(SRCS:%.c=%.so)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerPOFILES= $(SRCS:%.c=%.po)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerIDENTPOFILE= fwflash_transport_identify_ses.po
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerLINTFILE= $(SRCS:%.c=%.ln)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerSLINKS= sgen.so
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerCLEANFILES= $(OBJECTS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerCLOBBERFILES= $(PLUGINS) $(POFILES) $(IDENTPOFILE) $(LINTFILE) $(SLINKS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerall: $(PLUGINS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger_msg msg: $(IDENTPOFILE)
4095b5839a2805b2313532c995ad3d444f596d03Kryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerinclude $(SRC)/Makefile.master
4095b5839a2805b2313532c995ad3d444f596d03Kryštof Tulingerinclude $(SRC)/cmd/fwflash/Makefile.com
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerCFLAGS += -g -D_POSIX_PTHREAD_SEMANTICS
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerDYNFLAGS += -Bdynamic
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerLDLIBS += -L$(ROOT)/usr/lib/scsi -ldevinfo -lumem -lc -lscsi -lses
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerLDFLAGS += -R/usr/lib/scsi
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerBUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(LDFLAGS) $(LDLIBS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(PLUGINS) := FILEMODE = 0555
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(ROOTLIBFWFLASHPLUGINS)/$(SLINKS) : $(ROOTLIBFWFLASHPLUGINS)/ses.so
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger @$(RM) $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(SYMLINK) ses.so $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerinstall: all $(ROOTLIBFWFLASHPLUGINS) \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(ROOTLIBFWFLASHPLUGINS)/ses.so \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(ROOTLIBFWFLASHPLUGINS)/tavor.so \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(ROOTLIBFWFLASHPLUGINS)/hermon.so \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(ROOTLIBFWFLASHPLUGINS)/$(SLINKS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerclobber clean:
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(RM) $(CLEANFILES) $(CLOBBERFILES)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerlint_SRCS: $(LINTFILE)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerlint: lint_SRCS
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger%.o: ../common/%.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(COMPILE.c) $<
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(POST_PROCESS_O)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger%.so: %.o
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(BUILD.SO) $<
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger%.ln: ../common/%.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(LINT.c) $(LINTFLAGS) -c $<
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Message catalog
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger%.po: ../common/%.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(RM) messages.po
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(XGETTEXT) $(XGETFLAGS) \
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger `($(GREP) -l gettext $< || echo /dev/null)`
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(SED) "/^domain/d" messages.po > $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(RM) messages.po
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(IDENTPOFILE): $(POFILES)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(RM) $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger cat $(POFILES) > $@
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger