#
#   WARNING    WARNING    WARNING    WARNING    WARNING    WARNING    WARNING
#
# This is NOT an automatically generated Makefile!  It is hand-crafted as a 
# bootstrap and may need editing for your system.  You will have to give the
# BOOTSTRAPCFLAGS variable at the top of the build tree for systems that do
# not define any machine-specific preprocessor symbols.
#

              TOP = ../../..
      CURRENT_DIR = ./src/bin/imake
  BOOTSTRAPCFLAGS = 
      CDEBUGFLAGS = 
           CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(EXTRA_CFLAGS)
            SHELL = /bin/sh
               RM = rm -f
            IMAKE = ./imake
        IMAKETMPL = "IVImake.tmpl"
        CONFIGSRC = $(TOP)/src/config
        IMAKE_CMD = $(IMAKE) -T $(IMAKETMPL) -I$(CONFIGSRC)
           RM_CMD = $(RM) .emacs_* *.CKP *.ln *.BAK *.bak *.a *.o *..c ,* *~ \
			a.out core errs tags TAGS make.log make.out

all:: imake

imake: ccflags imake.c
	@echo "compiling and linking imake"
	$(CC) -o imake $(CFLAGS) `./ccflags` imake.c
	$(RM) ccflags

ccflags: ccflags.c
	@echo "compiling and linking ccflags"
	$(CC) -o ccflags $(CFLAGS) ccflags.c

clean::
	$(RM) ccflags imake
	$(RM_CMD) \#*

Makefile::	# for manual use
	$(RM) Makefile
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

Makefiles::
depend::
tags::
install::
install.man::
