3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 # cmd/vi/port/Makefile
28
29 PROG= ex
30 XPG4PROG= ex
31 XPG6PROG= ex
32 LIBPROGS= expreserve exrecover
33 XD4= exobjs.xpg4
34 XD6= exobjs.xpg6
35
36 EXOBJS= bcopy.o ex.o ex_addr.o ex_cmds.o ex_cmds2.o \
37 ex_cmdsub.o ex_data.o ex_extern.o ex_get.o \
38 ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o \
39 ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o \
40 ex_vget.o ex_vmain.o ex_voper.o ex_vops.o \
41 ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \
42 printf.o
44 EXOBJS_XPG6= $(EXOBJS) compile.o values-xpg6.o
45 XPG4EXOBJS= ${EXOBJS_XPG4:%=$(XD4)/%}
46 XPG6EXOBJS= ${EXOBJS_XPG6:%=$(XD6)/%}
47 EXRECOVEROBJS= exrecover.o ex_extern.o
48 OBJS= $(EXOBJS) $(XPG4EXOBJS) $(XPG6EXOBJS) expreserve.o exrecover.o
49 SRCS= $(EXOBJS:%.o=%.c) expreserve.c exrecover.c
50 TXTS = READ_ME makeoptions asfix.c70 ex.news port.mk.370 port.mk.70 \
51 port.mk.c70 port.mk.usg ovdoprnt.s ovprintf.c rofix
52
53 include ../../Makefile.cmd
54
55 CERRWARN += -_gcc=-Wno-implicit-function-declaration
56 CERRWARN += -_gcc=-Wno-clobbered
57 CERRWARN += -_gcc=-Wno-parentheses
58 CERRWARN += -_gcc=-Wno-unused-variable
59 CERRWARN += -_gcc=-Wno-unused-label
60 CERRWARN += -_gcc=-Wno-unused-value
61 CERRWARN += -_gcc=-Wno-uninitialized
62 CERRWARN += -_gcc=-Wno-address
63
64 #
65 # For message catalogue files
66 #
67 POFILES= $(EXOBJS:%.o=%.po) expreserve.po exrecover.po
68 POFILE= port.po
69
70 # Include all XPG4 and XPG4ONLY changes in the XPG4 version
71 $(XPG4) := CFLAGS += -DXPG4 -DXPG4ONLY
72
73 # Include all XPG4 changes, but don't include XPG4ONLY in the XPG6 version
74 $(XPG6) := CFLAGS += -DXPG4 -DXPG6 -I$(SRC)/lib/libc/inc
75
76 CPPFLAGS += -DUSG -DSTDIO -DVMUNIX -DTABS=8 -DSINGLE -DTAG_STACK
77
78 # vi maintains its own versions of various routines from libc and libcurses,
79 # so localize all symbols to avoid name space collisions.
80 LDFLAGS += $(MAPFILE.NGB:%=-M%)
81
82 CLOBBERFILES += $(LIBPROGS)
83 ex := LDLIBS += -lmapmalloc -lcurses -lgen -lcrypt_i
|
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2017 Gary Mills
24 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27
28 # cmd/vi/port/Makefile
29
30 PROG= ex
31 XPG4PROG= ex
32 XPG6PROG= ex
33 LIBPROGS= expreserve exrecover
34 XD4= exobjs.xpg4
35 XD6= exobjs.xpg6
36
37 EXOBJS= bcopy.o ex.o ex_addr.o ex_cmds.o ex_cmds2.o \
38 ex_cmdsub.o ex_data.o ex_extern.o ex_get.o \
39 ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o \
40 ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o \
41 ex_vget.o ex_vmain.o ex_voper.o ex_vops.o \
42 ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \
43 printf.o
45 EXOBJS_XPG6= $(EXOBJS) compile.o values-xpg6.o
46 XPG4EXOBJS= ${EXOBJS_XPG4:%=$(XD4)/%}
47 XPG6EXOBJS= ${EXOBJS_XPG6:%=$(XD6)/%}
48 EXRECOVEROBJS= exrecover.o ex_extern.o
49 OBJS= $(EXOBJS) $(XPG4EXOBJS) $(XPG6EXOBJS) expreserve.o exrecover.o
50 SRCS= $(EXOBJS:%.o=%.c) expreserve.c exrecover.c
51 TXTS = READ_ME makeoptions asfix.c70 ex.news port.mk.370 port.mk.70 \
52 port.mk.c70 port.mk.usg ovdoprnt.s ovprintf.c rofix
53
54 include ../../Makefile.cmd
55
56 CERRWARN += -_gcc=-Wno-implicit-function-declaration
57 CERRWARN += -_gcc=-Wno-clobbered
58 CERRWARN += -_gcc=-Wno-parentheses
59 CERRWARN += -_gcc=-Wno-unused-variable
60 CERRWARN += -_gcc=-Wno-unused-label
61 CERRWARN += -_gcc=-Wno-unused-value
62 CERRWARN += -_gcc=-Wno-uninitialized
63 CERRWARN += -_gcc=-Wno-address
64
65 # Suppress errors for: tmp1 n
66 ex_vmain.o exobjs.xpg4/ex_vmain.o exobjs.xpg6/ex_vmain.o := \
67 CERRWARN += -_gcc=-Wno-unused-but-set-variable
68
69 #
70 # For message catalogue files
71 #
72 POFILES= $(EXOBJS:%.o=%.po) expreserve.po exrecover.po
73 POFILE= port.po
74
75 # Include all XPG4 and XPG4ONLY changes in the XPG4 version
76 $(XPG4) := CFLAGS += -DXPG4 -DXPG4ONLY
77
78 # Include all XPG4 changes, but don't include XPG4ONLY in the XPG6 version
79 $(XPG6) := CFLAGS += -DXPG4 -DXPG6 -I$(SRC)/lib/libc/inc
80
81 CPPFLAGS += -DUSG -DSTDIO -DVMUNIX -DTABS=8 -DSINGLE -DTAG_STACK
82
83 # vi maintains its own versions of various routines from libc and libcurses,
84 # so localize all symbols to avoid name space collisions.
85 LDFLAGS += $(MAPFILE.NGB:%=-M%)
86
87 CLOBBERFILES += $(LIBPROGS)
88 ex := LDLIBS += -lmapmalloc -lcurses -lgen -lcrypt_i
|