#   to use this make file just type
#           make -a
#   the -a is a make option turning on autodependency check
#   this way, when header files are changed, the .obj files
#   will automatically be recompiled.
#   compare the simplicity of makefile vs chi.mak           08/08/90

#   apparently the order of the dependencies are important.
#   so that the logo will display the correct date of last compilation,
#   we have removed screen.obj from OBJS and unconditionally recompiles
#   screen.c whenever chi.exe is recompiled and linked.     09/25/90

#   we've added the directive .AUTODEPEND
#   so the above remark about -a option is no longer required
#   simply execute make by just typing
#           make

.AUTODEPEND

OBJS = cache.obj cursors.obj utils.obj memory.obj initial.obj mouse.obj
OBJS1= blocks.obj cmd.obj qcmd.obj files.obj windows.obj taskinp.obj

chi.exe: chi.obj $(OBJS) $(OBJS1)
    bcc -w-par -mc -M chi.obj screen.cpp chi.lib

chi.obj: chi.cpp
    bcc -c -w-par -mc chi.cpp

.cpp.obj:
    bcc -c -w-par -mc $<
    tlib chi +-$*.obj
