#
#  Microsoft MAKE file for OverView
#

cpu =
cflags = /DLINT_ARGS
lflags =

#  This is how to make a .obj file from a .c or .asm file

.c.obj:
      msc $(cflags) $*.c;

.asm.obj:
      masm $*;

#  Here are all the individual file dependencies
#  (I wonder if there is a better way to declare these)

ov.obj:       ov.c ov.h direct.h menu.h strmem.h

ovattrib.obj: ovattrib.c ov.h dialog.h direct.h menu.h overr.h

ovcmd.obj:    ovcmd.c ov.h direct.h overr.h strmem.h

ovdef.obj:    ovdef.c ov.h dialog.h direct.h menu.h overr.h

ovdir.obj:    ovdir.c ov.h dosfile.h direct.h strmem.h overr.h

ovfdisp.obj:  ovfdisp.c ov.h direct.h

ovfile.obj:   ovfile.c ov.h dosfile.h direct.h strmem.h overr.h

ovfmove.obj:  ovfmove.c ov.h direct.h

ovhelp.obj:   ovhelp.c ov.h direct.h menu.h strmem.h overr.h

ovlogo.obj:   ovlogo.c ov.h direct.h

ovprompt.obj: ovprompt.c ov.h dialog.h direct.h overr.h strmem.h

ovselect.obj: ovselect.c ov.h direct.h menu.h overr.h

ovsort.obj:   ovsort.c ov.h

ovstr.obj:    ovstr.c

ovtag.obj:    ovtag.c ov.h dialog.h direct.h overr.h

ovtty.obj:    ovtty.c ov.h direct.h overr.h

ovview.obj:   ovview.c ov.h direct.h menu.h strmem.h overr.h

ovvbuf.obj:   ovvbuf.c ov.h overr.h

ovwin.obj:    ovwin.c ov.h direct.h strmem.h overr.h

biosio.obj:   biosio.asm

date.obj:     date.asm

dialog.obj:   dialog.c dialog.h direct.h strmem.h

direct.obj:   direct.asm

farmem.obj:   farmem.asm

file.obj:     file.c dosfile.h

fileio.obj:   fileio.asm

grabbrk.obj:  grabbrk.asm

logo.obj:     logo.asm

menu.obj:     menu.c direct.h menu.h

pathname.obj: pathname.c strmem.h

pathopen.obj: pathopen.c strmem.h

scantree.obj: scantree.c strmem.h dosfile.h

string.obj:   string.c

tone.obj:     tone.c

volume.obj:   volume.c


#  Now OV.EXE depends on all the .obj files

ov.exe: ov.obj ovattrib.obj ovcmd.obj ovdir.obj ovfdisp.obj ovfile.obj   \
        ovfmove.obj ovhelp.obj ovlogo.obj ovprompt.obj ovdef.obj       \
        ovselect.obj ovsort.obj ovtag.obj ovtty.obj ovview.obj ovwin.obj \
        ovvbuf.obj pathopen.obj scantree.obj pathname.obj file.obj \
        volume.obj string.obj date.obj direct.obj ovstr.obj grabbrk.obj  \
        farmem.obj fileio.obj biosio.obj tone.obj dialog.obj logo.obj menu.obj
        link $(lflags) /stack:4096 /map @ov.lnk
        rename ov.exe ovup.exe
        exepack ovup.exe ov.exe
        del ovup.exe
