15a7763bfSjmcp# 25a7763bfSjmcp# CDDL HEADER START 35a7763bfSjmcp# 45a7763bfSjmcp# The contents of this file are subject to the terms of the 55a7763bfSjmcp# Common Development and Distribution License (the "License"). 65a7763bfSjmcp# You may not use this file except in compliance with the License. 75a7763bfSjmcp# 85a7763bfSjmcp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95a7763bfSjmcp# or http://www.opensolaris.org/os/licensing. 105a7763bfSjmcp# See the License for the specific language governing permissions 115a7763bfSjmcp# and limitations under the License. 125a7763bfSjmcp# 135a7763bfSjmcp# When distributing Covered Code, include this CDDL HEADER in each 145a7763bfSjmcp# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155a7763bfSjmcp# If applicable, add the following below this CDDL HEADER, with the 165a7763bfSjmcp# fields enclosed by brackets "[]" replaced with your own identifying 175a7763bfSjmcp# information: Portions Copyright [yyyy] [name of copyright owner] 185a7763bfSjmcp# 195a7763bfSjmcp# CDDL HEADER END 205a7763bfSjmcp# 214196e263SSherry Moore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 225a7763bfSjmcp# Use is subject to license terms. 235a7763bfSjmcp# 245661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 255a7763bfSjmcp# 265a7763bfSjmcp# common rules for $SRC/cmd/fwflash 275a7763bfSjmcp 287014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 297014882cSRichard LoweCERRWARN += -_gcc=-Wno-address 307014882cSRichard Lowe 315661bb76SJohn Levon# not linted 325661bb76SJohn LevonSMATCH=off 335661bb76SJohn Levon 345a7763bfSjmcpROOTUSR= $(ROOT)/usr 35a799b1e7Speihong huangROOTUSRINCLD= $(ROOTUSR)/include 36a799b1e7Speihong huangROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash 37a799b1e7Speihong huangROOTUSRLIB= $(ROOTUSR)/lib 38a799b1e7Speihong huangROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash 39a799b1e7Speihong huangROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify 40a799b1e7Speihong huangROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify 41a799b1e7Speihong huangROOTUSRSBIN= $(ROOTUSR)/sbin 425a7763bfSjmcp 43a799b1e7Speihong huang$(ROOTUSR): 445a7763bfSjmcp $(INS.dir) 455a7763bfSjmcp 46a799b1e7Speihong huang$(ROOTUSRINCLD): $(ROOTUSR) 475a7763bfSjmcp $(INS.dir) 485a7763bfSjmcp 49a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH): 505a7763bfSjmcp $(INS.dir) 515a7763bfSjmcp 52a799b1e7Speihong huang$(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) % 535a7763bfSjmcp $(INS.file) 545a7763bfSjmcp 55a799b1e7Speihong huang$(ROOTUSRLIB): 565a7763bfSjmcp $(INS.dir) 575a7763bfSjmcp 58a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB) 59a799b1e7Speihong huang $(INS.dir) 605a7763bfSjmcp 61a799b1e7Speihong huang$(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) % 625a7763bfSjmcp $(INS.dir) 635a7763bfSjmcp 64a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH) 655a7763bfSjmcp $(INS.dir) 665a7763bfSjmcp 67a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) % 68a799b1e7Speihong huang $(INS.file) 69a799b1e7Speihong huang 70a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH) 715a7763bfSjmcp $(INS.dir) 725a7763bfSjmcp 73a799b1e7Speihong huang$(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) % 745a7763bfSjmcp $(INS.file) 755a7763bfSjmcp 765a7763bfSjmcp$(ROOTUSRSBIN): $(ROOTUSR) 775a7763bfSjmcp $(INS.dir) 785a7763bfSjmcp 795a7763bfSjmcp$(ROOTUSRSBIN)/%: % 805a7763bfSjmcp $(INS.file) 815a7763bfSjmcp 82a799b1e7Speihong huang%.po: $(SRCDIR)/%.c 83a799b1e7Speihong huang $(RM) messages.po 84a799b1e7Speihong huang $(XGETTEXT) $(XGETFLAGS) \ 85a799b1e7Speihong huang `($(GREP) -l gettext $< || echo /dev/null)` 86a799b1e7Speihong huang $(SED) "/^domain/d" messages.po > $@ 87a799b1e7Speihong huang $(RM) messages.po 88a799b1e7Speihong huang 89a799b1e7Speihong huang$(POFILE): $(POFILES) 90a799b1e7Speihong huang $(RM) $@ 91*499bc737SRobert Mustacchi cat $(POFILES) >$@ 92