don't build _msg for ast stuff
[unleashed.git] / usr / src / lib / libcmd / Makefile.com
blob98f001ffbb927c6451cf896edc7984f59b70a3c8
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
27 SHELL=/usr/bin/ksh93
29 LIBRARY =       libcmd.a
30 VERS =          .1
31 OBJECTS =       \
32         basename.o \
33         cat.o \
34         chgrp.o \
35         cksum.o \
36         chmod.o \
37         chown.o \
38         cmdinit.o \
39         cmp.o \
40         comm.o \
41         cp.o \
42         cut.o \
43         date.o \
44         dirname.o \
45         expr.o \
46         grep.o \
47         fds.o \
48         fmt.o \
49         fold.o \
50         fts_fix.o \
51         getconf.o \
52         head.o \
53         id.o \
54         join.o \
55         ln.o \
56         logname.o \
57         md5sum.o \
58         mkdir.o \
59         mkfifo.o \
60         mktemp.o \
61         mv.o \
62         paste.o \
63         pathchk.o \
64         pids.o \
65         readlink.o \
66         rev.o \
67         revlib.o \
68         rm.o \
69         rmdir.o \
70         stty.o \
71         sum.o \
72         sync.o \
73         tail.o \
74         tee.o \
75         tty.o \
76         uname.o \
77         uniq.o \
78         vmstate.o \
79         wc.o \
80         wclib.o
82 include ../../Makefile.lib
84 # mapfile-vers does not live with the sources in in common/ to make
85 # automated code updates easier.
86 MAPFILES=       ../mapfile-vers
88 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
89 include ../../../Makefile.ast
91 LIBS =          $(DYNLIB)
93 LDLIBS += \
94         -lsum \
95         -last \
96         -lc
98 SRCDIR =        ../common
100 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
101 # case - it MUST come as the last element but future changes in -D options
102 # may then cause silent breakage in the AST sources because the last -D
103 # option specified overrides previous -D options so we prefer the current
104 # way to explicitly list each single flag.
105 # Notes:
106 #   - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
107 CPPFLAGS = \
108         $(DTEXTDOM) \
109         -I../common \
110         -Isrc/lib/libcmd \
111         -I$(ROOT)/usr/include/ast \
112         -I$(ROOT)/usr/include \
113         -D_BLD_cmd \
114         -D_PACKAGE_ast \
115         -D_BLD_DLL \
116         '-DERROR_CATALOG="libcmd"' \
117         '-DUSAGE_LICENSE=\
118                 "[-author?Glenn Fowler <gsf@research.att.com>]"\
119                 "[-author?David Korn <dgk@research.att.com>]"\
120                 "[-copyright?Copyright (c) 1992-2010 AT&T Intellectual Property]"\
121                 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
122                 "[--catalog?libcmd]"'
124 CFLAGS += \
125         $(ASTCFLAGS)
126 CFLAGS64 += \
127         $(ASTCFLAGS64)
129 CERRWARN        += -Wno-unused-value
130 CERRWARN        += -Wno-parentheses
131 CERRWARN        += -Wno-uninitialized
132 CERRWARN        += -Wno-unused-variable
133 CERRWARN        += -Wno-implicit-function-declaration
135 .KEEP_STATE:
137 all: $(LIBS) 
139 include ../../Makefile.targ