dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / tip / Makefile
blobf1e8eda93258d9bec5bf9de1910f55ef92bc0d4a
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # Makefile for intermachine communications package.
7 # Files are:
8 # /etc/remote remote host description file
9 # /etc/phones phone number file, owned by uucp and
10 # mode 6??
11 # /var/adm/aculog ACU accounting file, owned by uucp and
12 # mode 6?? (if ACULOG defined)
13 # Presently supports:
14 # BIZCOMP
15 # DEC DF02-AC, DF03-AC
16 # DEC DN-11/Able Quadracall
17 # VENTEL 212+
18 # VADIC 831 RS232 adaptor
19 # VADIC 3451
20 # HAYES SmartModem
21 # (drivers are located in aculib.a)
23 # Configuration defines:
24 # DF02, DF03, DN11 ACU's supported
25 # BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES
26 # ACULOG turn on tip logging of ACU use
27 # PRISTINE no phone #'s put in ACU log file
28 # DEFBR default baud rate to make connection at
29 # DEFFS default frame size for FTP buffering of
30 # writes on local side
31 # BUFSIZ buffer sizing from stdio, must be fed
32 # explicitly to remcap.c if not 1024
34 # cmd/tip/Makefile
36 PROG= tip
38 OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \
39 log.o partab.o remote.o tip.o tipout.o value.o vars.o \
40 acutab.o remcap.o uucplock.o
42 # sigh, NSE can't handle wildcards
43 #DRIVERS= aculib/*.c
45 SRCS= $(OBJS:.o=.c)
47 SOURCES=$(SRCS) $(DRIVERS)
49 include ../Makefile.cmd
51 REMOTE= etc.remote
52 ACULOG= aculog
53 ROOTETCREMOTE= $(ROOTETC)/remote
54 ROOTACULOGD= $(ROOT)/var/adm
55 ROOTACULOG= $(ROOTACULOGD)/aculog
57 $(ROOTPROG) := FILEMODE = 4511
58 $(ROOTETCREMOTE) := FILEMODE = 644
59 $(ROOTACULOG) := FILEMODE = 600
61 CPPFLAGS += -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG
62 CERRWARN += -Wno-parentheses
63 CERRWARN += -Wno-clobbered
64 CERRWARN += -Wno-uninitialized
65 CONFIG= -DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES
66 ACULIB= aculib/aculib.a
67 LDLIBS= $(ACULIB) $(LDLIBS.cmd)
69 CLOBBERFILES += $(ACULOG)
71 # install rules
72 $(ROOTACULOGD)/% : %
73 $(INS.file)
75 $(ROOTETC)/% : etc.%
76 $(INS.rename)
78 .KEEP_STATE:
80 .PARALLEL: $(OBJS)
82 all: $(PROG) $(REMOTE) $(ACULOG)
84 $(PROG): $(OBJS) $(ACULIB)
85 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
86 $(POST_PROCESS)
88 # special build rules
89 remcap.o := CPPFLAGS += -DBUFSIZ=1024
90 acutab.o := CPPFLAGS += $(CONFIG)
92 # acutab is configuration dependent, and so depends on the makefile
93 acutab.o: Makefile
95 # remote.o depends on the makefile because of DEFBR and DEFFS
96 remote.o: Makefile
98 # log.o depends on the makefile because of ACULOG
99 log.o: Makefile
101 $(ACULIB): FRC
102 cd aculib; $(MAKE)
104 install: all $(ROOTPROG) $(ROOTETCREMOTE) $(ROOTACULOG)
106 $(ACULOG):
107 cp /dev/null $(ACULOG)
109 clean: FRC
110 cd aculib; $(MAKE) clean
111 $(RM) $(OBJS)
113 include ../Makefile.targ
115 FRC: