.AUTODEPEND
.SWAP

COMP_DIR= C:\TC

!if !$d(MDL)
MDL=c
!endif

!if $d(DEBUG)
CSWIT= -O2 -w -m$(MDL) -v -lv
LSWIT= /v/c
!else
CSWIT= -O2 -w -m$(MDL)
LSWIT= /x/c
!endif

DEFS=

#               *Translator Definitions*
CC = $(COMP_DIR)\bin\tcc
TASM = TASM
TLINK = tlink

#               *Implicit Rules*
.c.obj:
  $(CC) $(CSWIT) -c $(DEFS) {$< }

#               *List Macros*

EXE_dependencies =  \
csap.obj \
sortdir.obj \
isdev.obj \
getdpb.obj


#               *Explicit Rules*
csap.exe:       csap.cfg $(EXE_dependencies)
        $(TLINK) $(LSWIT) /L$(COMP_DIR)\LIB @&&|
$(COMP_DIR)\lib\c0$(MDL).obj+
csap.obj+
sortdir.obj+
isdev.obj+
getdpb.obj
csap, csap
$(COMP_DIR)\lib\emu.lib+
$(COMP_DIR)\lib\math$(MDL).lib+
$(COMP_DIR)\lib\c$(MDL).lib
|


#               *Individual File Dependencies*

csap.obj:       csap.c

sortdir.obj:    sortdir.c

isdev.obj:      isdev.c

getdpb.obj:     getdpb.c


#               *Compiler Configuration File*
csap.cfg:       csap.mak
        copy &&|
-I$(COMP_DIR)\INCLUDE
-L$(COMP_CIR)\LIB
| csap.cfg
