1# Generated automatically from Makefile.in by configure. 2# This is the Makefile for Taylor UUCP 3# 4# The file Makefile.in should be processed by configure to generate 5# Makefile. If you want to generate Makefile by hand, you must find 6# all variables surrounded by @ and replace them with the correct 7# value (e.g. gcc -O must be replaced by something like cc or gcc). 8# 9# Once you have done that, you should check the definitions at the top 10# of this file to make sure that they are reasonable for your system. 11 12# Prefix directory for installation directories. 13prefix = /usr 14 15# The user name that should own the resulting executables, several of 16# which are suid. 17owner = uucp 18 19# Where to install uucico and uuxqt, and where to read configuration files 20# from by default. If you use this definition, $(prefix)/lib must exist. 21libdir = $(prefix)/libexec/uucp 22 23# Where to install uucp, uux, uuchk, uustat, uuname and uulog. 24bindir = $(prefix)/bin 25 26# Where to install man pages. Section 1 for user programs, 8 for daemons. 27man1dir = $(prefix)/share/man/cat1 28man1ext = .0 29man8dir = $(prefix)/share/man/cat8 30man8ext = .0 31 32# Where to install the info files. 33infodir = $(prefix)/info 34 35# The directory to look in for new style configuration files (when 36# using HAVE_TAYLOR_CONFIG). Note that by default this is different 37# from libdir, unlike traditional UUCP packages. 38newconfigdir = /etc/uucp 39 40# The directory to look in for BNU (when using HAVE_BNU_CONFIG) or 41# V2 (when using HAVE_V2_CONFIG) style configuration files. 42oldconfigdir = /etc/uucp 43 44# If you don't want to compile tstuu, which requires BSD style ptys 45# and the Taylor configuration files, comment out the following line 46# The tstuu program is only used to test the package; it is described 47# further in the documentation. 48TSTUU = tstuu 49 50# 51# The next few lines are set up by the configuration script. You may 52# want to look them over. 53# 54 55# If you do not have the mkdir system call, undefine the following three 56# lines. This will install uudir as an suid root program. This is 57# necessary because invoking /bin/mkdir from an suid program will 58# leave the directories owned by the wrong user. 59# UUDIR = uudir 60# uudirdir = $(libdir)/util 61# UUDIRFLAGS = -DUUDIR_PROGRAM=\"$(uudirdir)/$(UUDIR)\" 62 63# Source directory and, if necessary, VPATH 64srcdir = . 65 66 67# Define programs and flags 68CC = gcc -O -I/usr/include/nonstd/bsd 69CFLAGS = -g 70LDFLAGS = 71LIBS = 72ALLOCA = 73 74INSTALL = /usr/bin/install -c 75INSTALL_PROGRAM = $(INSTALL) 76INSTALL_DATA = /usr/bin/install -c -m 644 77 78LN_S = ln -s 79 80# 81# Nothing else to configure 82# 83 84SHELL = /bin/sh 85 86VERSION = 1.03 87 88MORECFLAGS = -I$(srcdir) -I. -DLIBDIR=\"$(libdir)\" -DNEWCONFIGLIB=\"$(newconfigdir)\" -DOLDCONFIGLIB=\"$(oldconfigdir)\" -DOWNER=\"$(owner)\" $(UUDIRFLAGS) 89 90PROGRAMS = uucico uuxqt uux uucp uuchk uustat uuname uulog 91 92UUOBJS = uucico.o prot.o protg.o protf.o prott.o prote.o config.o v2.o bnu.o \ 93 file.o util.o sysinf.o prtinf.o time.o log.o chat.o port.o tcp.o \ 94 parse.o copy.o sys1.o sys2.o sys3.o sys4.o version.o getopt.o \ 95 $(ALLOCA) 96XQTOBJS = uuxqt.o config.o v2.o bnu.o util.o sysinf.o prtinf.o log.o \ 97 copy.o sys1.o sys3.o sys5.o version.o getopt.o $(ALLOCA) 98UUXOBJS = uux.o config.o v2.o bnu.o util.o sysinf.o prtinf.o log.o \ 99 copy.o sys1.o sys3.o sys6.o version.o getopt.o $(ALLOCA) 100UUCPOBJS = uucp.o config.o v2.o bnu.o util.o sysinf.o prtinf.o log.o \ 101 copy.o sys1.o sys3.o sys6.o version.o getopt.o $(ALLOCA) 102UUCHKOBJS = uuchk.o config.o v2.o bnu.o util.o sysinf.o prtinf.o time.o \ 103 log.o sys1.o version.o getopt.o $(ALLOCA) 104UUSTATOBJS = uustat.o config.o v2.o bnu.o util.o sysinf.o prtinf.o \ 105 log.o parse.o copy.o sys1.o sys3.o sys4.o sys5.o sys7.o version.o \ 106 getopt.o $(ALLOCA) 107UUNAMEOBJS = uuname.o config.o v2.o bnu.o util.o sysinf.o prtinf.o \ 108 log.o sys1.o version.o getopt.o $(ALLOCA) 109UULOGOBJS = uulog.o config.o v2.o bnu.o util.o sysinf.o prtinf.o \ 110 log.o sys1.o version.o getopt.o $(ALLOCA) 111TSTOBJS = tstuu.o version.o getopt.o $(ALLOCA) 112 113ALLOBJS = uucico.o uuxqt.o uux.o uucp.o uuchk.o uustat.o uuname.o uulog.o \ 114 uudir.o tstuu.o prot.o protg.o protf.o prott.o prote.o config.o v2.o \ 115 bnu.o file.o util.o sysinf.o prtinf.o time.o log.o chat.o port.o \ 116 tcp.o parse.o copy.o sys1.o sys2.o sys3.o sys4.o sys5.o sys6.o \ 117 sys7.o version.o getopt.o 118 119all: $(PROGRAMS) $(TSTUU) $(UUDIR) 120 121install: $(PROGRAMS) uucp.info $(UUDIR) 122 -mkdir $(libdir) $(bindir) 123 -ln $(libdir)/uucico $(libdir)/uucico.old 124 -ln $(libdir)/uuxqt $(libdir)/uuxqt.old 125 rm -f $(libdir)/uucico $(libdir)/uuxqt 126 $(INSTALL_PROGRAM) uucico $(libdir)/uucico 127 $(INSTALL_PROGRAM) uuxqt $(libdir)/uuxqt 128 $(INSTALL_PROGRAM) uuchk $(libdir)/uuchk 129 chown $(owner) $(libdir)/uucico $(libdir)/uuxqt $(libdir)/uuchk 130 chmod 4555 $(libdir)/uucico $(libdir)/uuxqt 131 -if test "$(UUDIR)X" != "X"; then if test ! -d $(uudirdir); then mkdir $(uudirdir); fi; chown $(owner) $(uudirdir); chmod 100 $(uudirdir); $(INSTALL_PROGRAM) uudir $(uudirdir)/uudir; chown root $(uudirdir)/uudir; chmod 4555 $(uudirdir)/uudir; else true; fi 132 -ln $(bindir)/uux $(bindir)/uux.old 133 -ln $(bindir)/uucp $(bindir)/uucp.old 134 -ln $(bindir)/uustat $(bindir)/uustat.old 135 -ln $(bindir)/uuname $(bindir)/uuname.old 136 -ln $(bindir)/uulog $(bindir)/uulog.old 137 rm -f $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 138 rm -f $(bindir)/uuname $(bindir)/uulog 139 $(INSTALL_PROGRAM) uux $(bindir)/uux 140 $(INSTALL_PROGRAM) uucp $(bindir)/uucp 141 $(INSTALL_PROGRAM) uustat $(bindir)/uustat 142 $(INSTALL_PROGRAM) uuname $(bindir)/uuname 143 $(INSTALL_PROGRAM) uulog $(bindir)/uulog 144 chown $(owner) $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 145 chown $(owner) $(bindir)/uuname 146 chmod 4555 $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 147 chmod 4555 $(bindir)/uuname 148 149uninstall: 150 rm -f $(libdir)/uucico $(libdir)/uuxqt 151 -cp $(libdir)/uucico.old $(libdir)/uucico 152 -cp $(libdir)/uuxqt.old $(libdir)/uuxqt 153 -chown $(owner) $(libdir)/uucico $(libdir)/uuxqt $(libdir)/uuchk 154 -chmod 4555 $(libdir)/uucico $(libdir)/uuxqt 155 rm -f $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 156 rm -f $(bindir)/uuname $(bindir)/uulog 157 -cp $(bindir)/uux.old $(bindir)/uux 158 -cp $(bindir)/uucp.old $(bindir)/uucp 159 -cp $(bindir)/uustat.old $(bindir)/uustat 160 -cp $(bindir)/uuname.old $(bindir)/uuname 161 -cp $(bindir)/uulog.old $(bindir)/uulog 162 -chown $(owner) $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 163 -chown $(owner) $(bindir)/uuname 164 -chmod 4555 $(bindir)/uux $(bindir)/uucp $(bindir)/uustat 165 -chmod 4555 $(bindir)/uuname 166 167uucico: $(UUOBJS) 168 $(CC) $(LDFLAGS) -o uucico $(UUOBJS) $(LIBS) 169 170uuxqt: $(XQTOBJS) 171 $(CC) $(LDFLAGS) -o uuxqt $(XQTOBJS) $(LIBS) 172 173uux: $(UUXOBJS) 174 $(CC) $(LDFLAGS) -o uux $(UUXOBJS) $(LIBS) 175 176uucp: $(UUCPOBJS) 177 $(CC) $(LDFLAGS) -o uucp $(UUCPOBJS) $(LIBS) 178 179uuchk: $(UUCHKOBJS) 180 $(CC) $(LDFLAGS) -o uuchk $(UUCHKOBJS) $(LIBS) 181 182uustat: $(UUSTATOBJS) 183 $(CC) $(LDFLAGS) -o uustat $(UUSTATOBJS) $(LIBS) 184 185uuname: $(UUNAMEOBJS) 186 $(CC) $(LDFLAGS) -o uuname $(UUNAMEOBJS) $(LIBS) 187 188uulog: $(UULOGOBJS) 189 $(CC) $(LDFLAGS) -o uulog $(UULOGOBJS) $(LIBS) 190 191tstuu: $(TSTOBJS) 192 $(CC) $(LDFLAGS) -o tstuu $(TSTOBJS) $(LIBS) 193 194uudir: uudir.o 195 $(CC) $(LDFLAGS) -o uudir uudir.o $(LIBS) 196 197.c.o: 198 $(CC) -c $(CFLAGS) $(MORECFLAGS) $< 199 200.SUFFIXES: .unx 201 202sysdep.h: sysh.unx 203 rm -f sysdep.h 204 $(LN_S) sysh.unx sysdep.h 205 206.unx.c: 207 rm -f $@ 208 $(LN_S) $< $@ 209 210clean: 211 rm -f $(ALLOBJS) uucico uuxqt uux uucp uuchk tstuu 212 rm -f uucp-$(VERSION).tar.Z 213 rm -rf uucp-$(VERSION) 214 215# The distribution targets are mostly for my own use; they are not 216# expected to work on other systems. 217 218dist: uucp.info conf.h-dist 219 -rm -rf uucp-$(VERSION) 220 -rm -f taylor-uucp-$(VERSION).tar taylor-uucp-$(VERSION).tar.Z 221 mkdir uucp-$(VERSION) 222 ln `cat MANIFEST` uucp-$(VERSION) 223 rm -f uucp-$(VERSION)/policy.h uucp-$(VERSION)/Makefile.in 224 cp policy.h Makefile.in uucp-$(VERSION) 225 chmod 0644 uucp-$(VERSION)/policy.h uucp-$(VERSION)/Makefile.in 226 mkdir uucp-$(VERSION)/contrib 227 ln contrib/* uucp-$(VERSION)/contrib 228 tar -cvf taylor-uucp-$(VERSION).tar uucp-$(VERSION) 229 compress taylor-uucp-$(VERSION).tar 230 231uucp.info: uucp.texi 232 makeinfo uucp.texi 233 234conf.h-dist: conf.h 235 cp conf.h conf.h-dist 236 237conf.h Makefile: configure 238 configure 239 240Makefile: Makefile.in 241 242configure: configure.in 243 autoconf 244 245# GNU standards want these targets 246 247mostlyclean: clean 248 249realclean: clean 250 rm conf.h 251 252TAGS: 253 etags *.h *.c 254 255# Header file dependencies. These are maintained by hand. 256 257uucico.o: uucp.h conf.h policy.h system.h prot.h port.h sysdep.h uutime.h 258uucico.o: getopt.h 259uuxqt.o: uucp.h conf.h policy.h system.h getopt.h sysdep.h 260uux.o: uucp.h conf.h policy.h system.h getopt.h sysdep.h 261uucp.o: uucp.h conf.h policy.h system.h getopt.h sysdep.h 262uuchk.o: uucp.h conf.h policy.h port.h sysdep.h system.h uutime.h getopt.h 263uustat.o: uucp.h conf.h policy.h system.h sysdep.h getopt.h 264uuname.o: uucp.h conf.h policy.h system.h sysdep.h getopt.h 265uulog.o: uucp.h conf.h policy.h system.h sysdep.h getopt.h 266tstuu.o: uucp.h conf.h policy.h sysdep.h getopt.h 267uudir.o: uucp.h conf.h policy.h sysdep.h 268prot.o: uucp.h conf.h policy.h system.h prot.h port.h sysdep.h 269protg.o: uucp.h conf.h policy.h system.h prot.h port.h sysdep.h 270protf.o: uucp.h conf.h policy.h prot.h port.h sysdep.h system.h 271prott.o: uucp.h conf.h policy.h prot.h port.h sysdep.h system.h 272prote.o: uucp.h conf.h policy.h prot.h port.h sysdep.h system.h 273config.o: uucp.h conf.h policy.h system.h sysdep.h 274v2.o: uucp.h conf.h policy.h port.h sysdep.h 275bnu.o: uucp.h conf.h policy.h port.h sysdep.h 276file.o: uucp.h conf.h policy.h system.h 277util.o: uucp.h conf.h policy.h 278sysinf.o: uucp.h conf.h policy.h system.h port.h sysdep.h uutime.h 279time.o: uucp.h conf.h policy.h uutime.h 280log.o: uucp.h conf.h policy.h system.h 281chat.o: uucp.h conf.h policy.h system.h port.h sysdep.h 282port.o: uucp.h conf.h policy.h port.h sysdep.h 283tcp.o: uucp.h conf.h policy.h port.h sysdep.h system.h 284prtinf.o: uucp.h conf.h policy.h port.h sysdep.h 285parse.o: uucp.h conf.h policy.h 286copy.o: uucp.h conf.h policy.h system.h sysdep.h 287sys1.o: uucp.h conf.h policy.h system.h sysdep.h 288sys2.o: uucp.h conf.h policy.h system.h port.h sysdep.h 289sys3.o: uucp.h conf.h policy.h system.h sysdep.h 290sys4.o: uucp.h conf.h policy.h system.h sysdep.h 291sys5.o: uucp.h conf.h policy.h system.h sysdep.h 292sys6.o: uucp.h conf.h policy.h system.h sysdep.h 293sys7.o: uucp.h conf.h policy.h system.h sysdep.h 294version.o: uucp.h conf.h policy.h 295getopt.o: getopt.h 296alloca.o: uucp.h conf.h policy.h 297