# # # REMOTE=-DREMOTE # -DREMOTE use remote tape SWAP=-DSWAP # Swap for Motorola SWAB=-DSWAB # Byte swap everything off tapedrive DEBUG= # debug picked up by "make debug" CFLAGS= $(SWAP) $(REMOTE) $(SWAB) $(DEBUG) LFLAGS= # LIBS= -lrmt # remote magtape library OWNER=tar # user for remote tape access MODE=4755 BIN=vmsbackup BINDIR=/usr/local/bin MANSEC=l MANDIR=/usr/man/man$(MANSEC) # vmsbackup: vmsbackup.o getopt.o match.o cc $(CFLAGS) $(LFLAGS) -o $(BIN) \ vmsbackup.o match.o getopt.o $(LIBS) debug: make BIN=vmsbackupdbg DEBUG=-DDEBUG install: install -m $(MODE) -o $(OWNER) -s vmsbackup $(BINDIR) cp vmsbackup.1 $(MANDIR)/vmsbackup.$(MANSEC) clean: rm -f vmsbackup *.o core shar: shar -a README vmsbackup.1 Makefile vmsbackup.c match.c \ > vmsbackup.shar