TL=c:\langs\bcc\lib
OFILES=xlisp.obj xlbfun.obj xlcont.obj xldbug.obj dldmem.obj xleval.obj \
xlfio.obj xlglob.obj dlimage.obj xlinit.obj xlio.obj xljump.obj xllist.obj \
xlmath.obj xlobj.obj xlpp.obj xlprin.obj xlread.obj xlstr.obj xlsubr.obj \
xlsym.obj xlsys.obj dosstuff.obj xlseq.obj xlstruct.obj xlmath2.obj

# All options indicated are for 80286 or greater with floating point hardware

# use this for Borland version 2.0:

# COPT=-w -1 -a- -G -k- -O -f87 -mm -Z -H -d -p -DOVERLAY -DMEDMEM
# .c.obj:; bccx -c $(COPT) $*.c

# use this for Borland version 3.0:
COPT=-w -1 -a- -G -O2 -f287 -mm -H -d -p -DOVERLAY -DMEDMEM
.c.obj:; bcc -c $(COPT) $*.c

xlisp20.exe:    $(OFILES) xlftab.obj xlisp20.lnk
    tlink @xlisp20.lnk
    lzexe xlisp20
    erase xlisp20.old

xlisp20.lnk:    makebor
#   Use this first selection when TLINK.CFG doesn't exist
#   >xlisp20.lnk /m $(TL)\c0m $(OFILES) xlftab.obj,\
#   xlisp20, xlisp20, spawnm.lib $(TL)\fp87 $(TL)\mathm $(TL)\cm
#   Use this selection when TLINK.CFG exists
    >xlisp20.lnk /m c0m $(OFILES) xlftab.obj,\
    xlisp20, xlisp20, spawnm.lib fp87 mathm cm

xlisp.h:    xldmem.h xlftab.h
    touch xlisp.h

xlftab.obj: xlisp.h osdefs.h osptrs.h

$(OFILES):  xlisp.h

