# Copyright (c) 1983 The Regents of the University of California.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# @(#)Makefile 5.16 (Berkeley) %G%
# The file "defs.h" is included by all.
.SUFFIXES
: .h .c .s .o
.1 .0
# CFLAGS = -g '-DMAINTAINER="linton@shasta.stanford.edu"'
LIBRARIES
= # -lPW for IRIS (System V)
@
cpp $*.s | egrep
-v
"^#" > tmp
all ${AOUT}: makedefs mkdate
${HDR} ${OBJ}
@
${CC} ${CFLAGS} -c date.c
@
${LD} ${LDFLAGS} date.o
${OBJ} ${LIBRARIES} -o
${AOUT}
@
${CC} ${LDFLAGS} -p date.c
${OBJ} ${LIBRARIES} -o
${AOUT}
@echo
"expect 2 shift/reduce conflicts"
cerror.s
: cerror.
${MACHINE}.s
@ln
-s cerror.
${MACHINE}.s cerror.s
@ln
-s
${MACHINE}.c machine.c
@ln
-s ops.
${MACHINE}.c ops.c
runtime.c
: runtime.
${MACHINE}.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} -g
${CFLAGS} mkdate.c
-o mkdate
@echo
"don't print it, it's too long"
# Don't worry about the removal of header files, they're created from
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 date.o
testinstall
: ${AOUT} test install
install -s
-o bin
-g bin
-m
755 ${AOUT} ${DESTDIR}${DEST}
install -c
-o bin
-g bin
-m
444 dbx
.0 ${DESTDIR}/usr
/man
/cat1
# Create a tar file called "tape" containing relevant files.
@
tar c
${TAPE} Makefile History READ_ME
${SRC} \
makedefs.c mkdate.c tests pc0mods dbx
.1 newdbx
.1 dbxstab
.5
# without tests subdirectory
@
tar c
${TAPE} Makefile History READ_ME
${SRC} \
makedefs.c mkdate.c dbx
.1 newdbx
.1 dbxstab
.5
# Header dependencies are purposely incomplete since header files
# are "written" every time the accompanying source file changes even if
# the resulting contents of the header don't change. The alternative is
# to force a "makedefs" to be invoked for every header file each time dbx
# Also, there should be a dependency of scanner.o and keywords.o on y.tab.h
# but misfortunately silly make does a "makedefs y.tab.c y.tab.h" which
symbols.o tree.o
check.o eval.o events.o
: operators.h