# -------- Tutorial and Example Programs --------

### Production
OPTIONS=-O -w -P
EXEOPTS=/c /x

### Debugging
#OPTIONS=-v -w -P
#EXEOPTS=/c /v

### Zinc information
INCLUDE=..\include
LIB=..\lib
TCLIB=C:\tc\lib
!if !$d(MODEL)
MODEL=l
!endif

.SWAP
.PATH.lib=$(LIB)

.cpp.obj :
	tcc -I$(INCLUDE) -m$(MODEL) $(COPTS) -c {$< }

.cpp.exe :
	tcc $(OPTIONS) -m$(MODEL) -I$(INCLUDE) -L$(LIB) {$< } zil$(MODEL).lib graphics.lib

xgraph.exe : xgraph.obj extgraph.obj zil$(MODEL).lib
	tlink $(EXEOPTS) -E -lP @&&!
$(TCLIB)\c0$(MODEL)+
xgraph+
extgraph,+
xgraph, , $(LIB)\zil$(MODEL) $(TCLIB)\graphics $(TCLIB)\emu $(TCLIB)\math$(MODEL) $(TCLIB)\c$(MODEL)
!
