# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

IMAKE 		= $(IMAKESRC)/imake

DEPEND 		= $(UTILBINDIR)/makedepend
COMPILE_ET	= $(UTILBINDIR)/compile_et
MK_CMDS		= $(UTILBINDIR)/mk_cmds

CONFIGSRC 	= $(TOP)/config
CLIENTSRC 	= $(TOP)/clients
UTILSRC 	= $(TOP)/util
IMAKESRC 	= $(CONFIGSRC)
UTILBINDIR	= $(TOP)/utils/bin
UTILLIBDIR	= $(TOP)/utils/lib
UTILINCDIR	= $(TOP)/utils/include
ETDIR		= $(TOP)/ets

KRBDEF		=  	-DKERBEROS
ZEPHYRDEF	= -DZEPHYR

PANSS_CCOPTS	= -I/usr/athena/include
PANSS_LDOPTS	= -L/usr/athena/lib
KRBLIB		= 	-lkrb
DESLIB		= 	-ldes
ZEPHYRLIB	= -lzephyr

COMERRDEP	= $(UTILLIBDIR)/libcom_err.a
SSDEPLIB	= $(UTILLIBDIR)/libss.a

DESTDIR		= 	/usr/athena/bin
DS_SERVERDIR	= /usr/athena/etc
DS_SERVER	= 		$(DS_SERVERDIR)/disserve
DS_SERVERLOCAL	= 	disserve-fs
DS_SERVERNAME	= 	disserve
DS_INFODIR	= 	/usr/athena/lib/discuss/info
DS_INFODIRP	= 	/usr/athena/lib/discuss
DS_REALM	=  		ATHENA.MIT.EDU
DS_SERVICENAME	= 	discuss
DS_SERVICEPORT	= 2100
DS_DSPIPE	= 		/usr/athena/etc/dspipe
DS_DSCSETUP	= 	dsc_setup
DS_MAINSERVER	= CHARON.MIT.EDU

            SHELL = 	/bin/sh

              TOP = ../../.
      CURRENT_DIR = ./utils/et

               AR = ar clq
  BOOTSTRAPCFLAGS =
               CC = cc

         COMPRESS = compress
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
          INSTALL = install
               LD = ld
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp
           RANLIB = ranlib
  RANLIBINSTFLAGS =
               RM = rm -f
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    PROTO_DEFINES =

     INSTPGMFLAGS =

     INSTSCRFLAGS =
     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -m 4755
     INSTLIBFLAGS = -m 0664
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -m 4755

          DESTDIR = 	/usr/athena/bin

     TOP_INCLUDES = -I$(TOP)

      CDEBUGFLAGS = -O
        CCOPTIONS = -Wf,-XNh2000 -Olimit 2000
      COMPATFLAGS =

      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(PROJECT_DEFINES) $(DEFINES) $(COMPATFLAGS)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LDFLAGS) $(PROJECT_LDOPTS)
   LDCOMBINEFLAGS = -X -r

        MACROFILE = ultrix.cf
           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGSRC)
        IMAKE_CMD = $(NEWTOP)$(IMAKE) -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)

EXTRA_INCLUDES	= -I$(UTILINCDIR) $(PANSS_CCOPTS)
PROJECT_LDOPTS 	= -L$(UTILLIBDIR) $(PANSS_LDOPTS)
TOP_INCLUDES	= -I$(TOP)/include

MKSTEMPSRC	= mktemp.c
MKSTEMPOBJ	= mktemp.o

MOVE_IF_CHANGE	= $(TOP)/utils/move-if-change

.SUFFIXES: .h .c .et .ct

.et.c:
	$(COMPILE_ET) $*.et

.et.h:
	$(COMPILE_ET) $*.et

.ct.c:
	$(MK_CMDS) $*.ct

#
# Imakefile for error-table routines
#
# Copyright 1987 MIT Student Information Processing Board
# For copyright info, see mit-sipb-copyright.h.
#

COMPILE_ET_OBJS	= compile_et.o error_table.o

COM_ERR_SRCS	= error_message.c et_name.c init_et.c com_err.c # perror.c
COM_ERR_OBJS	= error_message.o et_name.o init_et.o com_err.o # perror.o

SRCS		= compile_et.c error_message.c et_name.c init_et.c com_err.c error_table.c et_lex.lex.c

all:: compile_et

compile_et:  $(COMPILE_ET_OBJS)
	 $(RM) $@
	$(CC) -o $@  $(COMPILE_ET_OBJS) $(LDOPTIONS)  $(LDLIBS)  -ll $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) compile_et

clean::
	$(RM) et_lex.lex.c error_table.c

all:: libcom_err.a

libcom_err.a:   $(COM_ERR_OBJS)
	$(RM) $@
	$(AR) $@   $(COM_ERR_OBJS)
	$(RANLIB) $@

lintlib:: llib-lcom_err.ln

llib-lcom_err.ln:  $(COM_ERR_SRCS)
	$(RM) $@
	$(LINT) $(LINTLIBFLAG)com_err $(LINTFLAGS)  $(COM_ERR_SRCS)

install:: compile_et
	$(INSTALL) -c $(INSTPGMFLAGS)   compile_et  $(COMPILE_ET)

install:: com_err.h
	$(INSTALL) -c $(INSTDATFLAGS) com_err.h  $(UTILINCDIR)/com_err.h

install:: libcom_err.a
	$(INSTALL) -c $(INSTLIBFLAGS) libcom_err.a   $(UTILLIBDIR)
	$(RANLIB) $(RANLIBINSTFLAGS)   $(UTILLIBDIR)/libcom_err.a

.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $*.c

depend:: $(SRCS)
	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)

# Magic dependencies.
error_table.o: et_lex.lex.c

error_table.c : error_table.y

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile:: $(IMAKE)

$(IMAKE):
	@(cd $(IMAKESRC); if [ -f Makefile ]; then \
	echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \
	echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \
	$(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
	echo "okay, continuing in $(CURRENT_DIR)")

Makefile:: Imakefile $(ICONFIGFILES)
	$(IMAKE_CMD) -s- -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)   > Makefile.new
	mv -f Makefile.new Makefile

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

includes::

# DO NOT DELETE

compile_et.o: /usr/include/stdio.h /usr/include/ansi_compat.h
compile_et.o: /usr/include/sys/types.h /usr/include/sys/file.h
compile_et.o: /usr/include/string.h /usr/include/sys/param.h
compile_et.o: /usr/include/machine/param.h /usr/include/sys/signal.h
compile_et.o: /usr/include/sys/smp_lock.h /usr/include/ctype.h
compile_et.o: mit-sipb-copyright.h compiler.h
error_message.o: /usr/include/stdio.h /usr/include/ansi_compat.h
error_message.o: error_table.h mit-sipb-copyright.h internal.h
et_name.o: error_table.h mit-sipb-copyright.h internal.h
init_et.o: /usr/include/stdio.h /usr/include/ansi_compat.h error_table.h
init_et.o: mit-sipb-copyright.h
com_err.o: /usr/include/stdio.h /usr/include/ansi_compat.h
com_err.o: mit-sipb-copyright.h /usr/include/varargs.h error_table.h
com_err.o: internal.h com_err.h
error_table.o: /usr/include/stdio.h /usr/include/ansi_compat.h
error_table.o: /usr/include/string.h /usr/include/assert.h
error_table.o: /usr/include/ctype.h /usr/include/sys/types.h
error_table.o: /usr/include/sys/time.h internal.h mit-sipb-copyright.h
error_table.o: error_table.h et_lex.lex.c
et_lex.lex.o: /usr/include/stdio.h /usr/include/ansi_compat.h
