1# 2# Copyright (c) 1987 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 1.11 (Berkeley) 06/22/90 18# 19 20DESTDIR= 21COPTS= -DSTANDALONE -I../../sys -I../.. 22CFLAGS= -O ${COPTS} 23RELOC= 800 24LDTOPT= -T ${RELOC} -e _entry -x 25SRCS= cmd.c cons.c config.c correct.c delete.c disklabel.c exercise.c help.c \ 26 format.c info.c io.c list.c maps.c proc_cmd.c profile.c relocate.c \ 27 reset.c smd.c smd_e.c start.c status.c util.c vdfmt.c verify.c 28OBJS= cmd.o cons.o config.o correct.o delete.o disklabel.o exercise.o help.o \ 29 format.o info.o io.o list.o maps.o proc_cmd.o profile.o relocate.o \ 30 reset.o smd.o smd_e.o start.o status.o util.o vdfmt.o verify.o 31ALL= vdformat 32MAN= vdformat.0 33 34all: ${ALL} 35 36vdformat: ${OBJS} ../srt0.o ../libsa.a 37 ld -o vdformat ${LDTOPT} ../srt0.o ${OBJS} ../libsa.a -lc 38 39clean: 40 rm -f ${OBJS} ${ALL} a.out core t.c errs 41 42cleandir: clean 43 rm -f ${MAN} tags .depend 44 45../srt0.o: 46 @(cd ..; make srt0.o) 47 48../libsa.a: 49 @(cd ..; make libsa.a) 50 51install: ${MAN} 52 install -o bin -g bin -m 644 vdformat ${DESTDIR}/stand/vdformat 53 install -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8/tahoe 54 55depend: ${SRCS} 56 mkdep ${COPTS} ${SRCS} 57 58tags: ${SRCS} 59 ctags ${SRCS} 60