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# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22# Use is subject to license terms. 23# 24# cmd/fwflash/Makefile.com 25# 26# 27# common rules for $SRC/cmd/fwflash 28 29CLOSED= $(SRC)/../closed 30 31ROOTUSR= $(ROOT)/usr 32ROOTUSRINCLD= $(ROOTUSR)/include 33ROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash 34ROOTUSRLIB= $(ROOTUSR)/lib 35ROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash 36ROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify 37ROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify 38ROOTUSRSBIN= $(ROOTUSR)/sbin 39 40$(ROOTUSR): 41 $(INS.dir) 42 43$(ROOTUSRINCLD): $(ROOTUSR) 44 $(INS.dir) 45 46$(ROOTUSRINCLDFWFLASH): 47 $(INS.dir) 48 49$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) % 50 $(INS.file) 51 52$(ROOTUSRLIB): 53 $(INS.dir) 54 55$(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB) 56 $(INS.dir) 57 58$(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) % 59 $(INS.dir) 60 61$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH) 62 $(INS.dir) 63 64$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) % 65 $(INS.file) 66 67$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH) 68 $(INS.dir) 69 70$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) % 71 $(INS.file) 72 73$(ROOTUSRSBIN): $(ROOTUSR) 74 $(INS.dir) 75 76$(ROOTUSRSBIN)/%: % 77 $(INS.file) 78 79 80 81%.ln: $(SRCDIR)/%.c 82 $(LINT.c) $(LINTFLAGS) -c $< 83 84%.po: $(SRCDIR)/%.c 85 $(RM) messages.po 86 $(XGETTEXT) $(XGETFLAGS) \ 87 `($(GREP) -l gettext $< || echo /dev/null)` 88 $(SED) "/^domain/d" messages.po > $@ 89 $(RM) messages.po 90 91$(POFILE): $(POFILES) 92 $(RM) $@ 93 cat $(POFILES) >$@ 94 95LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \ 96 -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 97