SHELL = /bin/sh CC = cc LINK = ld -s CCOPTS = -Aa -c -O -D_INCLUDE_POSIX2_SOURCE -D_INCLUDE_POSIX_SOURCE \ -DHAS_GLOB LDOPTS = /lib/crt0.o LIBS = -lc -ldld INSTALL_DIR = $(HOME)/usr/bin EXEC = she OBJS = errors.o she.o prefs.o obito.o rdir.o shield.o HDRS = errors.h she.h prefs.h rdir.h shield.h version.h SRCS = $(OBJS:.o=.c) MAKEFILE = Makefile FILES = Makefile.hpux Makefile.sunos all: $(EXEC) $(EXEC): $(OBJS) $(LINK) -o $(EXEC) $(OBJS) $(LIBS) install: all uninstall ln $(EXEC) $(INSTALL_DIR) uninstall: rm -f $(INSTALL_DIR)/$(EXEC) $(OBJS): $(MAKEFILE) $(CC) $(CCOPTS) $< tags: ctags -tw $(SRCS) backup: @mkdir She @ln $(SRCS) $(HDRS) $(MAKEFILE) $(FILES) She @gtar cvzf she.tgz She @rm -rf She @echo Created she.tgz print: @sh -c 'for file in $(SRCS) $(HDRS); \ do \ pr -e4 -t $$file; \ echo \\f; \ done' clean: rm -f $(OBJS) core tags new: rm -f $(EXECS) make all errors.o: errors.h prefs.h obito.o: errors.h prefs.o: errors.h prefs.h version.h she.h rdir.o: errors.h rdir.h she.h she.o: errors.h prefs.h rdir.h she.h shield.h shield.o: shield.h