8672 proc_t changes broke genunix dmods and walker
[unleashed.git] / usr / src / cmd / locale / Makefile.com
blob4186d7414eabd1893244080e9c715bd9b598565e
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License").  You may not use this file except in compliance
7 # with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
23 # Copyright (c) 1997, by Sun Microsystems, Inc.
24 # All rights reserved.
26 #ident  "%Z%%M% %I%     %E% SMI"
29 PROG= locale
31 OBJS= locale.o
32 SRCS= $(OBJS:%.o=../%.c)
34 include ../../Makefile.cmd
36 POFILE= locale.po
38 CLEANFILES += $(OBJS)
40 .KEEP_STATE:
42 all: $(PROG) 
44 $(PROG): $(OBJS)
45         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
46         $(POST_PROCESS)
48 lint: lint_SRCS
50 %.o:    ../%.c
51         $(COMPILE.c) $<
53 %.po:   ../%.c
54         $(COMPILE.cpp) $< > `basename $<`.i
55         $(XGETTEXT) $(XGETFLAGS) `basename $<`.i
56         $(RM)   $@
57         sed "/^domain/d" < messages.po > $@
58         $(RM) messages.po `basename $<`.i
60 clean:
61         $(RM) $(CLEANFILES)
63 include ../../Makefile.targ