CFLAGS = -O 
RESTORE = sfrestore.o sfcodes.o printsf.o ../sys/wheader.o
BACKUP = sfbackup.o ../sys/sfcodes.o ../sys/printsf.o ../sys/wheader.o
NRESTORE = nsfrestore.o ../sys/sfcodes.o ../sys/printsf.o ../sys/wheader.o
NBACKUP = nsfbackup.o ../sys/sfcodes.o ../sys/printsf.o ../sys/wheader.o
WRITELABEL = writelabel.o ../sys/wheader.o ../sys/sfcodes.o
NWRITELABEL = nwritelabel.o ../sys/wheader.o ../sys/sfcodes.o
LDFLAGS = ../sys/cmix.o ../lib/genlib.a -lm 
TAPE = sfbackup sfrestore writelabel nsfrestore nsfbackup nwritelabel

all: $(TAPE)

clean:
	rm -f *.o

sfbackup:   $(BACKUP) 
	cc -o sfbackup $(BACKUP)

sfrestore:	$(RESTORE)
	cc -o sfrestore $(RESTORE)

writelabel:	$(WRITELABEL) label.h
	cc -o writelabel $(WRITELABEL)

nsfbackup:   $(NBACKUP) 
	cc -o nsfbackup $(NBACKUP)

nsfrestore:	$(NRESTORE)
	cc -o nsfrestore $(NRESTORE)

nwritelabel:	$(NWRITELABEL) nlabel.h
	cc -o nwritelabel $(NWRITELABEL)


