1# @(#)makefile 1.1 2# 3# Makefile for Korn Shell Library 4# 5D = -DKSHELL $(BSD) $(NAME_SCOPE) $(MULTIBYTE) 6 7CC_CMD = $(CC) $D -O -c 8 9ARK = lib.a 10OFILES = adjust.o \ 11arith.o \ 12assign.o \ 13assnum.o \ 14cannon.o \ 15chkid.o \ 16convert.o \ 17findnod.o \ 18gettree.o \ 19gmatch.o \ 20growaray.o \ 21gsort.o \ 22linknod.o \ 23namscan.o \ 24rjust.o \ 25tilde.o \ 26unassign.o \ 27utos.o \ 28valup.o 29 30 31all: $(ARK) 32 33ucb: $(ARK) $(OFILES) 34 ranlib $(ARK) 35 36$(ARK): $(OFILES) 37 ar r $(ARK) $(OFILES) 38 39clean: 40 -/bin/rm -f *.o 41 42clobber: clean 43 -rm $(ARK) 44print: 45 echo $(OFILES) 46 47######## 48# 49# All dependencies and rules not explicitly stated 50# (including header and nested header dependencies) 51# 52######## 53 54adjust.o: adjust.c 55adjust.o: flags.h 56adjust.o: name.h 57 $(CC_CMD) adjust.c 58 59arith.o: arith.c 60arith.o: flags.h 61arith.o: name.h 62arith.o: shtype.h 63 $(CC_CMD) arith.c 64 65assign.o: assign.c 66assign.o: flags.h 67assign.o: name.h 68assign.o: national.h 69 $(CC_CMD) assign.c 70 71assnum.o: assnum.c 72assnum.o: flags.h 73assnum.o: name.h 74 $(CC_CMD) assnum.c 75 76cannon.o: cannon.c 77 $(CC_CMD) cannon.c 78 79chkid.o: chkid.c 80chkid.o: shtype.h 81 $(CC_CMD) chkid.c 82 83convert.o: shtype.h 84convert.o: convert.c 85 $(CC_CMD) convert.c 86 87findnod.o: findnod.c 88findnod.o: flags.h 89findnod.o: name.h 90 $(CC_CMD) findnod.c 91 92gettree.o: flags.h 93gettree.o: gettree.c 94gettree.o: name.h 95 $(CC_CMD) gettree.c 96 97gmatch.o: gmatch.c 98 $(CC_CMD) gmatch.c 99 100growaray.o: flags.h 101growaray.o: growaray.c 102growaray.o: name.h 103 $(CC_CMD) growaray.c 104 105gsort.o: gsort.c 106gsort.o: national.h 107 $(CC_CMD) gsort.c 108 109linknod.o: flags.h 110linknod.o: linknod.c 111linknod.o: name.h 112 $(CC_CMD) linknod.c 113 114namscan.o: name.h 115namscan.o: namscan.c 116 $(CC_CMD) namscan.c 117 118rjust.o: rjust.c 119rjust.o: shtype.h 120 $(CC_CMD) rjust.c 121 122tilde.o: builtins.h 123tilde.o: flags.h 124tilde.o: name.h 125tilde.o: tilde.c 126 $(CC_CMD) tilde.c 127 128unassign.o: flags.h 129unassign.o: name.h 130unassign.o: unassign.c 131 $(CC_CMD) unassign.c 132 133utos.o: utos.c 134 $(CC_CMD) utos.c 135 136valup.o: flags.h 137valup.o: name.h 138valup.o: valup.c 139 $(CC_CMD) valup.c 140 141xformx.o: flags.h 142xformx.o: name.h 143xformx.o: xformx.c 144 $(CC_CMD) xformx.c 145