# # Makefile for linux, gcc # SHELL = /bin/sh CC = gcc LINK = gcc INCS = -I. -I/usr/local/include CFLAGS = -Wall $(INCS) -O \ -c -DHAS_GLOB LDFLAGS = -L/usr/local/lib -lc LIBS = 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 echo: echo $(OBJS) all: $(EXEC) $(EXEC): $(OBJS) $(LINK) $(LDFLAGS) -o $(EXEC) $(OBJS) $(LIBS) install: all uninstall ln $(EXEC) $(INSTALL_DIR) uninstall: rm -f $(INSTALL_DIR)/$(EXEC) .SUFFIXES: .o .c.o: $(CC) -c $(CFLAGS) $< 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 \ /usr/5bin/pr -e4 -t $$file; \ /usr/5bin/echo \\f; \ done' clean: rm -f $(OBJS) core tags new: rm -f $(EXEC) $(OBJS) 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