BSD 2 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 19 Apr 1979 06:25:26 +0000 (22:25 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 19 Apr 1979 06:25:26 +0000 (22:25 -0800)
Work on file src/csh/makefile

Synthesized-from: 2bsd

src/csh/makefile [new file with mode: 0644]

diff --git a/src/csh/makefile b/src/csh/makefile
new file mode 100644 (file)
index 0000000..ae663b4
--- /dev/null
@@ -0,0 +1,65 @@
+#
+# Skeleton for version 7
+#
+BINDIR=/bin
+CFLAGS=        -O -Ddebug -DTELL
+XSTR=  /usr/ucb/xstr
+ED=    -ed
+AS=    -as
+RM=    -rm
+CXREF= /usr/ucb/cxref
+
+#
+# strings.o must be last in OBJS since it can change when previous files compile
+#
+OBJS=sh.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.func.o sh.glob.o sh.hist.o \
+       sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.sem.o sh.set.o \
+       sh.wait.o alloc.o sh.init.o printf.o getpwent.o getpwnam.o \
+       strings.o
+
+#
+# Special massaging of C files for sharing of strings
+#
+.c.o:
+       ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
+       ${CC} -c ${CFLAGS} x.c 
+       mv x.o $*.o
+
+a.out: ${OBJS} sh.local.h
+       ${CC} -n ${OBJS}
+
+#
+# strings.o and sh.init.o are specially processed to be shared
+#
+strings.o: strings
+       ${XSTR}
+       ${CC} -S xs.c
+       ${ED} - <:rofix xs.s
+       ${AS} -o strings.o xs.s
+       ${RM} xs.s
+
+sh.init.o:
+       ${CC} -E ${CFLAGS} sh.init.c | ${XSTR} -c -
+       ${CC} ${CFLAGS} -S x.c
+       ${ED} - <:rofix x.s
+       ${AS} -o sh.init.o x.s
+       ${RM} x.s
+       
+lint:
+       lint sh*.h sh*.c
+
+print:
+       @pr READ_ME
+       @pr makefile makefile.*
+       @(size -l a.out; size *.o) | pr -h SIZES
+       @${CXREF} sh*.c | pr -h XREF
+       @ls -l | pr 
+       @pr sh*.h [a-rt-z]*.h sh*.c alloc.c
+
+install: a.out sh.local.h
+       ${RM} ${BINDIR}/csh
+       cp a.out ${BINDIR}/csh
+
+clean:
+       ${RM} -f a.out strings x.c xs.c
+       ${RM} -f *.o