Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/tip/Makefile
+++ new/usr/src/cmd/tip/Makefile
1 1 #
2 2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5 # Makefile for intermachine communications package.
6 6 #
7 7 # Files are:
8 8 # /etc/remote remote host description file
9 9 # /etc/phones phone number file, owned by uucp and
10 10 # mode 6??
11 11 # /var/adm/aculog ACU accounting file, owned by uucp and
12 12 # mode 6?? (if ACULOG defined)
13 13 # Presently supports:
14 14 # BIZCOMP
15 15 # DEC DF02-AC, DF03-AC
16 16 # DEC DN-11/Able Quadracall
17 17 # VENTEL 212+
18 18 # VADIC 831 RS232 adaptor
19 19 # VADIC 3451
20 20 # HAYES SmartModem
21 21 # (drivers are located in aculib.a)
22 22 #
23 23 # Configuration defines:
24 24 # DF02, DF03, DN11 ACU's supported
25 25 # BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES
26 26 # ACULOG turn on tip logging of ACU use
27 27 # PRISTINE no phone #'s put in ACU log file
28 28 # DEFBR default baud rate to make connection at
29 29 # DEFFS default frame size for FTP buffering of
30 30 # writes on local side
31 31 # BUFSIZ buffer sizing from stdio, must be fed
32 32 # explicitly to remcap.c if not 1024
33 33 #
34 34 # cmd/tip/Makefile
35 35
36 36 PROG= tip
37 37
38 38 OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \
39 39 log.o partab.o remote.o tip.o tipout.o value.o vars.o \
40 40 acutab.o remcap.o uucplock.o
41 41
42 42 # sigh, NSE can't handle wildcards
43 43 #DRIVERS= aculib/*.c
44 44
45 45 SRCS= $(OBJS:.o=.c)
46 46
47 47 SOURCES=$(SRCS) $(DRIVERS)
48 48
49 49 include ../Makefile.cmd
50 50
51 51 REMOTE= etc.remote
52 52 ACULOG= aculog
53 53 ROOTETCREMOTE= $(ROOTETC)/remote
54 54 ROOTACULOGD= $(ROOT)/var/adm
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
55 55 ROOTACULOG= $(ROOTACULOGD)/aculog
56 56
57 57 $(ROOTPROG) := FILEMODE = 4511
58 58 $(ROOTETCREMOTE) := FILEMODE = 644
59 59 $(ROOTACULOG) := FILEMODE = 600
60 60
61 61 LINTFLAGS += -u
62 62 CPPFLAGS += -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG
63 63 CERRWARN += -_gcc=-Wno-parentheses
64 64 CERRWARN += -_gcc=-Wno-clobbered
65 -CERRWARN += -_gcc=-Wno-uninitialized
65 +CERRWARN += $(CNOWARN_UNINIT)
66 66 CONFIG= -DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES
67 67 ACULIB= aculib/aculib.a
68 68 LDLIBS= $(ACULIB) $(LDLIBS.cmd)
69 69
70 70 CLOBBERFILES += $(ACULOG)
71 71
72 72 # install rules
73 73 $(ROOTACULOGD)/% : %
74 74 $(INS.file)
75 75
76 76 $(ROOTETC)/% : etc.%
77 77 $(INS.rename)
78 78
79 79 .KEEP_STATE:
80 80
81 81 .PARALLEL: $(OBJS)
82 82
83 83 all: $(PROG) $(REMOTE) $(ACULOG)
84 84
85 85 $(PROG): $(OBJS) $(ACULIB)
86 86 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
87 87 $(POST_PROCESS)
88 88
89 89 # special build rules
90 90 remcap.o := CPPFLAGS += -DBUFSIZ=1024
91 91 acutab.o := CPPFLAGS += $(CONFIG)
92 92
93 93 # acutab is configuration dependent, and so depends on the makefile
94 94 acutab.o: Makefile
95 95
96 96 # remote.o depends on the makefile because of DEFBR and DEFFS
97 97 remote.o: Makefile
98 98
99 99 # log.o depends on the makefile because of ACULOG
100 100 log.o: Makefile
101 101
102 102 $(ACULIB): FRC
103 103 cd aculib; $(MAKE)
104 104
105 105 install: all $(ROOTPROG) $(ROOTETCREMOTE) $(ROOTACULOG)
106 106
107 107 $(ACULOG):
108 108 cp /dev/null $(ACULOG)
109 109
110 110 clean: FRC
111 111 cd aculib; $(MAKE) clean
112 112 $(RM) $(OBJS)
113 113
114 114 lint:
115 115 cd aculib; $(MAKE) lint
116 116 $(LINT.c) $(SRCS) $(LDLIBS.cmd)
117 117
118 118
119 119 include ../Makefile.targ
120 120
121 121 FRC:
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX