xref: /titanic_52/usr/src/cmd/fm/dicts/Makefile (revision 6d6fcbbb256ba9a8fe3e6076ae8a1f493b1f1a99)
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
500d0963fSdilpreet# Common Development and Distribution License (the "License").
600d0963fSdilpreet# 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#
227851b394STarik Soydan# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gatecommon_DCNAMES = \
28724365f7Ssethg	DISK \
297c478bd9Sstevel@tonic-gate	FMD \
30f6e214c7SGavin Maltby	FMNOTIFY \
31ee5416c9Syc148097	NXGE \
32f6e214c7SGavin Maltby	SMF \
337c478bd9Sstevel@tonic-gate	SUNOS \
34fa9e4066Sahrens	PCI \
3500d0963fSdilpreet	PCIEX \
3688f8b78aSgm89044	ZFS \
3788f8b78aSgm89044	SCA500 \
38e5dcf7beSRobert Johnston	SCA1000 \
39b6955755SRobert Johnston	SENSOR \
407851b394STarik Soydan	STORAGE \
41b6955755SRobert Johnston	TEST
427c478bd9Sstevel@tonic-gate
437aec1d6eScindii386_DCNAMES = \
4420c794b3Sgavinm	AMD \
4520c794b3Sgavinm	INTEL \
4620c794b3Sgavinm	GMCA
477aec1d6eScindi
487c478bd9Sstevel@tonic-gatesparc_DCNAMES = \
49200c5a5aShueston	SCF \
506dfee483Stsien	SUN4 \
510890ae4eSvn83148	SUN4U \
526dfee483Stsien	SUN4V
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateDCNAMES = \
557c478bd9Sstevel@tonic-gate	$(common_DCNAMES) \
567c478bd9Sstevel@tonic-gate	$($(MACH)_DCNAMES)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateALLDCNAMES = \
597c478bd9Sstevel@tonic-gate	$(common_DCNAMES) \
607aec1d6eScindi	$(sparc_DCNAMES) \
617aec1d6eScindi	$(i386_DCNAMES)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gateDCFILES = $(DCNAMES:%=%.dict)
647c478bd9Sstevel@tonic-gatePOFILES = $(DCNAMES:%=%.po)
657c478bd9Sstevel@tonic-gateMOFILES = $(DCNAMES:%=%.mo)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateROOTDCDIR = $(ROOTLIB)/fm/dict
687c478bd9Sstevel@tonic-gateROOTLCDIR = $(ROOTLIB)/locale/C/LC_MESSAGES
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateROOTDCFILES = $(DCNAMES:%=$(ROOTDCDIR)/%.dict)
717c478bd9Sstevel@tonic-gateROOTPOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.po)
727c478bd9Sstevel@tonic-gateROOTMOFILES = $(DCNAMES:%=$(ROOTLCDIR)/%.mo)
737c478bd9Sstevel@tonic-gateROOTALLPOFILES = $(ALLDCNAMES:%=$(ROOTLCDIR)/%.po)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateFILEMODE = 0444
767c478bd9Sstevel@tonic-gate$(ROOTALLPOFILES) := FILEMODE = 0644
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateDICTCK = ../scripts/dictck
797c478bd9Sstevel@tonic-gateDICTCKFLAGS = -b ../scripts/buildcode
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateall: $(MOFILES)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate_msg: $(ROOTALLPOFILES)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate$(ROOTDCDIR):
867c478bd9Sstevel@tonic-gate	$(INS.dir)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale:
897c478bd9Sstevel@tonic-gate	$(INS.dir)
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate$(ROOTLIB)/locale/C: $(ROOTLIB)/locale
927c478bd9Sstevel@tonic-gate	$(INS.dir)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate$(ROOTLCDIR): $(ROOTLIB)/locale/C
957c478bd9Sstevel@tonic-gate	$(INS.dir)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(ROOTDCDIR)/%: %
987c478bd9Sstevel@tonic-gate	$(INS.file)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate$(ROOTLCDIR)/%: %
1017c478bd9Sstevel@tonic-gate	$(INS.file)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate%.mo: %.po
104*6d6fcbbbSRichard Lowe	$(MSGFMT) -o $@ $<
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gatelint:
1077c478bd9Sstevel@tonic-gate	@for name in $(DCNAMES); do\
1087c478bd9Sstevel@tonic-gate		$(DICTCK) $(DICTCKFLAGS) $$name.dict $$name.po;\
1097c478bd9Sstevel@tonic-gate	done
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gateclean install_h lint:
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gateclobber:
1147c478bd9Sstevel@tonic-gate	$(RM) $(MOFILES)
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gateinstall: all $(ROOTDCDIR) $(ROOTLCDIR) \
1177c478bd9Sstevel@tonic-gate	$(ROOTDCFILES) $(ROOTALLPOFILES) $(ROOTMOFILES)
118