--- Imakefile.orig Sat Apr 21 01:01:08 2001 +++ Imakefile Sun Nov 4 07:31:58 2001 @@ -15,12 +15,14 @@ /* * Directories. */ +/* Installation prefix */ +PREFIX ?= /usr/local /* Directory for server. */ -SERVER_BINDIR = /usr/local/sbin +SERVER_BINDIR = ${PREFIX}/sbin /* Directory for clients. */ -BINDIR = /usr/local/bin +BINDIR = ${PREFIX}/bin /* Select one of them. * If you want to use on-line manual written in Japanese, use DOCDIR_JP. */ @@ -49,6 +51,7 @@ * Select one of them, if you don't like these default values. */ /* MAIL_SPOOL = -DMAIL_SPOOL=\"/usr/mail/\" */ /* MAIL_SPOOL = -DMAIL_SPOOL=\"/usr/spool/mail/\" */ +MAIL_SPOOL = -DMAIL_SPOOL=\"/var/mail/\" /* Syslog: Comment following lines, if you don't want to use syslog. */ SYSLOG = -DSYSLOG @@ -65,9 +68,9 @@ UNIT_TIME = 180 /* XPM: Uncomment following lines, if you want to use pixmap. */ -/*XPM_DEFS = -DUSE_XPM*/ -/*XPM_LIBS = str_to_pixmap.o locate_pixmap.o*/ -/*XPM_FLAGS = -lXpm*/ +XPM_DEFS = -DUSE_XPM +XPM_LIBS = str_to_pixmap.o locate_pixmap.o +XPM_FLAGS = -lXpm /* * Other configurations. @@ -90,15 +93,15 @@ * USE_VARARGS Use UNIX's native routines. */ -/* SPECIAL_DEFS = */ +SPECIAL_DEFS =-DUSE_STDARG -DUSE_POSIX_WAIT /* SPECIAL_LIBS = */ /* * Files. */ -/* TARGETS = $(SERVER) $(CLIENTS) */ -TARGETS = $(CLIENTS) +TARGETS = $(SERVER) $(CLIENTS) +/* TARGETS = $(CLIENTS) */ SERVER = youbind CLIENTS = sendto xyoubin youbin @@ -156,24 +159,26 @@ all:: $(TARGETS) -/* SingleProgramTarget(youbind,$(YOUBIND_OBJS),$(LDFLAGS),) */ -/* SingleProgramTarget(sendto,$(SENDTO_OBJS),,) */ +SingleProgramTarget(youbind,$(YOUBIND_OBJS),$(LDFLAGS),) +SingleProgramTarget(sendto,$(SENDTO_OBJS),,) SingleProgramTarget(xyoubin,$(XYOUBIN_OBJS),$(EXT_LIBS),) SingleProgramTarget(youbin,$(YOUBIN_OBJS),,) -/* InstallProgram(youbind,$(SERVER_BINDIR)) */ -/* InstallProgram(sendto,$(BINDIR)) */ +InstallProgram(youbind,$(SERVER_BINDIR)) +InstallProgram(sendto,$(BINDIR)) InstallProgram(xyoubin,$(BINDIR)) InstallProgramWithFlags(youbin,$(BINDIR),$(INSTUIDFLAGS)) /* InstallAppDefaults(XYoubin) */ +/* install.man:: csh -c "cp $(MANSRC_DIR)/*.man ." InstallManPage(youbin,$(MANDIR)) InstallManPage(youbin_sub,$(MANDIR)) InstallManPage(youbind,$(MANDIR)) +*/ DependTarget() LintTarget()