merge in latest Linton version
[unix-history] / usr / src / old / dbx / Makefile
index 5d2f479..522207e 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.4 (Berkeley) %G%
+#      @(#)Makefile    5.11 (Berkeley) %G%
 #
 # make file for debugger "dbx"
 #
 #
 # make file for debugger "dbx"
 #
 .SUFFIXES:
 .SUFFIXES: .h .c .s .o
 
 .SUFFIXES:
 .SUFFIXES: .h .c .s .o
 
-#MACHINE       = vax
-MACHINE        = tahoe
 AOUT   = tdbx
 DESTDIR        =
 DEST   = /usr/ucb/dbx
 
 AOUT   = tdbx
 DESTDIR        =
 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=""' -O
+AS     = as
+#
+# if you want gripes
+# CFLAGS = -g '-DMAINTAINER="linton@shasta.stanford.edu"'
+#
+CFLAGS = -O # -g
 
 LD = cc
 
 LD = cc
-LDFLAGS        = 
-LIBRARIES =
-
-# LD   = /bin/oldld
-# LDFLAGS      = -X /lib/crt0.o
-# LIBRARIES = -lg -lc
+LDFLAGS        = # -g
+LIBRARIES = # -lPW for IRIS (System V)
 
 OBJ = \
     y.tab.o \
 
 OBJ = \
     y.tab.o \
@@ -136,7 +132,10 @@ SRC = \
 
 .s.o:
        @echo "assembling $*.s"
 
 .s.o:
        @echo "assembling $*.s"
-       @${CC}  -c $*.s
+       @rm -f tmp
+       @/lib/cpp $*.s | grep -v "^#" > tmp
+       @${AS} -o $*.o tmp
+       @rm -f tmp
 
 .c.h:
        ./makedefs -f $*.c $*.h
 
 .c.h:
        ./makedefs -f $*.c $*.h
@@ -175,14 +174,16 @@ runtime.c: runtime.${MACHINE}.c
        @ln -s runtime.${MACHINE}.c runtime.c
 
 makedefs: makedefs.c library.o cerror.o
        @ln -s runtime.${MACHINE}.c runtime.c
 
 makedefs: makedefs.c library.o cerror.o
-       ${CC} -O makedefs.c library.o cerror.o -o makedefs
+       ${CC} -g makedefs.c library.o cerror.o -o makedefs
 
 mkdate: mkdate.c
 
 mkdate: mkdate.c
-       ${CC} -O mkdate.c -o mkdate
+       ${CC} -g ${CFLAGS} 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.
@@ -191,7 +192,8 @@ print:
 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 \
 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 \
-           cerror.s ops.c machine.c
+           cerror.s ops.c machine.c runtime.c date.o
+       @chdir tests; make clean
 
 cleandefs:
        rm -f ${HDR} y.tab.h
 
 cleandefs:
        rm -f ${HDR} y.tab.h
@@ -199,21 +201,27 @@ cleandefs:
 testinstall: ${AOUT} test install
 
 test:
 testinstall: ${AOUT} test install
 
 test:
-       @chdir tests; make
+       @cd tests; make
 
 install: ${AOUT}
 
 install: ${AOUT}
-       install -s ${AOUT} ${DESTDIR}/${DEST}
+       install -s ${AOUT} ${DESTDIR}${DEST}
 
 #
 # Create a tar file called "tape" containing relevant files.
 #
 
 
 #
 # Create a tar file called "tape" containing relevant files.
 #
 
-TAPE = tape
+TAPE = tape
 
 tape:
 
 tape:
-       @tar cf ${TAPE} \
-           Makefile History version READ_ME ${SRC} \
-           makedefs.c mkdate.c tests pchanges ptests
+       @tar c${TAPE} Makefile History READ_ME ${SRC} \
+           makedefs.c mkdate.c tests pc0mods dbx.1 newdbx.1 dbxstab.5
+
+#
+# without tests subdirectory
+#
+srconlytape:
+       @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
 
 #
 # Header dependencies are purposely incomplete since header files