added depend label
[unix-history] / usr / src / old / dbx / Makefile
index d583e12..acc290a 100644 (file)
@@ -3,7 +3,7 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    5.1 (Berkeley) %G%
+#      @(#)Makefile    5.8 (Berkeley) %G%
 #
 # make file for debugger "dbx"
 #
 #
 # make file for debugger "dbx"
 #
 .SUFFIXES: .h .c .s .o
 
 AOUT   = tdbx
 .SUFFIXES: .h .c .s .o
 
 AOUT   = tdbx
+DESTDIR        =
 DEST   = /usr/ucb/dbx
 
 DEST   = /usr/ucb/dbx
 
+# Install the mail address of the person maintaining dbx below
+# as -DMAINTAINER.  A null string disables gripes.
+
 CC     = cc
 CC     = cc
-CFLAGS = '-DMAINTAINER="linton@shasta"' -g
+CFLAGS = '-DMAINTAINER=""' -O
 
 LD = cc
 
 LD = cc
-LDFLAGS        = -g
+LDFLAGS        = 
 LIBRARIES =
 
 # LD   = /bin/oldld
 LIBRARIES =
 
 # LD   = /bin/oldld
@@ -96,7 +100,7 @@ SRC = \
     asm.c \
     events.c \
     c.c \
     asm.c \
     events.c \
     c.c \
-    cerror.s \
+    cerror.${MACHINE}.s \
     check.c \
     coredump.c \
     debug.c \
     check.c \
     coredump.c \
     debug.c \
@@ -106,7 +110,6 @@ SRC = \
     languages.c \
     library.c \
     lists.c \
     languages.c \
     library.c \
     lists.c \
-    machine.c \
     main.c \
     mappings.c \
     modula-2.c \
     main.c \
     mappings.c \
     modula-2.c \
@@ -116,13 +119,14 @@ SRC = \
     pascal.c \
     printsym.c \
     process.c \
     pascal.c \
     printsym.c \
     process.c \
-    runtime.c \
     scanner.c \
     source.c \
     stabstring.c \
     symbols.c \
     tree.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"
 
 .c.o:
        @echo "compiling $*.c"
@@ -152,15 +156,33 @@ y.tab.c: commands.y
        @echo "expect 2 shift/reduce conflicts"
        yacc -d 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
 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
 
 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"
 
 
 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.
 #
 # Don't worry about the removal of header files, they're created from
 # the source files.
@@ -168,7 +190,8 @@ print:
 
 clean:
        rm -f ${HDR} ${OBJ} y.tab.c y.tab.h ${AOUT} mkdate mkdate.o \
 
 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 make.out
+           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
 
 cleandefs:
        rm -f ${HDR} y.tab.h
@@ -179,7 +202,7 @@ test:
        @chdir tests; make
 
 install: ${AOUT}
        @chdir tests; make
 
 install: ${AOUT}
-       install ${AOUT} ${DEST}
+       install -s ${AOUT} ${DESTDIR}/${DEST}
 
 #
 # Create a tar file called "tape" containing relevant files.
 
 #
 # Create a tar file called "tape" containing relevant files.