.AUTODEPEND

#               *Translator Definitions*
CC = tcc +CMTLIB.CFG
TASM = TASM
TLIB = tlib
TLINK = tlink
LIBPATH = \TC\LIB
INCLUDEPATH = \TC\INCLUDE


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

.cpp.obj:
  $(CC) -c {$< }

#               *List Macros*


LIB_dependencies =  \
 record.obj \
 seqmread.obj \
 seqmwrit.obj \
 seqread.obj \
 seqextns.obj \
 seqwrite.obj \
 tempomap.obj \
 cext.obj \
 changelo.obj \
 cleanup.obj \
 cmdline.obj \
 cmtcmd.obj \
 excldesc.obj \
 mem.obj \
 moxc.obj \
 moxcmain.obj \
 userio.obj \
 midifile.obj \
 mpu.obj \
 midifns.obj \
 timer.obj \
 seq.obj \
 timebase.obj

#               *Explicit Rules*
everything: cmtlib.lib tmakefil gswitche.h

tmakefil: makefile
	copy makefile tmakefil

# so far, there's no need for a separate tswitches.h
gswitche.h: switches.h
	copy switches.h gswitche.h

cmtlib.lib: cmtlib.cfg $(LIB_dependencies)
  $(TLIB) $< /C/E/P32 @&&|
+record.obj &
+seqmread.obj &
+seqmwrit.obj &
+seqread.obj &
+seqextns.obj &
+seqwrite.obj &
+tempomap.obj &
+cext.obj &
+changelo.obj &
+cleanup.obj &
+cmdline.obj &
+cmtcmd.obj &
+excldesc.obj &
+mem.obj &
+moxc.obj &
+moxcmain.obj &
+userio.obj &
+midifile.obj &
+mpu.obj &
+midifns.obj &
+timer.obj &
+seq.obj &
+timebase.obj
|


#               *Individual File Dependencies*
record.obj: cmtlib.cfg record.c 

seqmread.obj: cmtlib.cfg seqmread.c 

seqmwrit.obj: cmtlib.cfg seqmwrit.c 

seqread.obj: cmtlib.cfg seqread.c 

seqextns.obj: cmtlib.cfg seqextns.c 

seqwrite.obj: cmtlib.cfg seqwrite.c 

tempomap.obj: cmtlib.cfg tempomap.c 

cext.obj: cmtlib.cfg cext.c 

changelo.obj: cmtlib.cfg changelo.c 

cleanup.obj: cmtlib.cfg cleanup.c 

cmdline.obj: cmtlib.cfg cmdline.c 

cmtcmd.obj: cmtlib.cfg cmtcmd.c 

excldesc.obj: cmtlib.cfg excldesc.c 

mem.obj: cmtlib.cfg mem.c 

moxc.obj: cmtlib.cfg moxc.c 

moxcmain.obj: cmtlib.cfg moxcmain.c 

userio.obj: cmtlib.cfg userio.c 

midifile.obj: cmtlib.cfg midifile.c 

mpu.obj: cmtlib.cfg mpu.c 

midifns.obj: cmtlib.cfg midifns.c 

timer.obj: cmtlib.cfg timer.c 

seq.obj: cmtlib.cfg seq.c 

timebase.obj: cmtlib.cfg timebase.c 

#               *Compiler Configuration File*
cmtlib.cfg: makefile
  copy &&|
-ml
-v
-vi-
-w-ret
-w-nci
-w-inl
-wpin
-w-par
-wcln
-w-cpt
-w-dup
-w-pia
-wsig
-wnod
-w-ill
-w-sus
-wucp
-w-ext
-w-ias
-w-ibc
-w-pre
-w-nst
-I$(INCLUDEPATH)
-L$(LIBPATH)
| cmtlib.cfg


