# makefile for 'display' # vix 15dec86 [stolen from 'which'] # start changing prefix = exec_prefix = ${prefix} CFLAGS = -fno-common LDFLAGS = -s CC = cc DEST_DIR = ${exec_prefix}/bin CURSES_LIBS = -lncurses MAN_DIR = ${prefix}/man/man1 MAN_SUFFIX = 1 SHAR_ARGS = -b -c -v # stop changing SHAR_SOURCES = README display.man Makefile display.c SHELL = /bin/sh all : display display : display.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ display.c $(CURSES_LIBS) install : all mv display $(DEST_DIR) ln -s $(DEST_DIR)/display $(DEST_DIR)/follow chmod 775 $(DEST_DIR)/display cp display.man $(MAN_DIR)/display.$(MAN_SUFFIX) display.shar : $(SHAR_SOURCES) shar $(SHAR_ARGS) $(SHAR_SOURCES) > $@