date and time created 80/10/09 23:58:44 by bill
authorBill Joy <bill@ucbvax.Berkeley.EDU>
Fri, 10 Oct 1980 15:58:44 +0000 (07:58 -0800)
committerBill Joy <bill@ucbvax.Berkeley.EDU>
Fri, 10 Oct 1980 15:58:44 +0000 (07:58 -0800)
SCCS-vsn: old/sdb/Makefile 4.1

usr/src/old/sdb/Makefile [new file with mode: 0644]

diff --git a/usr/src/old/sdb/Makefile b/usr/src/old/sdb/Makefile
new file mode 100644 (file)
index 0000000..598bee6
--- /dev/null
@@ -0,0 +1,57 @@
+#
+#      sdb     Makefile        4.1     %G%
+#
+# Conditional compilation flags:
+#      STD - Distribution systems UNIX/32V, VM/UNIX 2.n
+#      VMUNIX - virtual memory system - keep namelist in VM.
+#      VFORK - Use vfork call of VM/UNIX Berkeley version
+#      FLEXNAMES - New a.out format with string table (VMUNIX Version 4)
+#
+# The files old.c and old.h contain routines and definitions peculiar
+# to old versions of the system.
+#
+CFLAGS=        -R -DVMUNIX -DVFORK -DFLEXNAMES -g
+
+SRCS=  access.c decode.c display.c docomm.c fio.c main.c message.c \
+       old.c opset.c optab.c pcs.c prvar.c re.c runpcs.c \
+       setup.c sub.c symt.c udef.c version.c xeq.c
+OBJS=  access.o decode.o display.o docomm.o fio.o main.o message.o \
+       old.o opset.o optab.o pcs.o prvar.o re.o runpcs.o \
+       setup.o sub.o symt.o udef.o version.o xeq.o
+HDRS=  cdefs.h defs.h head.h mac.h machine.h mode.h old.h
+
+sdb: sources ${OBJS}
+       cc -o sdb *.o
+
+install:
+       cp sdb sdb.temp
+       install -s sdb $(DESTDIR)/usr/bin
+       mv sdb.temp sdb
+
+clean:
+       rm -f *.o sdb
+
+print:
+       ls -l Makefile | pr
+       pr -f *.h *.c
+
+sources: ${SRCS} ${HDRS}
+${SRCS} ${HDRS}:
+       sccs get $@
+
+depend:
+       /bin/grep '^#[  ]*include' ${SRCS} \
+               | sed '/<.*>/d' \
+               | sed 's/:[^"]*"\([^"]*\)".*/: \1/' \
+               | sed 's/\.c/.o/' >>makedep
+       echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
+       echo '$$r makedep' >>eddep
+       echo 'w' >>eddep
+       cp Makefile Makefile.bak
+       ed - Makefile < eddep
+       rm eddep makedep
+       echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
+       echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
+       echo '# see make depend above' >> Makefile
+
+# DO NOT DELETE THIS LINE -- make depend uses it