#
#  Makefile for Waterloo DOS-ftp
#
#  Targets:
#     Metaware HighC 3.1+ (PharLap 386|DosX)
#     Borland 4.0+        (DOS large model)
#     Watcom C 10+        (DOS4GW DOS extender)
#     Digital Mars C 8+   (X32VM DOS extender)    NOT YET !
#

SRC = lang_scn.c ftp.c main.c util.c command.c config.c url.c macro.c \
      screen.c cgets.c int29.c crc.c dosname.c parse.c


EXTRA_HCLIB = conio                # Conio lib for Metaware
EXTRA_WCLIB = dos4g.w3r\conio.lib  # Conio lib for Watcom
HC386_DEFS  = -Hoff=check_stack    # (don't) generate stack-check code
DMC_DEFS    = -DYY_USE_PROTOS

BORLAND_EXE = ftp.exe
PHARLAP_EXP = ftp.exp
WATCOM_EXE  = ftp4.exe
DIGMARS_EXE = ftp2.exe
QUICKC_EXE  = nul

GENERATED   = lang_scn.c           # Generated sources may be scrubbed

!include "..\common.mak"

.l.c:
    flex -o$*.c $*.l

lang_scn.c: lang_scn.l


################### Test program ########################

cgets.exp:
      hc386.exe -DTEST -c -g $*.c
      386link $*.obj @&&|
        -lib exc_hc,$(LIB)\wattcphf,conio,hc386,hc387,hcna,dosx32,dos32
        -symbols -offset 1000h -stack 30000 -386 -twocase -nostub
        -unprivileged -fullwarn -maxdata 0 -fullseg -publist both
        -purge none * -mapnames 30 -mapwidth 132 -pack
        -attributes class code er
        -attributes class data rw
        -attributes class stack rw
|

