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 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # cmd/awk_xpg4/Makefile
29 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
34 OBJ1
= awk0.o awk1.o awk2.o awk3.o awk4.o
36 XPG4AWKOBJ
= values-xpg4.o
37 OBJS
= $(OBJ2
) $(OBJ1
) $(XPG4AWKOBJ
)
40 include ..
/Makefile.cmd
42 CPPFLAGS
+= -D_FILE_OFFSET_BITS
=64
43 CFLAGS
+= $(CCVERBOSE
)
44 CERRWARN
+= -_gcc
=-Wno-unused-label
45 CERRWARN
+= -_gcc
=-Wno-parentheses
46 CERRWARN
+= -_gcc
=-Wno-uninitialized
49 CLEANFILES
= awk.c y.tab.h
51 # for messaging catalog
54 POFILES
= $(OBJ1
:%.o
=%.po
) $(OBJ2
:%.o
=%.po
)
63 $(LINK.c
) $(OBJS
) -o
$@
$(LDLIBS
)
71 install: all $(ROOTXPG4PROG
)
73 values-xpg4.o
: ..
/..
/lib
/common
/common
/values-xpg4.c
74 $(COMPILE.c
) -o
$@ ..
/..
/lib
/common
/common
/values-xpg4.c
77 $(RM
) $(OBJS
) $(XPG4
) $(CLEANFILES
)
81 awk.c
+ y.tab.h
: awk.y
95 include ..
/Makefile.targ