# # Makefile for sunos, gcc, glibc # SHELL = /bin/sh CC = gcc LINK = gcc INCS = -I- -I. -I/usr/local/include \ -I/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.6.3/include CCFLAGS = -Wall -nostdinc $(INCS) -O -target $(TARGET_ARCH:-%=%) \ -c -D_BSD_ -D__USE_POSIX -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 all: $(EXEC) $(EXEC): $(OBJS) $(LINK) $(LDFLAGS) -o $(EXEC) $(OBJS) $(LIBS) install: all uninstall ln $(EXEC) $(INSTALL_DIR) uninstall: rm -f $(INSTALL_DIR)/$(EXEC) $(OBJS): $(CC) $(CCFLAGS) $< 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