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.9 (Berkeley) 09/07/88 18# 19 20DESTDIR= 21COPTS= -DSTANDALONE -I../../h -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 32 33all: ${ALL} 34 35vdformat: ${OBJS} ../srt0.o ../libsa.a 36 ld -o vdformat ${LDTOPT} ../srt0.o ${OBJS} ../libsa.a -lc 37 38clean: 39 rm -f ${OBJS} ${ALL} a.out core t.c errs 40 41../srt0.o: 42 @(cd ..; make srt0.o) 43 44../libsa.a: 45 @(cd ..; make libsa.a) 46 47install: 48 install -o bin -g bin -m 644 vdformat ${DESTDIR}/stand/vdformat 49 50depend: 51 mkdep ${COPTS} ${SRCS} 52 53tags: 54 ctags ${SRCS} 55