CFLAGS=-DMWC -O

LIBS=

SRC1=	tar.c ctar.c createf.c scandir.c ndir.c ftw.c getopt.c

SRC2=	detar.c dodetar.c misc.c wildcard.c glob.c tartape.c

INC=	ndir.h ftw.h detar.h tapeio.h

OBJ=	tar.o ctar.o createf.o scandir.o ndir.o\
	ftw.o detar.o dodetar.o misc.o wildcard.o\
	glob.o tartape.o getopt.o

tar.ttp: $(OBJ)
	cc -s -o tar.ttp $(OBJ) $(LIBS)

arc:
	rm tar.arc
	arc -a tar.arc $(SRC1)
	arc -a tar.arc $(SRC2)
	arc -a tar.arc $(INC) makefile
	arc -a tar.arc mt.c
	arc -a tar.arc tapedvr.s
	arc -a tar.arc tar.ttp tapedvr2.prg mt.ttp
