8 #
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.
13 #
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]
19 #
20 # CDDL HEADER END
21 #
22 #
23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # cmd/awk_xpg4/Makefile
27 #
28
29 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
30
31 PROG= awk
32 XPG4PROG= awk
33
34 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
35 OBJ2= awk.o
36 XPG4AWKOBJ= values-xpg4.o
37 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
38 SRCS= $(OBJ1:%.o=%.c)
39
40 include ../Makefile.cmd
41
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
47 YFLAGS += -d
48 LDLIBS += -lm
49 CLEANFILES= awk.c y.tab.h
50
51 # for messaging catalog
52
53 POFILE= awk_xpg4.po
54 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
55
56 .KEEP_STATE:
57
58 .PARALLEL: $(OBJS)
59
60 all: $(XPG4)
61
62 $(XPG4): $(OBJS)
63 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
64 $(POST_PROCESS)
65
66 $(POFILE): $(POFILES)
67 $(RM) $@
68 cat $(POFILES) > $@
69 #
70
|
8 #
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.
13 #
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]
19 #
20 # CDDL HEADER END
21 #
22 #
23 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # cmd/awk_xpg4/Makefile
27 #
28 # Copyright (c) 2018, Joyent, Inc.
29
30 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
31
32 PROG= awk
33 XPG4PROG= awk
34
35 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
36 OBJ2= awk.o
37 XPG4AWKOBJ= values-xpg4.o
38 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
39 SRCS= $(OBJ1:%.o=%.c)
40
41 include ../Makefile.cmd
42
43 CPPFLAGS += -D_FILE_OFFSET_BITS=64
44 CFLAGS += $(CCVERBOSE)
45 CERRWARN += -_gcc=-Wno-unused-label
46 CERRWARN += -_gcc=-Wno-parentheses
47 CERRWARN += -_gcc=-Wno-uninitialized
48 YFLAGS += -d
49 LDLIBS += -lm
50 CLEANFILES= awk.c y.tab.h
51
52 # not linted
53 SMATCH=off
54
55 # for messaging catalog
56
57 POFILE= awk_xpg4.po
58 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
59
60 .KEEP_STATE:
61
62 .PARALLEL: $(OBJS)
63
64 all: $(XPG4)
65
66 $(XPG4): $(OBJS)
67 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
68 $(POST_PROCESS)
69
70 $(POFILE): $(POFILES)
71 $(RM) $@
72 cat $(POFILES) > $@
73 #
74
|