17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5ccfce1d8Sna# Common Development and Distribution License (the "License"). 6ccfce1d8Sna# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22ccfce1d8Sna# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 267c478bd9Sstevel@tonic-gate# All Rights Reserved 277c478bd9Sstevel@tonic-gate# 289e01f109SJason King# Copyright 2017 Joyent, Inc. 299e01f109SJason King# 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate# cmd/msgfmt/Makefile 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateXOBJS= xgettext.o 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateLXOBJS= xgettext.lx.o 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateGOBJS= gnu_msgfmt.o gnu_handle.o gnu_lex.o gnu_hash.o gnu_check.o 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateYOBJS= gnu_po.o 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateBOBJS= gnu_msgs.o 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateLOBJS= gnu_msgs_rev.o 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateSOBJS= msgfmt.o check_header.o 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateCOBJS= option.o util.o 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateBINPROG= msgfmt xgettext 527c478bd9Sstevel@tonic-gateLIBPROG= gmsgfmt 537c478bd9Sstevel@tonic-gatePROG= $(BINPROG) $(LIBPROG) 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateYFLAGS += -d 567c478bd9Sstevel@tonic-gateLINTFLAGS += -um 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gatePOFILE= msgfmt_all.po 597c478bd9Sstevel@tonic-gatePOFILES= $(SOBJS:%.o=%.po) $(GOBJS:%.o=%.po) $(COBJS:%.o=%.po) \ 607c478bd9Sstevel@tonic-gate $(BOBJS:%.o=%.po) $(YOBJS:%.o=%.po) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateCLOBBERFILES += gmsgfmt_rev 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gateROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%) 657c478bd9Sstevel@tonic-gateROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%) 667c478bd9Sstevel@tonic-gate 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 69d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 707014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 717014882cSRichard Lowe 727c478bd9Sstevel@tonic-gate.KEEP_STATE: 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate.PARALLEL: $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) $(BOBJS) $(LOBJS) \ 757c478bd9Sstevel@tonic-gate $(XOBJS) $(LXOBJS) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gateall: $(PROG) gmsgfmt_rev 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gatemsgfmt: $(SOBJS) $(COBJS) 807c478bd9Sstevel@tonic-gate $(LINK.c) $(SOBJS) $(COBJS) -o $@ $(LDLIBS) 817c478bd9Sstevel@tonic-gate $(POST_PROCESS) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gategmsgfmt: $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS) 847c478bd9Sstevel@tonic-gate $(LINK.c) $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS) -o $@ $(LDLIBS) 857c478bd9Sstevel@tonic-gate $(POST_PROCESS) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gategmsgfmt_rev: $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS) 887c478bd9Sstevel@tonic-gate $(LINK.c) $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS) -o $@ $(LDLIBS) 897c478bd9Sstevel@tonic-gate $(POST_PROCESS) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gatexgettext: $(XOBJS) $(LXOBJS) 927c478bd9Sstevel@tonic-gate $(LINK.c) $(XOBJS) $(LXOBJS) -o $@ $(LDLIBS) 937c478bd9Sstevel@tonic-gate $(POST_PROCESS) 947c478bd9Sstevel@tonic-gate 959e01f109SJason King$(POFILES): y.tab.h 969e01f109SJason King 977c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES) 987c478bd9Sstevel@tonic-gate $(RM) $@ 997c478bd9Sstevel@tonic-gate cat $(POFILES) > $@ 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateinstall: all $(ROOTBINPROG) $(ROOTLIBPROG) 1027c478bd9Sstevel@tonic-gate 103*55fea89dSDan Crossclean: 1047c478bd9Sstevel@tonic-gate $(RM) $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) \ 1057c478bd9Sstevel@tonic-gate $(XOBJS) $(LXOBJS) $(BOBJS) $(LOBJS) \ 106ccfce1d8Sna $(POFILE) $(POFILES) gnu_po.c y.tab.h xgettext.lx.c 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gatelint: gnu_po.c y.tab.h 1097c478bd9Sstevel@tonic-gate $(LINT.c) $(SOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1107c478bd9Sstevel@tonic-gate $(LINT.c) $(GOBJS:%.o=%.c) $(BOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1117c478bd9Sstevel@tonic-gate $(LINT.c) $(GOBJS:%.o=%.c) $(LOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1127c478bd9Sstevel@tonic-gate $(LINT.c) $(XOBJS:%.o=%.c) $(LDLIBS) 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gategnu_po.c + y.tab.h: gnu_po.y 1157c478bd9Sstevel@tonic-gate $(RM) gnu_po.c y.tab.h 1167c478bd9Sstevel@tonic-gate $(YACC.y) gnu_po.y 1177c478bd9Sstevel@tonic-gate mv y.tab.c gnu_po.c 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gategnu_lex.o: y.tab.h 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 122