1# 2# Copyright (c) 1988 The Regents of the University of California. 3# All rights reserved. 4# 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.4 (Berkeley) 01/16/89 18# 19CFLAGS= -I../adb -I. -O 20VPATH= ../adb 21LIBC= /lib/libc.a 22SRCS= access.c command.c expr.c format.c main.c output.c pcs.c print.c \ 23 setup.c strings.c sym.c kstack.c machdep.c opset.c optab.c rodata.c 24OBJS= access.o command.o expr.o format.o main.o output.o pcs.o print.o \ 25 setup.o strings.o sym.o kstack.o machdep.o opset.o optab.o rodata.o 26MAN= adb.0 27 28all: adb 29 30adb: ${OBJS} ${LIBC} 31 ${CC} -o $@ ${OBJS} 32 33optab.o rodata.o strings.o: 34 ${CC} ${CFLAGS} -c -R $< 35 36clean: 37 rm -f ${OBJS} core adb 38 39cleandir: clean 40 rm -f ${MAN} tags .depend 41 42depend: ${SRCS} 43 mkdep ${CFLAGS} ${SRCS} 44 45install: ${MAN} 46 install -s -o bin -g bin -m 755 adb ${DESTDIR}/bin/adb 47 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 48 49lint: ${SRCS} 50 lint ${CFLAGS} ${SRCS} 51 52tags: ${SRCS} 53 ctags ${SRCS} 54