.AUTODEPEND
# SUIT makefile
#
# syntax is
#
#      make -fmakefile.win [<program>]
#

PROG = empty

VERSION = V2.3
SUIT = C:\SUIT\$(VERSION)

ARCH = DOS

#       *Translator Definitions*
CC = bcc +SUIT.CFG
TASM = TASM
TLIB = tlib
TLINK = tlink
BORLANDLIB = C:\BIN\BORLANDC\LIB
SUITLIB = $(SUIT)\$(ARCH)\LIB
INCLUDES = -IC:\BIN\BORLANDC\INCLUDE -I$(SUIT)\INCLUDE


#       *Implicit Rules*
.c.obj:
  $(CC) -c {$< }

$(PROG): $(PROG).obj $(SUIT)\$(ARCH)\LIB\winsuit.lib
  $(TLINK) /v/x/c/P-/Twe/L$(BORLANDLIB);$(SUITLIB) @&&|
c0wl.obj+
$(PROG).obj
$(PROG)
		# no map file
$(SUIT)\$(ARCH)\LIB\winsrgp.lib+
$(SUIT)\$(ARCH)\LIB\winsuit.lib+
mathwl.lib+
import.lib+
cwl.lib
$(SUIT)\src\suit\suit.def
|
  RC  $(SUIT)\src\suit\suit.res $(PROG).exe

tutorial: demo.exe poly.exe 3cell.exe $(SUIT)\$(ARCH)\LIB\winsuit.lib

demo.exe: suit.cfg demo.obj
  @echo Making demo.exe...
  $(TLINK) /v/x/c/P-/Twe/L$(BORLANDLIB);$(SUITLIB) @&&|
c0wl.obj+
demo.obj
demo
		# no map file
$(SUIT)\$(ARCH)\LIB\winsrgp.lib+
$(SUIT)\$(ARCH)\LIB\winsuit.lib+
mathwl.lib+
import.lib+
cwl.lib
$(SUIT)\src\suit\suit.def
|
  RC  $(SUIT)\src\suit\suit.res demo.exe


3cell.exe: suit.cfg 3cell.obj
	@echo Making 3cell.exe
	$(TLINK) /v/x/c/P-/Twe/L$(BORLANDLIB);$(SUITLIB) @&&|
c0wl.obj+
3cell.obj
3cell
		# no map file
$(SUIT)\$(ARCH)\LIB\winsrgp.lib+
$(SUIT)\$(ARCH)\LIB\winsuit.lib+
mathwl.lib+
import.lib+
cwl.lib
$(SUIT)\src\suit\suit.def
|
  RC  $(SUIT)\src\suit\suit.res 3cell.exe

poly.exe: suit.cfg poly.obj
  @echo Making poly.exe
  $(TLINK) /v/x/c/P-/Twe/L$(BORLANDLIB);$(SUITLIB) @&&|
c0wl.obj+
poly.obj
poly
		# no map file
$(SUIT)\$(ARCH)\LIB\winsrgp.lib+
$(SUIT)\$(ARCH)\LIB\winsuit.lib+
mathwl.lib+
import.lib+
cwl.lib
$(SUIT)\src\suit\suit.def
|
  RC  $(SUIT)\src\suit\suit.res poly.exe

clean:
	del *.obj


#       *Compiler Configuration File*
suit.cfg:
  copy &&|
-R
-ml!
-2
-v
-d
-W
-vi-
-w-par
-wpro
-w-aus
-weas
-wpre
$(INCLUDES)
-L$(BORLANDLIB);$(SUITLIB)
-DIBM_PC
| suit.cfg

ÿ
