# Bootstrap Makefile for building 'imake', taken from the Mit X11 distribution
#
#   WARNING    WARNING    WARNING    WARNING    WARNING    WARNING    WARNING
#
# This is NOT an automatically generated Makefile!  It is hand-crafted as a 
# bootstrap, may need editing for your system.  The BOOTSTRAPCFLAGS variable
# may be given at the top of the build tree for systems that do not define
# any machine-specific preprocessor symbols.
#

BOOTSTRAPCFLAGS = 
    CDEBUGFLAGS = -O
         CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS)
             RM = rm -f
         RM_CMD = $(RM) *.CKP *.BAK *.o core errs *.a tags TAGS makelog

../bin/imake::
	@echo "making ../bin/imake with BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)"

../bin/imake:: ccimake imake.c
	$(CC) -o ../bin/imake $(CFLAGS) imake.c `./ccimake`

imake:: ccimake imake.c
	$(CC) -o imake $(CFLAGS) imake.c `./ccimake`

ccimake: ccimake.c
	$(CC) -o ccimake $(CFLAGS) ccimake.c

clean:
	$(RM) ccimake imake ../bin/imake
	$(RM_CMD) \#*
