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 5ccfce1d8Sna195498# Common Development and Distribution License (the "License"). 6ccfce1d8Sna195498# 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# 22ccfce1d8Sna195498# 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# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# cmd/msgfmt/Makefile 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateXOBJS= xgettext.o 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateLXOBJS= xgettext.lx.o 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateGOBJS= gnu_msgfmt.o gnu_handle.o gnu_lex.o gnu_hash.o gnu_check.o 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gateYOBJS= gnu_po.o 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateBOBJS= gnu_msgs.o 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateLOBJS= gnu_msgs_rev.o 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateSOBJS= msgfmt.o check_header.o 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateCOBJS= option.o util.o 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateBINPROG= msgfmt xgettext 507c478bd9Sstevel@tonic-gateLIBPROG= gmsgfmt 517c478bd9Sstevel@tonic-gatePROG= $(BINPROG) $(LIBPROG) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateYFLAGS += -d 547c478bd9Sstevel@tonic-gateLINTFLAGS += -um 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gatePOFILE= msgfmt_all.po 577c478bd9Sstevel@tonic-gatePOFILES= $(SOBJS:%.o=%.po) $(GOBJS:%.o=%.po) $(COBJS:%.o=%.po) \ 587c478bd9Sstevel@tonic-gate $(BOBJS:%.o=%.po) $(YOBJS:%.o=%.po) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateCLOBBERFILES += gmsgfmt_rev 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%) 637c478bd9Sstevel@tonic-gateROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%) 647c478bd9Sstevel@tonic-gate 65*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 69*7014882cSRichard Lowe 707c478bd9Sstevel@tonic-gate.KEEP_STATE: 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate.PARALLEL: $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) $(BOBJS) $(LOBJS) \ 737c478bd9Sstevel@tonic-gate $(XOBJS) $(LXOBJS) 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gateall: $(PROG) gmsgfmt_rev 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gatemsgfmt: $(SOBJS) $(COBJS) 787c478bd9Sstevel@tonic-gate $(LINK.c) $(SOBJS) $(COBJS) -o $@ $(LDLIBS) 797c478bd9Sstevel@tonic-gate $(POST_PROCESS) 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gategmsgfmt: $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS) 827c478bd9Sstevel@tonic-gate $(LINK.c) $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS) -o $@ $(LDLIBS) 837c478bd9Sstevel@tonic-gate $(POST_PROCESS) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gategmsgfmt_rev: $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS) 867c478bd9Sstevel@tonic-gate $(LINK.c) $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS) -o $@ $(LDLIBS) 877c478bd9Sstevel@tonic-gate $(POST_PROCESS) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gatexgettext: $(XOBJS) $(LXOBJS) 907c478bd9Sstevel@tonic-gate $(LINK.c) $(XOBJS) $(LXOBJS) -o $@ $(LDLIBS) 917c478bd9Sstevel@tonic-gate $(POST_PROCESS) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES) 947c478bd9Sstevel@tonic-gate $(RM) $@ 957c478bd9Sstevel@tonic-gate cat $(POFILES) > $@ 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gateinstall: all $(ROOTBINPROG) $(ROOTLIBPROG) 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gateclean: 1007c478bd9Sstevel@tonic-gate $(RM) $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) \ 1017c478bd9Sstevel@tonic-gate $(XOBJS) $(LXOBJS) $(BOBJS) $(LOBJS) \ 102ccfce1d8Sna195498 $(POFILE) $(POFILES) gnu_po.c y.tab.h xgettext.lx.c 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gatelint: gnu_po.c y.tab.h 1057c478bd9Sstevel@tonic-gate $(LINT.c) $(SOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1067c478bd9Sstevel@tonic-gate $(LINT.c) $(GOBJS:%.o=%.c) $(BOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1077c478bd9Sstevel@tonic-gate $(LINT.c) $(GOBJS:%.o=%.c) $(LOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS) 1087c478bd9Sstevel@tonic-gate $(LINT.c) $(XOBJS:%.o=%.c) $(LDLIBS) 1097c478bd9Sstevel@tonic-gate 1107c478bd9Sstevel@tonic-gategnu_po.c + y.tab.h: gnu_po.y 1117c478bd9Sstevel@tonic-gate $(RM) gnu_po.c y.tab.h 1127c478bd9Sstevel@tonic-gate $(YACC.y) gnu_po.y 1137c478bd9Sstevel@tonic-gate mv y.tab.c gnu_po.c 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gategnu_lex.o: y.tab.h 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 118