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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 PROG= stty ttymon ttyadm sttydefs
28 XPG4PROG= stty
29
30 # the 'stty' objects have to be made in a separate directory
31 # since only they are built with the -DEUC flag (see below).
32 STTYOBJ= sttyobjs/stty.o sttyobjs/sttytable.o sttyobjs/sttyparse.o
33
34 XPG4STTYOBJ= sttyobjs.xpg4/stty.o sttyobjs.xpg4/sttytable.o \
35 sttyobjs.xpg4/sttyparse.o
36
37 TTYMONOBJ= ttymon.o tmglobal.o tmhandler.o tmpmtab.o tmttydefs.o \
38 tmparse.o tmsig.o tmsac.o tmchild.o tmautobaud.o tmterm.o \
39 tmutmp.o tmpeek.o tmlog.o tmlock.o tmutil.o tmexpress.o \
40 sttytable.o sttyparse.o ulockf.o
41
42 TTYADMOBJ= ttyadm.o tmutil.o admutil.o
43
44 STTYDEFSOBJ= sttydefs.o admutil.o tmttydefs.o tmparse.o sttytable.o \
45 sttyparse.o
61 # fix for 1111333 - turn on SYS_NAME so /etc/issue will be read if it exists
62 CPPFLAGS += -DSYS_NAME
63 $(XPG4):= CPPFLAGS += -DXPG4
64 sttydefs := LDLIBS += -lnsl
65 ttymon := LDLIBS += -lnsl -lsec -ldevinfo
66
67 # Only stty can be built with -DEUC. ttymon will dump core unless further
68 # changes are made to it.
69 $(STTYOBJ) := CPPFLAGS += -DEUC
70 $(XPG4STTYOBJ) := CPPFLAGS += -DEUC
71
72 LINTFLAGS = -b -x
73 CFLAGS += $(CCVERBOSE)
74 LDFLAGS += $(MAPFILE.NGB:%=-M%)
75
76 CERRWARN += -_gcc=-Wno-parentheses
77 CERRWARN += -_gcc=-Wno-unused-variable
78 CERRWARN += -_gcc=-Wno-uninitialized
79 CERRWARN += -_gcc=-Wno-extra
80
81 #
82 # Message catalog
83 #
84 POFILES= $(STTYOBJ:sttyobjs/%.o=%.po)
85 POFILE= ttymon.po
86
87
88 LIBSAFD= $(ROOTLIB)/saf
89 DIRS= $(LIBSAFD)
90 LIBSAF= ttymon
91 USRSBINF= sttydefs ttyadm
92 BINF= stty
93 ROOTLIBF= $(LIBSAF:%=$(LIBSAFD)/%)
94 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
95 ROOTBINF= $(BINF:%=$(ROOTBIN)/%)
96 $(ROOTLIBF) := FILEMODE = 0555
97 $(ROOTUSRSBINF) := FILEMODE = 0755
98
99 $(LIBSAFD)/% : %
100 $(INS.file)
|
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 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # Copyright (c) 2018, Joyent, Inc.
27
28 PROG= stty ttymon ttyadm sttydefs
29 XPG4PROG= stty
30
31 # the 'stty' objects have to be made in a separate directory
32 # since only they are built with the -DEUC flag (see below).
33 STTYOBJ= sttyobjs/stty.o sttyobjs/sttytable.o sttyobjs/sttyparse.o
34
35 XPG4STTYOBJ= sttyobjs.xpg4/stty.o sttyobjs.xpg4/sttytable.o \
36 sttyobjs.xpg4/sttyparse.o
37
38 TTYMONOBJ= ttymon.o tmglobal.o tmhandler.o tmpmtab.o tmttydefs.o \
39 tmparse.o tmsig.o tmsac.o tmchild.o tmautobaud.o tmterm.o \
40 tmutmp.o tmpeek.o tmlog.o tmlock.o tmutil.o tmexpress.o \
41 sttytable.o sttyparse.o ulockf.o
42
43 TTYADMOBJ= ttyadm.o tmutil.o admutil.o
44
45 STTYDEFSOBJ= sttydefs.o admutil.o tmttydefs.o tmparse.o sttytable.o \
46 sttyparse.o
62 # fix for 1111333 - turn on SYS_NAME so /etc/issue will be read if it exists
63 CPPFLAGS += -DSYS_NAME
64 $(XPG4):= CPPFLAGS += -DXPG4
65 sttydefs := LDLIBS += -lnsl
66 ttymon := LDLIBS += -lnsl -lsec -ldevinfo
67
68 # Only stty can be built with -DEUC. ttymon will dump core unless further
69 # changes are made to it.
70 $(STTYOBJ) := CPPFLAGS += -DEUC
71 $(XPG4STTYOBJ) := CPPFLAGS += -DEUC
72
73 LINTFLAGS = -b -x
74 CFLAGS += $(CCVERBOSE)
75 LDFLAGS += $(MAPFILE.NGB:%=-M%)
76
77 CERRWARN += -_gcc=-Wno-parentheses
78 CERRWARN += -_gcc=-Wno-unused-variable
79 CERRWARN += -_gcc=-Wno-uninitialized
80 CERRWARN += -_gcc=-Wno-extra
81
82 # not linted
83 SMATCH=off
84
85 #
86 # Message catalog
87 #
88 POFILES= $(STTYOBJ:sttyobjs/%.o=%.po)
89 POFILE= ttymon.po
90
91
92 LIBSAFD= $(ROOTLIB)/saf
93 DIRS= $(LIBSAFD)
94 LIBSAF= ttymon
95 USRSBINF= sttydefs ttyadm
96 BINF= stty
97 ROOTLIBF= $(LIBSAF:%=$(LIBSAFD)/%)
98 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
99 ROOTBINF= $(BINF:%=$(ROOTBIN)/%)
100 $(ROOTLIBF) := FILEMODE = 0555
101 $(ROOTUSRSBINF) := FILEMODE = 0755
102
103 $(LIBSAFD)/% : %
104 $(INS.file)
|