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
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]
23 #ident "%Z%%M% %I% %E% SMI"
25 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
26 # Use is subject to license terms.
28 # cmd/valtools/Makefile
31 PROG
= ckint ckitem ckpath ckrange ckstr ckyorn \
32 ckkeywd ckdate cktime ckuid ckgid
34 POFILES
= ckdate.po ckgid.po ckint.po ckitem.po \
35 ckkeywd.po ckpath.po ckrange.po ckstr.po \
36 cktime.po ckuid.po ckyorn.po puttext.po
38 include ..
/Makefile.cmd
40 LIBADMDIR
= ..
/..
/lib
/libadm
/inc
41 CPPFLAGS
+= -I
$(LIBADMDIR
)
42 CFLAGS
+= $(CCVERBOSE
)
45 CLOBBERFILES
+= puttext
$(POFILES
) $(POFILE
)
48 VCKS
= valint helpint errint \
50 valpath helppath errpath \
51 valrange helprange errange \
52 valstr helpstr errstr \
53 valyorn helpyorn erryorn \
54 valtime helptime errtime \
55 valdate helpdate errdate \
56 dispuid valuid helpuid erruid \
57 dispgid valgid helpgid errgid
59 DISPS
= dispuid dispgid
61 ROOTSADMDIR
= $(ROOT
)/usr
/sadm
/bin
63 ROOTPUTTEXT
= $(ROOTSADMDIR
)/puttext
64 ROOTVCKS
= $(VCKS
:%=$(ROOTSADMDIR
)/%)
65 ROOTDISPS
= $(DISPS
:%=$(ROOTBIN
)/%)
68 # valtool install rules
72 # there is a special case here for errange
74 $(ROOTSADMDIR
)/disp
% \
76 $(ROOTSADMDIR
)/help
% \
79 $(ROOTBIN
)/disp
%: $(ROOTBIN
)/ck
%
85 .PARALLEL
: $(PROG
) puttext
89 install: all $(ROOTSADMDIR
) $(ROOTPROG
) $(ROOTPUTTEXT
) $(ROOTVCKS
) $(ROOTDISPS
)
101 $(LINT.c
) ckint.c
$(LDLIBS
)
102 $(LINT.c
) ckitem.c
$(LDLIBS
)
103 $(LINT.c
) ckpath.c
$(LDLIBS
)
104 $(LINT.c
) ckrange.c
$(LDLIBS
)
105 $(LINT.c
) ckstr.c
$(LDLIBS
)
106 $(LINT.c
) ckyorn.c
$(LDLIBS
)
107 $(LINT.c
) ckkeywd.c
$(LDLIBS
)
108 $(LINT.c
) ckdate.c
$(LDLIBS
)
109 $(LINT.c
) cktime.c
$(LDLIBS
)
110 $(LINT.c
) ckuid.c
$(LDLIBS
)
111 $(LINT.c
) ckgid.c
$(LDLIBS
)
112 $(LINT.c
) puttext.c
$(LDLIBS
)
114 include ..
/Makefile.targ