head     1.4;
access   ;
symbols  ;
locks    bin:1.4;
comment  @@;


1.4
date     91.03.14.20.33.00;  author bin;  state Exp;
branches ;
next	1.3;

1.3
date     91.03.13.21.04.34;  author bin;  state Exp;
branches ;
next	1.2;

1.2
date     91.03.13.15.38.31;  author bin;  state Exp;
branches ;
next	1.1;

1.1
date     91.02.08.15.48.12;  author bin;  state Exp;
branches ;
next	;


desc
@initial version provided by steve ness
@


1.4
log
@bob h added chmod chown ...
@
text
@# /usr/src/cmd/dump/Makefile 2/20/91

CFLAGS = -O
DESTDIR= /f1/bin/

EXE=\
	dump\
	dumpdate\
	dumpdir\
	restor

OBJ=\
	dump.o\
	dump.o\
	dump.o\
	dump.o\
	dump.o

# Primary target.
all:	$(EXE)
	: all done

# Executables.
dump:	dump.o discbuf.o
	$(CC) $(CFLAGS) -o $(DESTDIR)$@@ $<
	su root chown bin $(DESTDIR)$@@
	su root chgrp bin $(DESTDIR)$@@
	su root chmod 511 $(DESTDIR)$@@

dumpdate: dumpdate.o
	$(CC) $(CFLAGS) -o $(DESTDIR)$@@ $<
	su root chown bin $(DESTDIR)$@@
	su root chgrp bin $(DESTDIR)$@@
	su root chmod 511 $(DESTDIR)$@@

dumpdir: dumpdir.o
	$(CC) $(CFLAGS) -o $(DESTDIR)$@@ $<
	su root chown bin $(DESTDIR)$@@
	su root chgrp bin $(DESTDIR)$@@
	su root chmod 511 $(DESTDIR)$@@

restor:	restor.o discbuf.o
	$(CC) $(CFLAGS) -o $(DESTDIR)$@@ $<
	su root chown bin $(DESTDIR)$@@
	su root chgrp bin $(DESTDIR)$@@
	su root chmod 511 $(DESTDIR)$@@

# Secondary targets.
discbuf.o:	discbuf.h discbuf.c
dumpdate.o:	dumptape.h dumpdate.c
dumpdir.o:	dumptape.h dumpdir.c
dump.o:		dumptape.h discbuf.h dump.c
restor.o:	dumptape.h discbuf.h restor.c

# Etc.
clean:
	rm $(OBJ)

# end of /usr/src/cmd/dump/Makefile
@


1.3
log
@bob h added destdir
@
text
@d26 4
d32 4
d38 4
d44 3
@


1.2
log
@updated version provided by stevesf for v311
@
text
@d4 1
d25 1
a25 1
	$(CC) $(CFLAGS) -o $@@ $<
d27 1
a27 1
	$(CC) $(CFLAGS) -o $@@ $<
d29 1
a29 1
	$(CC) $(CFLAGS) -o $@@ $<
d31 1
a31 1
	$(CC) $(CFLAGS) -o $@@ $<
@


1.1
log
@Initial revision
@
text
@d1 1
a1 3
SDIR =.
CFLAGS = -O -I$(SDIR)
CC = exec /bin/cc
d3 1
a3 2
all: dumpdate dumpdir dump restor
	echo done
d5 5
a9 2
dumpdate: dumpdate.c dumptape.h
	$(CC) $(CFLAGS) -o dumpdate dumpdate.c
d11 6
a16 2
dumpdir: dumpdir.c dumptape.h
	$(CC) $(CFLAGS) -o dumpdir dumpdir.c
d18 3
a20 2
dump: dump.c dumptape.h discbuf.h discbuf.o
	$(CC) $(CFLAGS) -o dump dump.c discbuf.o
d22 9
a30 2
restor: restor.c dumptape.h discbuf.h discbuf.o
	$(CC) $(CFLAGS) -o restor restor.c discbuf.o
d32 6
a37 1
discbuf.o: discbuf.h discbuf.c
d39 3
a41 1
dumpdate.o: dumptape.h dumpdate.c
d43 1
a43 5
dumpdir.o: dumptape.h dumpdir.c

dump.o: dumptape.h discbuf.h dump.c

restor.o: dumptape.h discbuf.h restor.c
@
