1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 8*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 9*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 10*7c478bd9Sstevel@tonic-gate# with the License. 11*7c478bd9Sstevel@tonic-gate# 12*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 14*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 15*7c478bd9Sstevel@tonic-gate# and limitations under the License. 16*7c478bd9Sstevel@tonic-gate# 17*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 18*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 20*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 21*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 24*7c478bd9Sstevel@tonic-gate# 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gate# Makefile for vi 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateROOT = 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gateDIR = $(ROOT)/usr/bin 33*7c478bd9Sstevel@tonic-gateDIRS = $(ROOT)/var/preserve 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gateLIBDIR = $(ROOT)/usr/lib 36*7c478bd9Sstevel@tonic-gateEX = ex 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gateINC = $(ROOT)/usr/include 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gateLDFLAGS = -s -lcurses -lcrypt_i -lgen -lw $(PERFLIBS) 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gateOPTIONS = -DUSG -DSTDIO 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gateDEBUGFLAGS = -DTRACE -g 45*7c478bd9Sstevel@tonic-gateNONDEBUGFLAGS = -O 46*7c478bd9Sstevel@tonic-gateDEB = $(NONDEBUGFLAGS) 47*7c478bd9Sstevel@tonic-gate 48*7c478bd9Sstevel@tonic-gateCFLAGS = $(DEB) -I$(INC) $(OPTIONS) -DTABS=8 -DSINGLE 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gateINS = install 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gateSTRIP = strip 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gateSIZE = size 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gateFOLD = ../misc/fold 57*7c478bd9Sstevel@tonic-gateCTAGS = ../misc/ctags 58*7c478bd9Sstevel@tonic-gateCXREF = ../misc/cxref 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gateMAKEFILE = makefile.usg 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gateMAINS = ex expreserve exrecover 65*7c478bd9Sstevel@tonic-gate 66*7c478bd9Sstevel@tonic-gateOBJECTS = bcopy.o ex.o ex_addr.o ex_cmds.o ex_cmds2.o \ 67*7c478bd9Sstevel@tonic-gate ex_cmdsub.o ex_data.o ex_extern.o ex_get.o \ 68*7c478bd9Sstevel@tonic-gate ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o \ 69*7c478bd9Sstevel@tonic-gate ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o \ 70*7c478bd9Sstevel@tonic-gate ex_vget.o ex_vmain.o ex_voper.o ex_vops.o \ 71*7c478bd9Sstevel@tonic-gate ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \ 72*7c478bd9Sstevel@tonic-gate printf.o expreserve.o exrecover.o 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gateSOURCES = bcopy.c ex.c ex_addr.c ex_cmds.c ex_cmds2.c \ 75*7c478bd9Sstevel@tonic-gate ex_cmdsub.c ex_data.c ex_extern.c ex_get.c \ 76*7c478bd9Sstevel@tonic-gate ex_io.c ex_put.c ex_re.c ex_set.c ex_subr.c \ 77*7c478bd9Sstevel@tonic-gate ex_temp.c ex_tty.c ex_unix.c ex_v.c ex_vadj.c \ 78*7c478bd9Sstevel@tonic-gate ex_vget.c ex_vmain.c ex_voper.c ex_vops.c \ 79*7c478bd9Sstevel@tonic-gate ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c \ 80*7c478bd9Sstevel@tonic-gate printf.c exrecover.c expreserve.c 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateMISC = READ_ME makeoptions asfix.c70 ex.news makefile.370 makefile.c70 \ 83*7c478bd9Sstevel@tonic-gate makefile.70 ovdoprnt.s ovprintf.c rofix 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gateALL: $(MAINS) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gateex: bcopy.o ex.o ex_addr.o ex_cmds.o ex_cmds2.o \ 88*7c478bd9Sstevel@tonic-gate ex_cmdsub.o ex_data.o ex_extern.o ex_get.o \ 89*7c478bd9Sstevel@tonic-gate ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o \ 90*7c478bd9Sstevel@tonic-gate ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o \ 91*7c478bd9Sstevel@tonic-gate ex_vget.o ex_vmain.o ex_voper.o ex_vops.o \ 92*7c478bd9Sstevel@tonic-gate ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \ 93*7c478bd9Sstevel@tonic-gate printf.o 94*7c478bd9Sstevel@tonic-gate $(CC) $(CFLAGS) -o ex bcopy.o ex.o ex_addr.o ex_cmds.o ex_cmds2.o \ 95*7c478bd9Sstevel@tonic-gate ex_cmdsub.o ex_data.o ex_extern.o ex_get.o \ 96*7c478bd9Sstevel@tonic-gate ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o \ 97*7c478bd9Sstevel@tonic-gate ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o \ 98*7c478bd9Sstevel@tonic-gate ex_vget.o ex_vmain.o ex_voper.o ex_vops.o \ 99*7c478bd9Sstevel@tonic-gate ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \ 100*7c478bd9Sstevel@tonic-gate printf.o $(LDFLAGS) 101*7c478bd9Sstevel@tonic-gate 102*7c478bd9Sstevel@tonic-gateexpreserve: expreserve.o 103*7c478bd9Sstevel@tonic-gate $(CC) -s expreserve.o -o expreserve 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gateexrecover: exrecover.o 106*7c478bd9Sstevel@tonic-gate $(CC) $(CFLAGS) -s -o exrecover exrecover.o ex_extern.o $(LDFLAGS) 107*7c478bd9Sstevel@tonic-gate 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gateex.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 110*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h $(INC)/setjmp.h \ 111*7c478bd9Sstevel@tonic-gate $(INC)/sys/stat.h $(INC)/termio.h $(INC)/sys/termio.h \ 112*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 113*7c478bd9Sstevel@tonic-gate ex_argv.h ex_temp.h ex_tty.h 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gateex_addr.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 116*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 117*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 118*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 119*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 120*7c478bd9Sstevel@tonic-gate ex_re.h 121*7c478bd9Sstevel@tonic-gate 122*7c478bd9Sstevel@tonic-gateex_cmds.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 123*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 124*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 125*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 126*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 127*7c478bd9Sstevel@tonic-gate ex_argv.h ex_temp.h ex_tty.h ex_vis.h 128*7c478bd9Sstevel@tonic-gate 129*7c478bd9Sstevel@tonic-gateex_cmds2.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 130*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 131*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 132*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 133*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 134*7c478bd9Sstevel@tonic-gate ex_argv.h ex_temp.h ex_tty.h ex_vis.h 135*7c478bd9Sstevel@tonic-gate 136*7c478bd9Sstevel@tonic-gateex_cmdsub.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 137*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 138*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 139*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 140*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 141*7c478bd9Sstevel@tonic-gate ex_argv.h ex_temp.h ex_tty.h ex_vis.h $(INC)/stdio.h 142*7c478bd9Sstevel@tonic-gate 143*7c478bd9Sstevel@tonic-gateex_data.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 144*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 145*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 146*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 147*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 148*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h 149*7c478bd9Sstevel@tonic-gate 150*7c478bd9Sstevel@tonic-gateex_extern.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 151*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 152*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 153*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 154*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 155*7c478bd9Sstevel@tonic-gate ex_argv.h ex_re.h ex_temp.h ex_tty.h ex_vis.h 156*7c478bd9Sstevel@tonic-gate 157*7c478bd9Sstevel@tonic-gateex_get.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 158*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 159*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 160*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 161*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 162*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h 163*7c478bd9Sstevel@tonic-gate 164*7c478bd9Sstevel@tonic-gateex_io.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 165*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 166*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 167*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 168*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h ex_vars.h \ 169*7c478bd9Sstevel@tonic-gate ex_argv.h ex_temp.h ex_tty.h ex_vis.h 170*7c478bd9Sstevel@tonic-gate 171*7c478bd9Sstevel@tonic-gateex_put.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 172*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 173*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 174*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 175*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 176*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 177*7c478bd9Sstevel@tonic-gate 178*7c478bd9Sstevel@tonic-gateex_re.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 179*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 180*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 181*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 182*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 183*7c478bd9Sstevel@tonic-gate ex_vars.h ex_re.h 184*7c478bd9Sstevel@tonic-gate 185*7c478bd9Sstevel@tonic-gateex_set.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 186*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 187*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 188*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 189*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 190*7c478bd9Sstevel@tonic-gate ex_vars.h ex_temp.h ex_tty.h 191*7c478bd9Sstevel@tonic-gate 192*7c478bd9Sstevel@tonic-gateex_subr.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 193*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 194*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 195*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 196*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 197*7c478bd9Sstevel@tonic-gate ex_vars.h ex_re.h ex_tty.h ex_vis.h 198*7c478bd9Sstevel@tonic-gate 199*7c478bd9Sstevel@tonic-gateex_temp.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 200*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 201*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 202*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 203*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 204*7c478bd9Sstevel@tonic-gate ex_vars.h ex_temp.h ex_vis.h ex_tty.h 205*7c478bd9Sstevel@tonic-gate 206*7c478bd9Sstevel@tonic-gateex_tty.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 207*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 208*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 209*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 210*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 211*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h 212*7c478bd9Sstevel@tonic-gate 213*7c478bd9Sstevel@tonic-gateex_unix.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 214*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 215*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 216*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 217*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 218*7c478bd9Sstevel@tonic-gate ex_vars.h ex_temp.h ex_tty.h ex_vis.h 219*7c478bd9Sstevel@tonic-gate 220*7c478bd9Sstevel@tonic-gateex_v.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 221*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 222*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 223*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 224*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 225*7c478bd9Sstevel@tonic-gate ex_vars.h ex_re.h ex_tty.h ex_vis.h 226*7c478bd9Sstevel@tonic-gate 227*7c478bd9Sstevel@tonic-gateex_vadj.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 228*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 229*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 230*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 231*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 232*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 233*7c478bd9Sstevel@tonic-gate 234*7c478bd9Sstevel@tonic-gateex_vget.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 235*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 236*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 237*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 238*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 239*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 240*7c478bd9Sstevel@tonic-gate 241*7c478bd9Sstevel@tonic-gateex_vmain.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 242*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 243*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 244*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 245*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 246*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 247*7c478bd9Sstevel@tonic-gate 248*7c478bd9Sstevel@tonic-gateex_voper.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 249*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 250*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 251*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 252*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 253*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 254*7c478bd9Sstevel@tonic-gate 255*7c478bd9Sstevel@tonic-gateex_vops.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 256*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 257*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 258*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 259*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 260*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 261*7c478bd9Sstevel@tonic-gate 262*7c478bd9Sstevel@tonic-gateex_vops2.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 263*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 264*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 265*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 266*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 267*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 268*7c478bd9Sstevel@tonic-gate 269*7c478bd9Sstevel@tonic-gateex_vops3.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 270*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 271*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 272*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 273*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 274*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 275*7c478bd9Sstevel@tonic-gate 276*7c478bd9Sstevel@tonic-gateex_vput.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 277*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 278*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 279*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 280*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 281*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 282*7c478bd9Sstevel@tonic-gate 283*7c478bd9Sstevel@tonic-gateex_vwind.o: ex.h $(INC)/sys/types.h $(INC)/ctype.h \ 284*7c478bd9Sstevel@tonic-gate $(INC)/errno.h $(INC)/signal.h \ 285*7c478bd9Sstevel@tonic-gate $(INC)/setjmp.h $(INC)/sys/stat.h \ 286*7c478bd9Sstevel@tonic-gate $(INC)/termio.h $(INC)/sys/termio.h \ 287*7c478bd9Sstevel@tonic-gate $(INC)/term.h ex_tune.h \ 288*7c478bd9Sstevel@tonic-gate ex_vars.h ex_tty.h ex_vis.h 289*7c478bd9Sstevel@tonic-gate 290*7c478bd9Sstevel@tonic-gateexpreserve.o: $(INC)/stdio.h $(INC)/ctype.h \ 291*7c478bd9Sstevel@tonic-gate $(INC)/sys/types.h $(INC)/sys/stat.h \ 292*7c478bd9Sstevel@tonic-gate $(INC)/sys/dir.h $(INC)/pwd.h 293*7c478bd9Sstevel@tonic-gate $(CC) $(CFLAGS) -c -O expreserve.c 294*7c478bd9Sstevel@tonic-gate 295*7c478bd9Sstevel@tonic-gateexrecover.o: $(INC)/stdio.h ex.h $(INC)/sys/types.h \ 296*7c478bd9Sstevel@tonic-gate $(INC)/ctype.h $(INC)/errno.h \ 297*7c478bd9Sstevel@tonic-gate $(INC)/signal.h $(INC)/setjmp.h \ 298*7c478bd9Sstevel@tonic-gate $(INC)/sys/stat.h $(INC)/termio.h \ 299*7c478bd9Sstevel@tonic-gate $(INC)/sys/termio.h $(INC)/term.h ex_tune.h \ 300*7c478bd9Sstevel@tonic-gate ex_vars.h ex_temp.h ex_tty.h \ 301*7c478bd9Sstevel@tonic-gate $(INC)/sys/dir.h 302*7c478bd9Sstevel@tonic-gate $(CC) $(CFLAGS) -c -O exrecover.c 303*7c478bd9Sstevel@tonic-gate 304*7c478bd9Sstevel@tonic-gateprintf.o: $(INC)/varargs.h 305*7c478bd9Sstevel@tonic-gate 306*7c478bd9Sstevel@tonic-gateGLOBALINCS = $(INC)/ctype.h $(INC)/errno.h \ 307*7c478bd9Sstevel@tonic-gate $(INC)/pwd.h $(INC)/setjmp.h $(INC)/signal.h \ 308*7c478bd9Sstevel@tonic-gate $(INC)/stdio.h $(INC)/sys/dir.h $(INC)/sys/stat.h \ 309*7c478bd9Sstevel@tonic-gate $(INC)/sys/termio.h $(INC)/sys/types.h \ 310*7c478bd9Sstevel@tonic-gate $(INC)/term.h $(INC)/termio.h $(INC)/varargs.h 311*7c478bd9Sstevel@tonic-gate 312*7c478bd9Sstevel@tonic-gateLOCALINCS = ex.h ex_argv.h ex_re.h ex_temp.h ex_tty.h ex_tune.h ex_vars.h \ 313*7c478bd9Sstevel@tonic-gate ex_vis.h 314*7c478bd9Sstevel@tonic-gate 315*7c478bd9Sstevel@tonic-gateclean: 316*7c478bd9Sstevel@tonic-gate rm -f $(OBJECTS) 317*7c478bd9Sstevel@tonic-gate 318*7c478bd9Sstevel@tonic-gateclobber: 319*7c478bd9Sstevel@tonic-gate rm -f $(OBJECTS) $(MAINS) 320*7c478bd9Sstevel@tonic-gate 321*7c478bd9Sstevel@tonic-gateall : ALL 322*7c478bd9Sstevel@tonic-gate 323*7c478bd9Sstevel@tonic-gateinstall: ALL $(DIRS) 324*7c478bd9Sstevel@tonic-gate rm -f $(DIR)/vi ; \ 325*7c478bd9Sstevel@tonic-gate rm -f $(DIR)/view ; \ 326*7c478bd9Sstevel@tonic-gate rm -f $(DIR)/edit ; \ 327*7c478bd9Sstevel@tonic-gate rm -f $(DIR)/vedit ; \ 328*7c478bd9Sstevel@tonic-gate $(INS) -f $(DIR) -m 555 -u bin -g bin -o $(EX); 329*7c478bd9Sstevel@tonic-gate ln -f $(DIR)/$(EX) $(DIR)/vi 330*7c478bd9Sstevel@tonic-gate ln -f $(DIR)/$(EX) $(DIR)/view 331*7c478bd9Sstevel@tonic-gate ln -f $(DIR)/$(EX) $(DIR)/edit 332*7c478bd9Sstevel@tonic-gate ln -f $(DIR)/$(EX) $(DIR)/vedit 333*7c478bd9Sstevel@tonic-gate $(INS) -f $(LIBDIR) -m 555 -u bin -g bin exrecover 334*7c478bd9Sstevel@tonic-gate $(INS) -f $(LIBDIR) -m 555 -u bin -g bin expreserve 335*7c478bd9Sstevel@tonic-gate 336*7c478bd9Sstevel@tonic-gate$(DIRS): 337*7c478bd9Sstevel@tonic-gate mkdir $@ 338*7c478bd9Sstevel@tonic-gate 339*7c478bd9Sstevel@tonic-gatesize: ALL 340*7c478bd9Sstevel@tonic-gate $(SIZE) $(MAINS) 341*7c478bd9Sstevel@tonic-gate 342*7c478bd9Sstevel@tonic-gatestrip: ALL 343*7c478bd9Sstevel@tonic-gate $(STRIP) $(MAINS) 344*7c478bd9Sstevel@tonic-gate 345*7c478bd9Sstevel@tonic-gate# These targets are useful but optional 346*7c478bd9Sstevel@tonic-gate 347*7c478bd9Sstevel@tonic-gatepartslist: 348*7c478bd9Sstevel@tonic-gate @echo $(MAKEFILE) $(SOURCES) $(LOCALINCS) | tr ' ' '\012' | sort 349*7c478bd9Sstevel@tonic-gate 350*7c478bd9Sstevel@tonic-gateproductdir: 351*7c478bd9Sstevel@tonic-gate @echo $(DIR) | tr ' ' '\012' | sort 352*7c478bd9Sstevel@tonic-gate 353*7c478bd9Sstevel@tonic-gateproduct: 354*7c478bd9Sstevel@tonic-gate @echo $(MAINS) | tr ' ' '\012' | \ 355*7c478bd9Sstevel@tonic-gate sed 's;^;$(DIR)/;' 356*7c478bd9Sstevel@tonic-gate 357*7c478bd9Sstevel@tonic-gatesrcaudit: 358*7c478bd9Sstevel@tonic-gate @fileaudit $(MAKEFILE) $(LOCALINCS) $(SOURCES) $(MISC) -o $(OBJECTS) $(MAINS) 359