new version from Chris Torek
[unix-history] / usr / src / old / adb / adb.vax / Makefile
CommitLineData
217a98b4 1#
2222b6d9
KB
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
217a98b4 4#
2222b6d9
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 5.2 (Berkeley) %G%
f02effa0 18#
c39bf835 19LIBC= /lib/libc.a
2222b6d9
KB
20AS= ../../as/as.vax
21VPATH= ../adb
22CFLAGS= -I. -I../adb -I${AS} -O
23SRCS= access.c command.c expr.c format.c kstack.c machdep.c main.c \
24 opset.c optab.c output.c pcs.c print.c rodata.c setup.c strings.c \
25 sym.c
26OBJS= access.o command.o expr.o format.o kstack.o machdep.o main.o \
27 opset.o optab.o output.o pcs.o print.o rodata.o setup.o strings.o \
28 sym.o
29MAN= adb.0
f02effa0 30
c39bf835 31all: adb
217a98b4 32
2222b6d9 33adb: ${OBJS} ${LIBC}
c39bf835 34 ${CC} -o $@ ${OBJS}
217a98b4 35
2222b6d9
KB
36optab.o rodata.o strings.o:
37 ${CC} ${CFLAGS} -c -R $<
c39bf835
KB
38
39instrs.adb: ${AS}/instrs
40 (echo FLAVOR ADB; cat ${AS}/instrs) | awk -f ${AS}/instrs > instrs.adb
41
2222b6d9
KB
42clean:
43 rm -f ${OBJS} core adb instrs.adb
44
45cleandir: clean
46 rm -f ${MAN} tags .depend
c39bf835 47
2222b6d9 48depend: ${SRCS}
c39bf835
KB
49 mkdep ${CFLAGS} -I. -I${AS} ${SRCS}
50
2222b6d9 51install: ${MAN}
c39bf835 52 install -s -o bin -g bin -m 755 adb ${DESTDIR}/bin/adb
2222b6d9 53 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
c39bf835 54
2222b6d9 55lint: ${SRCS}
c39bf835
KB
56 lint ${CFLAGS} ${SRCS}
57
2222b6d9 58tags: ${SRCS}
c39bf835 59 ctags ${SRCS}