X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/e1f4dbcaee9ebc7fae370c358392777a9ec0e706..300a5f744ec5365ffab691a4787777cfd67a1338:/usr/src/old/dbx/Makefile diff --git a/usr/src/old/dbx/Makefile b/usr/src/old/dbx/Makefile index dc2261f516..acc290a8e3 100644 --- a/usr/src/old/dbx/Makefile +++ b/usr/src/old/dbx/Makefile @@ -1,4 +1,9 @@ -# Makefile 4.9 84/06/23 +# +# Copyright (c) 1983 Regents of the University of California. +# All rights reserved. The Berkeley software License Agreement +# specifies the terms and conditions for redistribution. +# +# @(#)Makefile 5.8 (Berkeley) %G% # # make file for debugger "dbx" # @@ -9,14 +14,22 @@ .SUFFIXES: .h .c .s .o AOUT = tdbx -DESTDIR= -DEST = ${DESTDIR}/usr/ucb/dbx +DESTDIR = +DEST = /usr/ucb/dbx -LIBRARIES = +# Install the mail address of the person maintaining dbx below +# as -DMAINTAINER. A null string disables gripes. CC = cc -CFLAGS = -g -LDFLAGS = -g +CFLAGS = '-DMAINTAINER=""' -O + +LD = cc +LDFLAGS = +LIBRARIES = + +# LD = /bin/oldld +# LDFLAGS = -X /lib/crt0.o +# LIBRARIES = -lg -lc OBJ = \ y.tab.o \ @@ -43,7 +56,6 @@ OBJ = \ pascal.o \ printsym.o \ process.o \ - re.o \ runtime.o \ scanner.o \ source.o \ @@ -58,6 +70,7 @@ HDR = \ c.h \ check.h \ coredump.h \ + debug.h \ eval.h \ fortran.h \ keywords.h \ @@ -73,7 +86,6 @@ HDR = \ pascal.h \ printsym.h \ process.h \ - re.h \ runtime.h \ scanner.h \ source.h \ @@ -88,7 +100,7 @@ SRC = \ asm.c \ events.c \ c.c \ - cerror.s \ + cerror.${MACHINE}.s \ check.c \ coredump.c \ debug.c \ @@ -98,7 +110,6 @@ SRC = \ languages.c \ library.c \ lists.c \ - machine.c \ main.c \ mappings.c \ modula-2.c \ @@ -108,13 +119,14 @@ SRC = \ pascal.c \ printsym.c \ process.c \ - re.c \ - runtime.c \ scanner.c \ source.c \ + stabstring.c \ symbols.c \ tree.c \ - ops.c + ${MACHINE}.c \ + runtime.${MACHINE}.c \ + ops.${MACHINE}.c .c.o: @echo "compiling $*.c" @@ -131,7 +143,8 @@ ${AOUT}: makedefs mkdate ${HDR} ${OBJ} @rm -f date.c @./mkdate > date.c @echo "linking" - @${CC} ${LDFLAGS} date.c ${OBJ} ${LIBRARIES} -o ${AOUT} + @${CC} ${CFLAGS} -c date.c + @${LD} ${LDFLAGS} date.o ${OBJ} ${LIBRARIES} -o ${AOUT} profile: ${HDR} ${OBJ} @rm -f date.c @@ -143,23 +156,45 @@ y.tab.c: commands.y @echo "expect 2 shift/reduce conflicts" yacc -d commands.y +cerror.s: cerror.${MACHINE}.s + @rm -f cerror.s + @ln -s cerror.${MACHINE}.s cerror.s + +machine.c: ${MACHINE}.c + @rm -f machine.c + @ln -s ${MACHINE}.c machine.c + +ops.c: ops.${MACHINE}.c + @rm -f ops.c + @ln -s ops.${MACHINE}.c ops.c + +runtime.c: runtime.${MACHINE}.c + @rm -f runtime.c + @ln -s runtime.${MACHINE}.c runtime.c + makedefs: makedefs.c library.o cerror.o - ${CC} -g makedefs.c library.o cerror.o -o makedefs + ${CC} -O makedefs.c library.o cerror.o -o makedefs mkdate: mkdate.c - ${CC} -g mkdate.c -o mkdate + ${CC} -O mkdate.c -o mkdate print: @echo "don't print it, it's too long" +depend: + # # Don't worry about the removal of header files, they're created from # the source files. # clean: - rm -f ${HDR} ${OBJ} y.tab.c y.tab.h ${AOUT} \ - mkdate mkdate.o makedefs makedefs.o date.c core mon.out prof.out + rm -f ${HDR} ${OBJ} y.tab.c y.tab.h ${AOUT} mkdate mkdate.o \ + makedefs makedefs.o date.c core mon.out prof.out make.out \ + cerror.s ops.c machine.c runtime.c + +cleandefs: + rm -f ${HDR} y.tab.h testinstall: ${AOUT} test install @@ -167,7 +202,7 @@ test: @chdir tests; make install: ${AOUT} - install ${AOUT} ${DEST} + install -s ${AOUT} ${DESTDIR}/${DEST} # # Create a tar file called "tape" containing relevant files. @@ -176,8 +211,9 @@ install: ${AOUT} TAPE = tape tape: - tar cfv ${TAPE} \ - Makefile ${SRC} makedefs.c mkdate.c tests/ pchanges ptests + @tar cf ${TAPE} \ + Makefile History version READ_ME ${SRC} \ + makedefs.c mkdate.c tests pchanges ptests # # Header dependencies are purposely incomplete since header files