# CKOKER.MAK, Version 2.00
#
# -- Makefile to build C-Kermit 5A for OS/2 --
#
# This makefile assumes the use of the Microsoft C compiler
# version 6.00 and the NMAKE utility included with it.
#
# The result is a runnable program called "ckoker.exe" in the current
# directory. After satisfactory testing, you can rename ckoker to
# ckermit.exe and put it in your utilities directory (or wherever).

#---------- Macros:

DEFINE  = -DOS2 -UMSDOS -DDYNAMIC -DOS2_20_BUG

CC	= cl -nologo
CFLAGS	= -W2 -AL -Au -FPc -J -Zap -G2s -Gt32 -Ot
LDFLAGS	= -F 2000 -Lp -link /noe /packc /packd /exepack

#---------- Inference rules:

.c.obj:
	$(CC) $(CFLAGS) $(DEFINE) -c $*.c

#---------- Targets:

OBJ =	ckcmai.obj ckcfns.obj ckcfn2.obj ckcfn3.obj ckcpro.obj ckcnet.obj \
	ckuxla.obj ckucmd.obj ckuusr.obj ckuus2.obj ckuus3.obj ckuus4.obj \
	ckuus5.obj ckuus6.obj ckuus7.obj ckuusx.obj ckuusy.obj ckudia.obj \
	ckuscr.obj ckufio.obj ckocon.obj ckotio.obj

ckoker.exe: $(OBJ) ckoker.def
	$(CC) $(CFLAGS) $(OBJ) ckoker.def -o $@ $(LDFLAGS)

ckwart.exe: ckwart.obj ckoker.def
	$(CC) $(CFLAGS) ckwart.obj ckoker.def -o $@ $(LDFLAGS)

#---------- Dependencies:

ckcmai.obj:	ckcmai.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcnet.h
ckcfns.obj:	ckcfns.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
ckcfn2.obj:	ckcfn2.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
ckcfn3.obj:	ckcfn3.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
ckcpro.obj:	ckcpro.c ckcker.h ckcdeb.h ckcasc.h
ckcnet.obj:	ckcnet.c ckcker.h ckcdeb.h ckcnet.h
ckuxla.obj:	ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
ckucmd.obj:	ckucmd.c ckcker.h ckcdeb.h ckcasc.h ckucmd.h
ckuusr.obj:	ckuusr.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h ckcxla.h ckuxla.h ckcnet.h
ckuus2.obj:	ckuus2.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h ckcxla.h ckuxla.h
ckuus3.obj:	ckuus3.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h ckcxla.h ckuxla.h ckcnet.h
ckuus4.obj:	ckuus4.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h ckcxla.h ckuxla.h ckcnet.h
ckuus5.obj:	ckuus5.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h
ckuus6.obj:	ckuus6.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h
ckuus7.obj:	ckuus7.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h ckcxla.h ckuxla.h ckcnet.h
ckuusx.obj:	ckuusx.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h
ckuusy.obj:	ckuusy.c ckcker.h ckcdeb.h ckcasc.h
ckudia.obj:	ckudia.c ckcker.h ckcdeb.h ckcasc.h ckucmd.h
ckuscr.obj:	ckuscr.c ckcker.h ckcdeb.h ckcasc.h
ckufio.obj:	ckufio.c ckcker.h ckcdeb.h ckuver.h ckodir.h
ckocon.obj:	ckocon.c ckcker.h ckcdeb.h ckcasc.h
ckotio.obj:	ckotio.c ckcker.h ckcdeb.h ckodir.h

ckcpro.c:       ckcpro.w ckwart.exe
                ckwart ckcpro.w ckcpro.c
