# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $

SHELL=/bin/sh
MAKESHELL=/bin/sh

TOP = .
CWD = .
CONFIGSRC = /usr/src/athena/config
DESTDIR=

IRULESRC = $(CONFIGSRC)

IMAKE= imake
IFLAGS= -I$(IRULESRC) $(OTHER_IFLAGS) -DTOPDIR=/usr/src/athena
XIFLAGS= -I$(ATHXLIBDIR)/X11/config -DUseInstalled

ICONFIGFILE = ${IRULESRC}/Imake.tmpl ${IRULESRC}/Imake.rules 	${IRULESRC}/site.def Imakefile

MKDIRHIER= sh $(IRULESRC)/mkdirhier.sh

ATHVERS = ${IRULESRC}/update.conf

ATHBASEDIR=/usr/athena

ATHLIBDIR=$(ATHBASEDIR)/lib
ATHBINDIR=$(ATHBASEDIR)/bin
ATHINCDIR=$(ATHBASEDIR)/include
ATHETCDIR=$(ATHBASEDIR)/etc
ATHCONFDIR=/etc/athena
ATHMANDIR=$(ATHBASEDIR)/man
ATHRBINDIR=/bin/athena
ATHRETCDIR=/etc/athena

ATHNEWDIR=$(ATHBINDIR)

ATHXAPPDIR=/usr/athena/lib/X11/app-defaults
ATHXBITDIR=/usr/athena/lib/X11/bitmaps
ATHXINCDIR=/usr/athena/include
ATHXLIBDIR=/usr/athena/lib

AFSDIR=/mit/afsuser/@sys

LINTCFLAG=-o
LINTFLAGS=$(DEFINES) -I/usr/athena/include

INSTALL=install -c
RANLIB=ranlib
CC=cc
LD=cc
AS=as
RM=rm -f

ETCMD=compile_et
SSCMD=mk_cmds

CDEBUG=-O

CFLAGS=$(CDEBUG)  $(DEFINES) -I/usr/athena/include
LDFLAGS= $(LDDEFS)
LDPATH=-L$(ATHLIBDIR)
LDLIBS=

all::
install:: install_dirs
install_dirs::
install::
install.man::

clean::
depend::

FRC::

###########################################################################
# start of Imakefile
###########################################################################

# Based on an Imakefile from:
# Andreas Stolcke
# International Computer Science Institute, Berkeley.
# With help from:
# George Lindholm, Jonathan I. Kamens, Braham Levy.

# o Define FORKRETURNSSHORT/FORKRETURNSLONG/FORKRETURNSPID_T if your
#   fork(2) returns short/long/pid_t not int.
# o Define USEFLOCK or USELOCKF to use flock(2) or lockf(3) to lock files,
#   rather than fcntl(2).
# o Define USELSEEK to use lseek(2) to move to the end of the file, rather
#   than fseek(3).
# o Define USERENAME to use rename(2) to rename file names (otherwise
#   un/link(2)).
# o Define USEGETHOSTNAME or USEUNAME (or neither if you don't have
#   gethostname(2) or uname(2)) to get the name of your system.
# o Define USEGETPWUID to use getpwuid(3) and getuid(2) to get the user
#   name and home directory on your system.  Note that if you want to use
#   this method to get the user's home directory, but another method to get
#   the user name, this symbol must still be defined.
# o Define USEGETLOGIN to use getlogin(3) to get the user name (note that
#   this may not work if xalarm is invoked from a pseudo terminal).
# o Define USECUSERID to use cuserid(3) to get the user name.

MACH_DEFS=	-DUSEFLOCK -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID	-DUSEGETLOGIN

DEFINES = $(SIGNAL_DEFINES) $(MACH_DEFS)

OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o
SRCS = alarm.c when.c warnings.c times.c dates.c file.c fns.c xalarm.c

MADE = test -f

LOCAL_LIBRARIES = XawClientLibs

AllTarget (.config)

depend:: fns.h

ComplexProgramTarget (xalarm)

InstallAppDefaults (XAlarm)
InstallMultipleFlags (xmemo xfortune xyow, $(BINDIR), $(INSTBINFLAGS))
InstallManPage (xmemo, $(MANDIR))
InstallManPage (xfortune, $(MANDIR))
InstallManPage (xyow, $(MANDIR))

includes:: fns.h

fns.h:
	@./config.1st -quick fortune yow

xmemo.man xyow.man xfortune.man:
	echo ".so man"`echo ManSuffix`"/xalarm."`echo ManSuffix` > $@

xfortune::

xyow::

clean::
	$(RM) xfortune xyow xmemo.man xyow.man xfortune.man fns.h .config

config::
	@./config.1st -quick fortune yow
	@xrdb -merge XAlarm.ad
	@xrdb -merge XAlarm.ad+

.config::
	@-$(MADE) .config || make config

install:: install.man

alarm.o:	xalarm.h patchlevel.h
when.o:		xalarm.h patchlevel.h dates.h
warnings.o:	xalarm.h patchlevel.h
times.o:	xalarm.h patchlevel.h dates.h
dates.o:	xalarm.h patchlevel.h dates.h
file.o:		xalarm.h patchlevel.h dates.h
fns.o:		xalarm.h patchlevel.h fns.h
xalarm.o:	xalarm.h patchlevel.h

Makefile:: $(ICONFIGFILE)
	-@if [ -f Makefile ]; then \
 echo "  $(RM) Makefile.bak; mv Makefile Makefile.bak"; \
	$(RM) Makefile.bak; mv Makefile Makefile.bak; \
 else exit 0; fi
	$(IMAKE) $(IPROJ) $(IFLAGS) -DNEWTOP=$(TOP) -DNEWCWD=$(CWD)

XMakefile::
	-@if [ -f Makefile ]; then \
 echo "  $(RM) Makefile.bak; mv Makefile Makefile.bak"; \
	$(RM) Makefile.bak; mv Makefile Makefile.bak; \
 else exit 0; fi
	$(IMAKE) $(XIFLAGS)

clean::
	rm -f *~ *.o *.a core a.out

Makefiles::

###########################################################################
# dependencies generated by makedepend

