# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.86 93/10/11 12:12:36 rws Exp $

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

TOP = .
CWD = .
CONFIGSRC = /source/support/config/cf
DESTDIR=

IRULESRC = $(CONFIGSRC)

UTILDIR=$(TOP)/util/bin/
IMAKE= $(UTILDIR)imake
IFLAGS= -I$(IRULESRC) $(OTHER_IFLAGS)
XTOP=$(TOP)/third/common/X11R4
XIFLAGS= -I$(XTOP)/config -DTOPDIR=$(XTOP) -DCURDIR=$(CWD)

ICONFIGFILE = ${IRULESRC}/Imake.tmpl ${IRULESRC}/Imake.rules \
	${IRULESRC}/site.def Imakefile
MKDIRHIER= /usr/athena/bin/mkdirhier

ATHVERS = ${IRULESRC}/update.conf

ATHBASEDIR=/usr/athena

ATHLIBDIR=$(ATHBASEDIR)/lib
ATHSHAREDIR=$(ATHBASEDIR)/share
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=/build/transarc

KRB5DIR=/build/third/supported/kerberos5/src

WCLDIR=/build/third/supported/wcl

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

INSTALL=$(UTILDIR)install -c
RANLIB=\:
CC=/usr/gcc/bin/gcc -traditional
LD=/usr/gcc/bin/gcc
AS=as
RM=rm -f

ETCMD=$(TOP)/athena/athena.lib/et/compile_et
SSCMD=$(TOP)/athena/athena.lib/ss/mk_cmds

CDEBUG=-O2

CFLAGS=$(CDEBUG) -DSOLARIS -DSYSV -DPOSIX -DPOSIX_FLOCK -I/usr/openwin/include $(DEFINES) -I/usr/athena/include
LDFLAGS= $(LDDEFS)
LDPATH=-L/usr/openwin/lib -L$(ATHLIBDIR)
LDLIBS=-lresolv -lsocket -lnsl -lelf -ldl

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

clean::
depend::

FRC::

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

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

install.man:: FRC
	@for d in  rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	(cd $$d; echo "### Making" install.man "in $(CWD)/$$d"; \
	make $(MFLAGS)  DESTDIR=$(DESTDIR) install.man; \
	echo "### Done with $(CWD)/$$d"); \
	done
Makefiles:: Makefile
	@echo "### Making Makefiles in $(CWD)"
	@-for d in rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	case "$$d" in \
	./?*/?*/?*/?*) newtop=../../../.. ;; \
	./?*/?*/?*) newtop=../../.. ;; \
	./?*/?*) newtop=../.. ;; \
	./?*) newtop=.. ;; \
	*/?*/?*/?*) newtop=../../../.. ;; \
	*/?*/?*) newtop=../../.. ;; \
	*/?*) newtop=../.. ;; \
	*) newtop=.. ;; \
	esac; \
	( cd $$d; \
	echo "### Making Makefile in $(CWD)/$$d"; \
	if [ -f Makefile ]; then \
	$(RM) Makefile.bak; \
	mv Makefile Makefile.bak; fi; \
	make -f $${newtop}/Makefile TOP=$${newtop}/$(TOP) \
	CWD=$(CWD)/$$d Makefile; \
	make $(MFLAGS) Makefiles; \
	echo "### Done with $(CWD)/$$d" ) ; \
	done

all:: FRC
	@for d in  rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	(cd $$d; echo "### Making" all "in $(CWD)/$$d"; \
	make $(MFLAGS)   DESTDIR=$(DESTDIR) all; \
	echo "### Done with $(CWD)/$$d"); \
	done

install:: FRC
	@for d in  rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	(cd $$d; echo "### Making" install "in $(CWD)/$$d"; \
	make $(MFLAGS)   DESTDIR=$(DESTDIR) install; \
	echo "### Done with $(CWD)/$$d"); \
	done

clean:: FRC
	@for d in  rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	(cd $$d; echo "### Making" clean "in $(CWD)/$$d"; \
	make $(MFLAGS)   DESTDIR=$(DESTDIR) clean; \
	echo "### Done with $(CWD)/$$d"); \
	done

depend:: FRC
	@for d in  rpc3.9 ets include protocol lib clients server ${FXTEST} man; \
	do \
	(cd $$d; echo "### Making" depend "in $(CWD)/$$d"; \
	make $(MFLAGS)   DESTDIR=$(DESTDIR) depend; \
	echo "### Done with $(CWD)/$$d"); \
	done
rpc3.9 ets include protocol lib clients server ${FXTEST} man:: FRC
	@(cd $@; echo "### Making" all "in $(CWD)/$@"; \
	make $(MFLAGS)  DESTDIR=$(DESTDIR) all ; \
	echo "### Done with $(CWD)/$@")

Makefiles::

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

